ch.javasoft.jsmat.variable
Class MatDoubleMatrix
java.lang.Object
ch.javasoft.jsmat.variable.MatVariable
ch.javasoft.jsmat.variable.MatAllocated
ch.javasoft.jsmat.variable.MatMatrix<double[]>
ch.javasoft.jsmat.variable.MatDoubleMatrix
public class MatDoubleMatrix
- extends MatMatrix<double[]>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatDoubleMatrix
public MatDoubleMatrix(double[] values,
boolean rowVector)
- Parameters:
values - packed by columnrowVector - true if values is row vector
MatDoubleMatrix
public MatDoubleMatrix(double[] values,
int rows,
int cols)
- Parameters:
values - packed by columnrows - the number of rowscols - the number of columns
MatDoubleMatrix
public MatDoubleMatrix(double[][] values)
- Parameters:
values - rows in 1st dim, columns in 2nd
MatDoubleMatrix
public MatDoubleMatrix(double[] values,
int[] dims)
- Parameters:
values - packed by columndims - the dimensions
getMatrixSize
protected int getMatrixSize()
- Description copied from class:
MatMatrix
- Returns the matrix size, typically the overall array length of the
underlying data
- Specified by:
getMatrixSize in class MatMatrix<double[]>
createMatrixFromRows
public static MatDoubleMatrix createMatrixFromRows(List<double[]> rows)
- Parameters:
rows - list contains the rows
createMatrixFromColumns
public static MatDoubleMatrix createMatrixFromColumns(List<double[]> columns)
getRawDataSize
public int getRawDataSize()
- Overrides:
getRawDataSize in class MatMatrix<double[]>
- Returns:
- size of raw data excluding type(4) and size(4) and name
writeRawData
public void writeRawData(DataOutput out)
throws IOException
- Description copied from class:
MatMatrix
- Write the raw data to the given output, excluding type, size, name etc.
This method is implemented by the type specific subclasses.
- Specified by:
writeRawData in class MatMatrix<double[]>
- Parameters:
out - the data output to write to
- Throws:
IOException - if any io exception occurs