public class MatrixVariable extends DVariable implements MatrixVariableI
MatrixPartialDerivative
.
The derivatives are stored in a hashtable index by
the sorted names of derivatives.
i.e. d^2f/dxdy, and d^2f/dydx will both be indexed by {"x","y"}.
df/dx is indexed by {"x"}, d^2f/dx^2 is index by {"x","x"}.
Partial derivatives are calculated as required by the
findDerivative method.Modifier and Type | Method and Description |
---|---|
Dimensions |
getDimensions()
The dimension of the variable.
|
MatrixValueI |
getMValue()
returns the value, uses the Scaler type.
|
Object |
getValue()
returns the value, unpacks Scalers so they just return its elements.
|
void |
print(PrintVisitor bpv) |
void |
setDimensions(Dimensions dims)
Sets the dimension of the variable.
|
void |
setMValue(MatrixValueI val)
Sets the value of the variable (matrix aware).
|
allDerivatives, invalidateAll, makeDerivString, setEquation, toString
calcValue, getEquation, hasEquation
getName, hasValidValue, isConstant, setIsConstant, setValidValue, setValue, toString
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEquation, getName, hasEquation, hasValidValue, isConstant, setValidValue
public Dimensions getDimensions()
MatrixVariableI
getDimensions
in interface MatrixVariableI
public void setDimensions(Dimensions dims)
MatrixVariableI
setDimensions
in interface MatrixVariableI
public MatrixValueI getMValue()
getMValue
in interface MatrixVariableI
public Object getValue()
public void setMValue(MatrixValueI val)
MatrixVariableI
setMValue
in interface MatrixVariableI
public void print(PrintVisitor bpv)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics