Class MatrixFunctionTable

  • All Implemented Interfaces:
    JepComponent, java.io.Serializable

    public class MatrixFunctionTable
    extends FunctionTable
    A function table with some matrix functions. Defines functions
    • det - the determinate of a matrix
    • trace - the trace of a matrix
    • trans - transpose of a matrix
    • id - creates an identity matrix id(3) is a 3 by 3 matrix
    • zeroMat - creates a matrix of zeros zeroMat(3,2) creates a 3 by 2 matrix
    • zeroVec - creates a vector of zeros zeroVec(3) creates a 3 element vector
    • size - finds the length of a vector or the vector with rows and columns of a matrix
    • inv(m) - find the inverse of m
    • v=solve(m,u) - find solution of m * v = u
    Author:
    Richard Morris
    See Also:
    Serialized Form
    • Method Detail

      • shallowCopy

        public FunctionTable shallowCopy()
        Description copied from class: FunctionTable
        Returns a new shallow copy of this function table. Calls the FunctionTable.threadSafeMapCopy() method to ensure the table is safe to use a separate thread. All sub-classes should override this methods to create a function table of the matching type. A typical implementation would be
                  @Override
                  public FunctionTable shallowCopy() {
                      Map<String,PostfixMathCommandI> newMap = this.threadSafeMapCopy();
                return new myFunctionTable(newMap);
                  }
         
        using the FunctionTable.threadSafeMapCopy() method to return a copy of the map of operators and a constructor taking this map which uses the FunctionTable(Map) constructor.
        Overrides:
        shallowCopy in class FunctionTable
        Returns:
        a new shallow copy of this function table