| Package | Description |
|---|---|
| mikera.matrixx | |
| mikera.matrixx.impl | |
| mikera.transformz | |
| mikera.transformz.impl | |
| mikera.vectorz | |
| mikera.vectorz.impl | |
| mikera.vectorz.util |
| Modifier and Type | Class and Description |
|---|---|
class |
Matrix
Standard MxN matrix class backed by a flat double[] array
|
class |
Matrix22
Specialised 2*2 Matrix for Vector2 maths, using primitive matrix elements
|
class |
Matrix33
Specialised 3*3 Matrix for Vector3 maths, using primitive matrix elements
|
| Modifier and Type | Method and Description |
|---|---|
AMatrix |
AMatrix.clone() |
AMatrix |
AMatrix.compose(AMatrix a)
Composes this matrix with another matrix (matrix multiplication)
Returns a new matrix that represents the compose transformation.
|
AMatrix |
AMatrix.copyOfMatrix() |
static AMatrix |
Matrixx.create(AMatrix m)
Creates a mutable deep copy of a matrix
|
static AMatrix |
Matrixx.create(IMatrix m)
Creates a mutable copy of a matrix
|
static AMatrix |
Matrixx.create(List<Object> rows)
Create a matrix from a list of rows
|
static AMatrix |
Matrixx.create(Object[] vs) |
static AMatrix |
Matrixx.createFromVector(AVector data,
int rows,
int columns) |
static AMatrix |
Matrixx.createFromVectors(AVector... data) |
static AMatrix |
Matrixx.createFromVectors(List<AVector> data) |
static AMatrix |
Matrixx.createIdentityMatrix(int dimensions)
Creates an mutable identity matrix
|
static AMatrix |
Matrixx.createRandomMatrix(int rows,
int columns) |
static AMatrix |
Matrixx.createRandomSquareMatrix(int dimensions) |
static AMatrix |
Matrixx.createSparse(AMatrix m)
Creates a sparse matrix from the given matrix, ignoring zeros
|
static AMatrix |
Matrixx.createSparse(int inputDims,
Index[] indexes,
AVector[] weights) |
static AMatrix |
Matrixx.deepCopy(AMatrix m) |
abstract AMatrix |
AMatrix.exactClone() |
AMatrix |
AMatrix.getMatrixComponent() |
AMatrix |
AMatrix.getTranspose()
Returns a transposed version of this matrix.
|
AMatrix |
Matrix33.innerProduct(AMatrix a) |
AMatrix |
AMatrix.innerProduct(AMatrix a) |
AMatrix |
AMatrix.innerProduct(AScalar s) |
AMatrix |
AMatrix.inverse() |
static AMatrix |
Matrixx.newMatrix(int rows,
int columns)
Creates an empty (zero-filled) mutable matrix of the specified size
|
static AMatrix |
Matrixx.parse(String ednString)
Parse a matrix in edn format
|
static AMatrix |
Matrixx.toMatrix(Object o)
Coerces to a matrix
|
AMatrix |
AMatrix.toMutableMatrix()
Creates a fully mutable deep copy of this matrix
|
| Modifier and Type | Method and Description |
|---|---|
void |
Matrix.add(AMatrix m) |
void |
AMatrix.add(AMatrix m)
Adds another matrix to this matrix.
|
void |
Matrix.addMultiple(AMatrix m,
double factor) |
void |
AMatrix.addMultiple(AMatrix m,
double factor) |
AMatrix |
AMatrix.compose(AMatrix a)
Composes this matrix with another matrix (matrix multiplication)
Returns a new matrix that represents the compose transformation.
|
void |
AMatrix.composeWith(AMatrix a) |
static AMatrix |
Matrixx.create(AMatrix m)
Creates a mutable deep copy of a matrix
|
static AMatrix |
Matrixx.createSparse(AMatrix m)
Creates a sparse matrix from the given matrix, ignoring zeros
|
static AMatrix |
Matrixx.deepCopy(AMatrix m) |
void |
AMatrix.elementMul(AMatrix m)
Multiplies this matrix in-place by another in an entrywise manner (Hadamard product).
|
boolean |
AMatrix.epsilonEquals(AMatrix a)
Returns true if this matrix is approximately equal to
a second matrix, up to a default tolerance level
|
boolean |
AMatrix.equals(AMatrix a) |
static void |
Matrixx.fillRandomValues(AMatrix m) |
AMatrix |
Matrix33.innerProduct(AMatrix a) |
Matrix |
Matrix.innerProduct(AMatrix a) |
AMatrix |
AMatrix.innerProduct(AMatrix a) |
void |
AMatrix.mul(AMatrix a)
"Multiplies" this matrix by another, composing the transformation
|
void |
Matrix.set(AMatrix a) |
void |
AMatrix.set(AMatrix a) |
void |
AMatrix.sub(AMatrix m)
Subtracts another matrix from this one
|
| Constructor and Description |
|---|
Matrix(AMatrix m) |
Matrix22(AMatrix m) |
Matrix33(AMatrix m) |
| Modifier and Type | Class and Description |
|---|---|
class |
ADiagonalMatrix
Abstract base class for diagonal matrices
|
class |
AVectorMatrix<T extends AVector>
Abstract base class for matrices that use a collection of Vectors
as storage for the matrix rows.
|
class |
ColumnMatrix
Matrix class that wraps a vector as a 1-columns matrix
|
class |
DiagonalMatrix
Specialised diagonal matrix class
Not fully mutable - only the diagonal values can be changed
|
class |
IdentityMatrix
Specialised identity matrix class.
|
class |
PermutedMatrix
Reference matrix class representing a permutation of a matrix
|
class |
RowMatrix
Matrix class that wraps a vector as a 1-row matrix
|
class |
ScalarMatrix
Scalar matrix class - i.e.
|
class |
SubsetMatrix
Matrix that transforms to a subset of elements of the source vector
i.e.
|
class |
TransposedMatrix
Class representing a transposed view of another matrix
The transposed matrix is a reference to the underlying matrix data
|
class |
VectorMatrixM3
Specialised N*3 Matrix with Vector3 row components
|
class |
VectorMatrixMN
A matrix implemented as a composition of M length N vectors
|
class |
ZeroMatrix
Lightweight immutable zero matrix class
|
| Modifier and Type | Method and Description |
|---|---|
AMatrix |
ZeroMatrix.clone() |
AMatrix |
ZeroMatrix.compose(ATransform t) |
static AMatrix |
ScalarMatrix.create(int dimensions,
double scale) |
AMatrix |
TransposedMatrix.getTranspose() |
AMatrix |
IdentityMatrix.getTranspose() |
AMatrix |
DiagonalMatrix.innerProduct(ADiagonalMatrix a) |
AMatrix |
ADiagonalMatrix.innerProduct(ADiagonalMatrix a) |
AMatrix |
ZeroMatrix.innerProduct(AMatrix m) |
AMatrix |
IdentityMatrix.innerProduct(AMatrix a) |
AMatrix |
DiagonalMatrix.innerProduct(AMatrix a) |
AMatrix |
ADiagonalMatrix.innerProduct(AMatrix a) |
AMatrix |
IdentityMatrix.inverse() |
static AMatrix |
TransposedMatrix.wrap(AMatrix m) |
| Modifier and Type | Method and Description |
|---|---|
void |
ZeroMatrix.composeWith(AMatrix t) |
void |
ZeroMatrix.elementMul(AMatrix m) |
boolean |
ZeroMatrix.equals(AMatrix m) |
AMatrix |
ZeroMatrix.innerProduct(AMatrix m) |
AMatrix |
IdentityMatrix.innerProduct(AMatrix a) |
AMatrix |
DiagonalMatrix.innerProduct(AMatrix a) |
AMatrix |
ADiagonalMatrix.innerProduct(AMatrix a) |
static AMatrix |
TransposedMatrix.wrap(AMatrix m) |
| Constructor and Description |
|---|
MatrixIterator(AMatrix source) |
PermutedMatrix(AMatrix source,
Index rowPermutations) |
PermutedMatrix(AMatrix source,
Index rowPermutations,
Index columnPermutations) |
VectorMatrixMN(AMatrix source) |
| Modifier and Type | Method and Description |
|---|---|
AMatrix |
AAffineTransform.copyOfMatrix()
Returns a deep copy of the transformation matrix for this affine transform
|
AMatrix |
Translation3.getMatrixComponent() |
AMatrix |
Translation.getMatrixComponent() |
AMatrix |
AffineMN.getMatrixComponent() |
AMatrix |
Affine34.getMatrixComponent() |
abstract AMatrix |
AAffineTransform.getMatrixComponent() |
static AMatrix |
Transformz.zeroTransform(int inputDimensions,
int outputDimensions)
Creates a zero transform (maps every vector to zero)
|
| Modifier and Type | Method and Description |
|---|---|
static AAffineTransform |
Transformz.createAffineTransform(AMatrix m,
AVector v) |
| Constructor and Description |
|---|
Affine34(AMatrix matrix,
ATranslation trans) |
Affine34(AMatrix m,
AVector v) |
AffineMN(AMatrix matrix,
ATranslation translation) |
AffineMN(AMatrix m,
AVector v) |
| Modifier and Type | Method and Description |
|---|---|
AMatrix |
IdentityTranslation.getMatrixComponent() |
AMatrix |
AConstantTransform.getMatrixComponent() |
| Modifier and Type | Method and Description |
|---|---|
AMatrix |
AVector.outerProduct(AVector a) |
| Modifier and Type | Method and Description |
|---|---|
AVector |
AVector.innerProduct(AMatrix m) |
| Modifier and Type | Method and Description |
|---|---|
static AVector |
SparseIndexedVector.createFromRow(AMatrix m,
int row)
Creates a SparseIndexedVector from a row of an existing matrix
|
| Modifier and Type | Method and Description |
|---|---|
AMatrix |
MatrixBuilder.toMatrix()
Builds a matrix using a copy of the data in this MatrixBuilder
|
Copyright © 2013. All Rights Reserved.