mikera.transformz.MatrixTransform Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vectorz Show documentation
Show all versions of vectorz Show documentation
Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.
package mikera.transformz;
import mikera.matrixx.AMatrix;
public class MatrixTransform extends ALinearTransform {
private AMatrix mat;
private int inputCount;
private int outputCount;
public MatrixTransform(AMatrix matrix) {
this.mat=matrix;
inputCount=mat.columnCount();
outputCount=mat.rowCount();
}
@Override
public AMatrix getMatrix() {
return mat;
}
@Override
public int inputDimensions() {
return inputCount;
}
@Override
public int outputDimensions() {
return outputCount;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy