All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mikera.transformz.MatrixTransform Maven / Gradle / Ivy

Go to download

Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.

There is a newer version: 0.67.0
Show newest version
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