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.derivatives| Modifier and Type | Method and Description |
|---|---|
protected PartialDerivative |
createDerivative(String[] derivnames,
Node eqn) |
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).
|
protected boolean |
setValueRaw(Object val)
Sets the value of this variable.
|
allDerivatives, invalidateAll, makeDerivString, setEquation, toStringcalcValue, getEquation, hasEquationgetName, hasValidValue, isConstant, setIsConstant, setValidValue, setValue, toStringaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEquation, getName, hasEquation, hasValidValue, isConstant, setValidValueprotected PartialDerivative createDerivative(String[] derivnames, Node eqn)
createDerivative in class DVariablepublic Dimensions getDimensions()
MatrixVariableIgetDimensions in interface MatrixVariableIpublic void setDimensions(Dimensions dims)
MatrixVariableIsetDimensions in interface MatrixVariableIpublic MatrixValueI getMValue()
getMValue in interface MatrixVariableIpublic Object getValue()
protected boolean setValueRaw(Object val)
setValueRaw in class Variablepublic void setMValue(MatrixValueI val)
MatrixVariableIsetMValue in interface MatrixVariableIpublic void print(PrintVisitor bpv)
Copyright © 2018. All rights reserved.