maspack.matrix
Interface LinearTransformNd

All Known Subinterfaces:
DenseMatrix, Matrix, MatrixBlock, SparseMatrix
All Known Implementing Classes:
AffineTransform2d, AffineTransform2dBase, AffineTransform3d, AffineTransform3dBase, DenseMatrixBase, FrameBlock, IncompleteCholeskyDecomposition, IncompleteLUDecomposition, Matrix1x1, Matrix1x1Block, Matrix1x3, Matrix1x3Block, Matrix1x6, Matrix1x6Block, Matrix2d, Matrix2dBase, Matrix2x2Block, Matrix2x3, Matrix2x3Block, Matrix2x6, Matrix2x6Block, Matrix3d, Matrix3dBase, Matrix3x1, Matrix3x1Block, Matrix3x2, Matrix3x2Block, Matrix3x3Block, Matrix3x3DiagBlock, Matrix3x4, Matrix3x4Block, Matrix3x6, Matrix3x6Block, Matrix4d, Matrix4dBase, Matrix4x3, Matrix4x3Block, Matrix6d, Matrix6dBase, Matrix6dBlock, Matrix6x1, Matrix6x1Block, Matrix6x2, Matrix6x2Block, Matrix6x3, Matrix6x3Block, MatrixBase, MatrixBlockBase, MatrixNd, MatrixNdBlock, RigidTransform2d, RigidTransform3d, RotationMatrix2d, RotationMatrix3d, ScaledRigidTransform3d, SparseBlockMatrix, SparseMatrixBase, SparseMatrixCRS, SparseMatrixNd, SparseNumberedBlockMatrix, SpatialInertia, SubMatrixNd, SymmetricMatrix3d

public interface LinearTransformNd

Defines an implicit linear transformation implemented by matrix-vector multiplication


Method Summary
 int colSize()
          Number of columns in the matrix associated with this transformation.
 void mul(VectorNd vr, VectorNd v1)
          Applies this transformation to vector v1 and returns the result in vr.
 int rowSize()
          Number of rows in the matrix associated with this transformation.
 

Method Detail

mul

void mul(VectorNd vr,
         VectorNd v1)
Applies this transformation to vector v1 and returns the result in vr.

Parameters:
v1 - vector to transform
vr - vector in which result is returned

rowSize

int rowSize()
Number of rows in the matrix associated with this transformation. This will equal the size of the output vector in mul.

Returns:
number of rows

colSize

int colSize()
Number of columns in the matrix associated with this transformation. This will equal the size of the input vector in mul.

Returns:
number of columns