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

matlabcontrol.link.MatlabDoubleMatrix Maven / Gradle / Ivy

There is a newer version: 4.6.0
Show newest version
/*
 * Code licensed under new-style BSD (see LICENSE).
 * All code up to tags/original: Copyright (c) 2013, Joshua Kaplan
 * All code after tags/original: Copyright (c) 2016, DiffPlug
 */
package matlabcontrol.link;

/**
 *
 * @since 4.2.0
 * @author Joshua Kaplan
 */
public abstract class MatlabDoubleMatrix extends MatlabNumericMatrix {
	MatlabDoubleMatrix() {}

	public static  MatlabDoubleMatrix getFull(T real, T imag) {
		return new MatlabDoubleFullMatrix(real, imag);
	}

	public static MatlabDoubleMatrix getSparse(int[] rowIndices, int[] colIndices,
			double[] real, double[] imag, int numRows, int numCols) {
		return new MatlabDoubleSparseMatrix(rowIndices, colIndices, real, imag, numRows, numCols);
	}

	public abstract double getRealElementAtLinearIndex(int linearIndex);

	public abstract double getImaginaryElementAtLinearIndex(int linearIndex);

	public abstract double getRealElementAtIndices(int row, int column);

	public abstract double getRealElementAtIndices(int row, int column, int page);

	public abstract double getRealElementAtIndices(int row, int column, int[] pages);

	public abstract double getImaginaryElementAtIndices(int row, int column);

	public abstract double getImaginaryElementAtIndices(int row, int column, int page);

	public abstract double getImaginaryElementAtIndices(int row, int column, int[] pages);

	@Override
	public abstract MatlabDouble getElementAtLinearIndex(int linearIndex);

	@Override
	public abstract MatlabDouble getElementAtIndices(int row, int column);

	@Override
	public abstract MatlabDouble getElementAtIndices(int row, int column, int page);

	@Override
	public abstract MatlabDouble getElementAtIndices(int row, int column, int... pages);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy