org.lsmp.djep.matrixJep
Class MatrixPartialDerivative
java.lang.Object
java.util.Observable
org.nfunk.jep.Variable
org.lsmp.djep.xjep.XVariable
org.lsmp.djep.djep.PartialDerivative
org.lsmp.djep.matrixJep.MatrixPartialDerivative
- All Implemented Interfaces:
- Observer, MatrixVariableI
public class MatrixPartialDerivative
- extends PartialDerivative
- implements MatrixVariableI
Contains information about a PartialDerivative of a variable.
- Author:
- Rich Morris
Created on 29-Oct-2003
TODO Should setValue be overwritten?
MatrixPartialDerivative
protected MatrixPartialDerivative(MatrixVariable var,
String[] derivnames,
Node deriv)
- Protected constructor, should only be constructed
through the findDerivative method in
MatrixVariable.
getDimensions
public Dimensions getDimensions()
- Description copied from interface:
MatrixVariableI
- The dimension of the variable.
- Specified by:
getDimensions in interface MatrixVariableI
setDimensions
public void setDimensions(Dimensions dims)
- Description copied from interface:
MatrixVariableI
- Sets the dimension of the variable.
Will also allocate appropriate space for value container.
- Specified by:
setDimensions in interface MatrixVariableI
getMValue
public MatrixValueI getMValue()
- Description copied from interface:
MatrixVariableI
- Returns the value container of this variable.
There is no setMValue as the value can be changed by
setting the individual elements of value container.
- Specified by:
getMValue in interface MatrixVariableI
setMValue
public void setMValue(MatrixValueI val)
- Description copied from interface:
MatrixVariableI
- Sets the value of the variable (matrix aware).
- Specified by:
setMValue in interface MatrixVariableI
Copyright © 2014. All rights reserved.