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

matlabcontrol.link.MatlabLogicalMatrix 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 MatlabLogicalMatrix extends MatlabNonNumericMatrix {
	MatlabLogicalMatrix() {}

	public static  MatlabLogicalMatrix getFull(T values) {
		return new MatlabLogicalFullMatrix(values);
	}

	public static MatlabLogicalMatrix getSparse(int[] rowIndices, int[] colIndices, boolean[] values,
			int numRows, int numCols) {
		return new MatlabLogicalSparseMatrix(rowIndices, colIndices, values, numRows, numCols);
	}

	public abstract boolean getElementAtLinearIndex(int linearIndex);

	public abstract boolean getElementAtIndices(int row, int column);

	public abstract boolean getElementAtIndices(int row, int column, int page);

	public abstract boolean getElementAtIndices(int row, int column, int[] pages);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy