| Package | Description |
|---|---|
| mikera.matrixx | |
| mikera.matrixx.algo | |
| mikera.matrixx.impl | |
| mikera.transformz | |
| mikera.transformz.impl | |
| mikera.vectorz | |
| mikera.vectorz.impl | |
| mikera.vectorz.ops | |
| mikera.vectorz.util |
| Modifier and Type | Class and Description |
|---|---|
class |
Matrix
Standard MxN matrix class backed by a fully packed double[] array
This is the most efficient Vectorz type for 2D matrices.
|
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(IMatrix m)
Creates a mutable copy of a matrix
|
static AMatrix |
Matrixx.create(Object... vs) |
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.createSparse(AMatrix m)
Creates a sparse matrix from the given matrix, ignoring zeros
|
static AMatrix |
Matrixx.createSparse(int inputDims,
Index[] indexes,
AVector[] weights) |
abstract AMatrix |
AMatrix.exactClone() |
AMatrix |
AMatrix.getMatrixComponent() |
AMatrix |
AMatrix.getTranspose()
Returns a transposed version of this matrix.
|
AMatrix |
AMatrix.getTransposeView() |
AMatrix |
Matrix33.innerProduct(AMatrix a) |
AMatrix |
Matrix22.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
|
AMatrix |
AMatrix.subMatrix(int rowStart,
int rows,
int colStart,
int cols) |
static AMatrix |
Matrixx.toMatrix(Object o)
Coerces to a matrix
|
AMatrix |
AMatrix.toMutableMatrix()
Creates a fully mutable deep copy of this matrix
|
AMatrix |
AMatrix.transposeInnerProduct(AMatrix s) |
static AMatrix |
Matrixx.wrapStrided(double[] data,
int rows,
int cols,
int offset,
int rowStride,
int colStride)
Wraps double[] data in a strided 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) |
INDArray |
AMatrix.broadcastLike(AMatrix target) |
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 Matrix |
Matrixx.create(AMatrix m)
Creates a mutable deep copy of a matrix
|
static Matrix |
Matrix.create(AMatrix m) |
static AMatrix |
Matrixx.createSparse(AMatrix m)
Creates a sparse matrix from the given matrix, ignoring zeros
|
static Matrix |
Matrixx.deepCopy(AMatrix m) |
void |
AMatrix.elementDiv(AMatrix m)
Divides this matrix in-place by another in an entrywise manner (Hadamard product).
|
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) |
AMatrix |
Matrix22.innerProduct(AMatrix a) |
Matrix |
Matrix.innerProduct(AMatrix a) |
AMatrix |
AMatrix.innerProduct(AMatrix a) |
boolean |
AMatrix.isSameShape(AMatrix a) |
void |
AMatrix.mul(AMatrix a)
"Multiplies" this matrix by another, composing the transformation
|
void |
Matrix22.set(AMatrix m) |
void |
Matrix.set(AMatrix a) |
void |
AMatrix.set(AMatrix a) |
void |
AMatrix.sub(AMatrix m)
Subtracts another matrix from this one
|
AMatrix |
AMatrix.transposeInnerProduct(AMatrix s) |
| Constructor and Description |
|---|
Matrix(AMatrix m) |
Matrix22(AMatrix m) |
Matrix33(AMatrix m) |
| Modifier and Type | Method and Description |
|---|---|
static AMatrix[] |
ThinSVD.decompose(AMatrix a) |
static AMatrix[] |
LU.decomposeLUP(AMatrix matrix) |
static AMatrix[] |
LU.decomposeLUP(Matrix matrix) |
static AMatrix |
Multiplications.naiveMultiply(AMatrix a,
AMatrix b) |
| Modifier and Type | Method and Description |
|---|---|
static Matrix |
Multiplications.blockedMultiply(Matrix a,
AMatrix b)
Performs fast matrix multiplication using temporary working storage for the second matrix
|
static AMatrix[] |
ThinSVD.decompose(AMatrix a) |
static Matrix[] |
QR.decompose(AMatrix matrix) |
static Matrix |
Cholesky.decompose(AMatrix a) |
static AMatrix[] |
LU.decomposeLUP(AMatrix matrix) |
static Matrix |
Multiplications.doubleBlockedMultiply(AMatrix a,
AMatrix b)
Performs fast matrix multiplication using temporary working storage for both matrices
|
static Matrix |
Multiplications.multiply(AMatrix a,
AMatrix b)
General purpose matrix multiplication, with smart selection of algorithm based
on matrix size and type.
|
static Matrix |
Multiplications.multiply(Matrix a,
AMatrix b) |
static AMatrix |
Multiplications.naiveMultiply(AMatrix a,
AMatrix b) |
| Modifier and Type | Class and Description |
|---|---|
class |
AArrayMatrix
Abstract class for a Matrix backed with a single double[] data array
Dimensions are fixed, but leaves open the possibility of arbitrary indexing
|
class |
ABandedMatrix
Abstract base class for banded matrices
Banded matrix implementations are assumed to store their data efficiently in diagonal bands,
so functions on banded matrices are designed to exploit this fact.
|
class |
ABlockMatrix
Abstract base class for a large matrix constructed out of regular subMatrix blocks
|
class |
ABooleanMatrix |
class |
ADenseArrayMatrix
Abstract base class for matrices wrapping a dense (rows*cols) subset of a double[] array
|
class |
ADiagonalMatrix
Abstract base class for square diagonal matrices
|
class |
AStridedMatrix |
class |
AVectorMatrix<T extends AVector>
Abstract base class for matrices that use a collection of Vectors
as storage for the matrix rows.
|
class |
BandedMatrix
Sparse banded matrix implementation.
|
class |
BroadcastVectorMatrix
Specialised class representing the broadcasting of a vector to a matrix shape
|
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 |
PermutationMatrix |
class |
PermutedMatrix
Reference matrix class representing a permutation of a matrix
|
class |
QuadtreeMatrix
A matrix implemented as a quadtree of submatrices.
|
class |
RowMatrix
Matrix class that wraps a vector as a 1-row matrix
|
class |
ScalarMatrix
Scalar matrix class - i.e.
|
class |
StridedMatrix |
class |
SubsetMatrix
Matrix that transforms to a selection of specific 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 |
AVectorMatrix.clone() |
AMatrix |
ZeroMatrix.compose(ATransform t) |
static AMatrix |
ScalarMatrix.create(int dimensions,
double scale) |
AMatrix |
StridedMatrix.exactClone() |
AMatrix |
QuadtreeMatrix.exactClone() |
AMatrix |
BroadcastVectorMatrix.exactClone() |
abstract AMatrix |
ABlockMatrix.getBlock(int rowBlock,
int colBlock) |
AMatrix |
TransposedMatrix.getTranspose() |
AMatrix |
StridedMatrix.getTranspose() |
AMatrix |
TransposedMatrix.getTransposeView() |
AMatrix |
StridedMatrix.getTransposeView() |
AMatrix |
AStridedMatrix.getTransposeView() |
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) |
static StridedMatrix |
StridedMatrix.create(AMatrix m) |
static QuadtreeMatrix |
QuadtreeMatrix.create(AMatrix c00,
AMatrix c01,
AMatrix c10,
AMatrix c11) |
void |
ZeroMatrix.elementMul(AMatrix m) |
boolean |
ZeroMatrix.equals(AMatrix m) |
AMatrix |
ZeroMatrix.innerProduct(AMatrix m) |
Matrix |
PermutationMatrix.innerProduct(AMatrix a) |
AMatrix |
IdentityMatrix.innerProduct(AMatrix a) |
AMatrix |
DiagonalMatrix.innerProduct(AMatrix a) |
AMatrix |
ADiagonalMatrix.innerProduct(AMatrix a) |
static AMatrix |
TransposedMatrix.wrap(AMatrix m) |
| Constructor and Description |
|---|
MatrixColumnView(AMatrix aMatrix,
int column) |
MatrixElementIterator(AMatrix source) |
MatrixIterator(AMatrix source) |
MatrixRowView(AMatrix aMatrix,
int row) |
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() |
AMatrix |
Affine23.getMatrixComponent() |
abstract AMatrix |
AAffineTransform.getMatrixComponent() |
static AMatrix |
Transformz.scale(int dimensions,
double factor)
Creates an n-dimensional scaling transform
|
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 |
|---|
Affine23(AMatrix matrix,
ATranslation trans) |
Affine23(AMatrix m,
AVector v) |
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 |
|---|---|
void |
Op.applyTo(AMatrix m) |
INDArray |
AVector.broadcastLike(AMatrix target) |
AVector |
AVector.innerProduct(AMatrix m) |
| Modifier and Type | Field and Description |
|---|---|
protected AMatrix |
AMatrixViewVector.source |
| Modifier and Type | Method and Description |
|---|---|
INDArray |
AStridedVector.broadcastLike(AMatrix target) |
static AVector |
MatrixBandVector.create(AMatrix source,
int band) |
static AVector |
SparseIndexedVector.createFromRow(AMatrix m,
int row)
Creates a SparseIndexedVector from a row of an existing matrix
|
ZeroVector |
ZeroVector.innerProduct(AMatrix m) |
| Constructor and Description |
|---|
AMatrixViewVector(AMatrix source,
int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
Power.applyTo(AMatrix a) |
void |
Offset.applyTo(AMatrix v) |
void |
Clamp.applyTo(AMatrix v) |
| Modifier and Type | Method and Description |
|---|---|
AMatrix |
MatrixBuilder.toMatrix()
Builds a matrix using a copy of the data in this MatrixBuilder
|
| Modifier and Type | Method and Description |
|---|---|
static String |
ErrorMessages.notFullyMutable(AMatrix m,
int row,
int column) |
static String |
ErrorMessages.squareMatrixRequired(AMatrix m) |
Copyright © 2013. All Rights Reserved.