matlabcontrol.link.MatlabLogicalMatrix Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of matconsolectl Show documentation
Show all versions of matconsolectl Show documentation
MatConsoleCtl - control MATLAB from Java
/*
* 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