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
-
adj
-
-
data
-
-
fwdDom
-
-
fwdRan
-
-
isFwd
-
-
RnOp(RnOp)
- copy constructor
-
RnOp(RnSpc)
- constructs a "square" operator (i.e.
-
RnOp(RnSpc, RnSpc)
-
-
addImage(Vector, Vector)
-
-
adjoint()
-
-
copy()
-
-
createAdjoint()
-
-
equals(Object)
- Compares two Objects for equality.
-
fill(float)
- Set all the matrix's components to a specified value.
-
getDerivativeAt(Vector)
-
-
getDomain()
-
-
getGradientAt(Vector)
-
-
getRange()
-
-
getVal(int[], int[])
- Get the specified matrix entry.
-
image(Vector)
-
-
image(Vector, Vector)
-
-
rand()
- Set all the matrix's components to random values.
-
residual(Vector, Vector, Vector)
-
-
setVal(int[], int[], float)
- Set the specified matrix entry.
-
toString()
- Returns a string representation of the object.
fwdDom
protected RnSpc fwdDom
fwdRan
protected RnSpc fwdRan
data
protected float data[]
isFwd
protected boolean isFwd
adj
protected RnOp adj
RnOp
public RnOp(RnSpc domain,
RnSpc range)
RnOp
public RnOp(RnSpc domainAndRange)
- constructs a "square" operator (i.e. domain = range)
RnOp
protected RnOp(RnOp src)
- copy constructor
copy
public JamObject copy()
equals
public boolean equals(Object obj2)
- Compares two Objects for equality.
- Overrides:
- equals in class Object
getDomain
public Space getDomain()
getRange
public Space getRange()
image
public Vector image(Vector d)
image
public void image(Vector d,
Vector r)
addImage
public void addImage(Vector d,
Vector r)
residual
public void residual(Vector d,
Vector b,
Vector r)
fill
public void fill(float a)
- Set all the matrix's components to a specified value.
rand
public void rand()
- Set all the matrix's components to random values.
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
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
createAdjoint
protected void createAdjoint()
adjoint
public hasAdjoint adjoint()
getGradientAt
public LinearOperator getGradientAt(Vector x)
getDerivativeAt
public hasAdjoint getDerivativeAt(Vector x)
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