Uses of Class
toxi.geom.GMatrix

Packages that use GMatrix
Package
Description
 
  • Uses of GMatrix in toxi.geom

    Methods in toxi.geom with parameters of type GMatrix
    Modifier and Type
    Method
    Description
    final void
    GMatrix.add(GMatrix m1)
    Sets the value of this matrix to sum of itself and matrix m1.
    final void
    GMatrix.add(GMatrix m1, GMatrix m2)
    Sets the value of this matrix to the matrix sum of matrices m1 and m2.
    final void
    GVector.backSolveLUD(GMatrix LU, GVector b, GVector permutation)
    LU Decomposition Back Solve; this method takes the LU matrix and the permutation vector produced by the GMatrix method LUD and solves the equation (LU)*x = b by placing the solution vector x into this vector.
    final void
    GVector.backSolveSVD(GMatrix U, GMatrix W, GMatrix V, GVector b)
    Solves for x in Ax = b, where x is this vector (nx1), A is mxn, b is mx1, and A = U*W*transpose(V); U,W,V must be precomputed and can be found by taking the singular value decomposition (SVD) of A using the method SVD found in the GMatrix class.
    final int
    GMatrix.computeLUD(GMatrix LU, GVector permutation)
    LU Decomposition: this matrix must be a square matrix and the LU GMatrix parameter must be the same size as this matrix.
    static void
    GMatrix.computeQR(int start, int end, double[] s, double[] e, GMatrix u, GMatrix v)
     
    final int
    GMatrix.computeSVD(GMatrix U, GMatrix W, GMatrix V)
    Finds the singular value decomposition (SVD) of this matrix such that this = U*W*transpose(V); and returns the rank of this matrix; the values of U,W,V are all overwritten.
    static int
    GMatrix.computeSVD(GMatrix mat, GMatrix U, GMatrix W, GMatrix V)
     
    final void
    GMatrix.copySubMatrix(int rowSource, int colSource, int numRow, int numCol, int rowDest, int colDest, GMatrix target)
    Copies a sub-matrix derived from this matrix into the target matrix.
    boolean
    GMatrix.epsilonEquals(GMatrix m1, double epsilon)
    Returns true if the L-infinite distance between this matrix and matrix m1 is less than or equal to the epsilon parameter, otherwise returns false.
    boolean
    GMatrix.epsilonEquals(GMatrix m1, float epsilon)
    Deprecated.
    Use epsilonEquals(GMatrix, double) instead
    boolean
    GMatrix.equals(GMatrix m1)
    Returns true if all of the data members of GMatrix m1 are equal to the corresponding data members in this GMatrix.
    final void
    GMatrix.get(GMatrix m1)
    Places the values in the this GMatrix into the matrix m1; m1 should be at least as large as this GMatrix.
    final void
    GMatrix.invert(GMatrix m1)
    Inverts matrix m1 and places the new values into this matrix.
    final void
    GMatrix.mul(GMatrix m1)
    Sets the value of this matrix to the result of multiplying itself with matrix m1 (this = this * m1).
    final void
    GMatrix.mul(GMatrix m1, GMatrix m2)
    Sets the value of this matrix to the result of multiplying the two argument matrices together (this = m1 * m2).
    final void
    GVector.mul(GMatrix m1, GVector v1)
    Multiplies matrix m1 times Vector v1 and places the result into this vector (this = m1*v1).
    final void
    GVector.mul(GVector v1, GMatrix m1)
    Multiplies the transpose of vector v1 (ie, v1 becomes a row vector with respect to the multiplication) times matrix m1 and places the result into this vector (this = transpose(v1)*m1).
    final void
    GMatrix.mulTransposeBoth(GMatrix m1, GMatrix m2)
    Multiplies the transpose of matrix m1 times the transpose of matrix m2, and places the result into this.
    final void
    GMatrix.mulTransposeLeft(GMatrix m1, GMatrix m2)
    Multiplies the transpose of matrix m1 times matrix m2, and places the result into this.
    final void
    Multiplies matrix m1 times the transpose of matrix m2, and places the result into this.
    final void
    GMatrix.negate(GMatrix m1)
    Sets the value of this matrix equal to the negation of of the GMatrix parameter.
    final void
    GMatrix.set(GMatrix m1)
    Sets the value of this matrix to the values found in matrix m1.
    final void
    GMatrix.sub(GMatrix m1)
    Sets the value of this matrix to the matrix difference of itself and matrix m1 (this = this - m1).
    final void
    GMatrix.sub(GMatrix m1, GMatrix m2)
    Sets the value of this matrix to the matrix difference of matrices m1 and m2 (this = m1 - m2).
    final void
    GMatrix.transpose(GMatrix m1)
    Places the matrix values of the transpose of matrix m1 into this matrix.
    Constructors in toxi.geom with parameters of type GMatrix
    Modifier
    Constructor
    Description
     
    GMatrix(GMatrix matrix)
    Constructs a new GMatrix and copies the initial values from the parameter matrix.