All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class juice.example.RnOp

java.lang.Object
   |
   +----juice.example.RnOp

public class RnOp
extends Object
implements hasAdjoint
An RnOp is a real valued "matrix" which maps RnVecs to RnVecs.

See Also:
RnVec, RnSpc

Variable Index

 o adj
 o data
 o fwdDom
 o fwdRan
 o isFwd

Constructor Index

 o RnOp(RnOp)
copy constructor
 o RnOp(RnSpc)
constructs a "square" operator (i.e.
 o RnOp(RnSpc, RnSpc)

Method Index

 o addImage(Vector, Vector)
 o adjoint()
 o copy()
 o createAdjoint()
 o equals(Object)
Compares two Objects for equality.
 o fill(float)
Set all the matrix's components to a specified value.
 o getDerivativeAt(Vector)
 o getDomain()
 o getGradientAt(Vector)
 o getRange()
 o getVal(int[], int[])
Get the specified matrix entry.
 o image(Vector)
 o image(Vector, Vector)
 o rand()
Set all the matrix's components to random values.
 o residual(Vector, Vector, Vector)
 o setVal(int[], int[], float)
Set the specified matrix entry.
 o toString()
Returns a string representation of the object.

Variables

 o fwdDom
 protected RnSpc fwdDom
 o fwdRan
 protected RnSpc fwdRan
 o data
 protected float data[]
 o isFwd
 protected boolean isFwd
 o adj
 protected RnOp adj

Constructors

 o RnOp
 public RnOp(RnSpc domain,
             RnSpc range)
 o RnOp
 public RnOp(RnSpc domainAndRange)
constructs a "square" operator (i.e. domain = range)

 o RnOp
 protected RnOp(RnOp src)
copy constructor

Methods

 o copy
 public JamObject copy()
 o equals
 public boolean equals(Object obj2)
Compares two Objects for equality.

Overrides:
equals in class Object
 o getDomain
 public Space getDomain()
 o getRange
 public Space getRange()
 o image
 public Vector image(Vector d)
 o image
 public void image(Vector d,
                   Vector r)
 o addImage
 public void addImage(Vector d,
                      Vector r)
 o residual
 public void residual(Vector d,
                      Vector b,
                      Vector r)
 o fill
 public void fill(float a)
Set all the matrix's components to a specified value.

 o rand
 public void rand()
Set all the matrix's components to random values.

 o getVal
 public float getVal(int rIndex[],
                     int dIndex[])
Get the specified matrix entry.

Parameters:
rIndex - The index into the range space vector.
dIndex - The index into the domain space vector.
Returns:
The specified matrix entry.
See Also:
setVal
 o setVal
 public void setVal(int rIndex[],
                    int dIndex[],
                    float a)
Set the specified matrix entry.

Parameters:
rIndex - The index into the range space vector.
dIndex - The index into the domain space vector.
a - The new value for the specified matrix entry.
See Also:
getVal
 o createAdjoint
 protected void createAdjoint()
 o adjoint
 public hasAdjoint adjoint()
 o getGradientAt
 public LinearOperator getGradientAt(Vector x)
 o getDerivativeAt
 public hasAdjoint getDerivativeAt(Vector x)
 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index