public class FullMatrix extends MutableAbstractMatrix implements MutableMatrix, Cloneable
Matrix.buffer, columns, rows, zeroPadded| Modifier | Constructor and Description |
|---|---|
|
FullMatrix(File csvFile,
String charset,
char separator,
boolean ignoreFirstLine)
Constructs fully backed matrix with values from a CSV file.
|
|
FullMatrix(int rows,
int columns)
Creates a fully backed matrix with the given number of rows and columns.
|
|
FullMatrix(int rows,
int columns,
boolean direct,
boolean zeroPadded)
Creates a fully backed matrix with the given number of rows and columns.
|
|
FullMatrix(int rows,
int columns,
float[] values)
Creates a fully backed matrix with the given number of rows and columns.
|
|
FullMatrix(int rows,
int columns,
MatrixBackingBuffer buffer,
boolean zeroPadded)
Creates a fully backed matrix with the given number of rows and columns.
|
protected |
FullMatrix(int rows,
int columns,
MatrixBackingBuffer buffer,
boolean zeroPadded,
boolean allocate) |
|
FullMatrix(Matrix matrix,
MatrixBackingBuffer buffer,
boolean zeroPadded)
Creates a fully backed matrix, filled with the values from the given matrix.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
allocate(MatrixBackingBuffer buffer)
Calls
MatrixBackingBuffer.allocate(int) on the used buffer. |
Object |
clone() |
copy, copy, copy, copy, fill, set, set, setColumn, setRowadd, checkBounds, columnSum, enlarge, equals, get, get, getColumn, getNumberOfColumns, getNumberOfRows, getRow, hadamardMultiply, hashCode, isInvalid, isValidXORZeroPadded, isZeroPadded, multiply, multiply, rowSum, subtract, sum, toIndex, toString, translate, transposefinalize, getClass, notify, notifyAll, wait, wait, waitcopy, copy, copy, fill, set, setColumn, setRowadd, columnSum, enlarge, get, getColumn, getNumberOfColumns, getNumberOfRows, getRow, hadamardMultiply, isZeroPadded, multiply, multiply, rowSum, subtract, sum, translate, transposepublic FullMatrix(File csvFile, String charset, char separator, boolean ignoreFirstLine) throws IOException
csvFile - filecharset - charsetseparator - seperator between values, usually ','ignoreFirstLine - whether the first line should be ignored (non-numerical headers)IOExceptionpublic FullMatrix(int rows,
int columns,
float[] values)
rows - rowscolumns - columnsvalues - initial valuesMutableMatrix.copy(float[])public FullMatrix(int rows,
int columns)
rows - rowscolumns - columnspublic FullMatrix(int rows,
int columns,
MatrixBackingBuffer buffer,
boolean zeroPadded)
rows - rowscolumns - columnsbuffer - backing bufferzeroPadded - shall the matrix be zero padded?public FullMatrix(Matrix matrix, MatrixBackingBuffer buffer, boolean zeroPadded)
matrix - matrix to copybuffer - backing bufferzeroPadded - shall the matrix be zero padded?public FullMatrix(int rows,
int columns,
boolean direct,
boolean zeroPadded)
FloatBackingBuffer, either on the heap or natively.
The matrix may be zero-padded.rows - rowscolumns - columnsdirect - shall the memory be allocated directly?zeroPadded - shall the matrix be zero padded?protected FullMatrix(int rows,
int columns,
MatrixBackingBuffer buffer,
boolean zeroPadded,
boolean allocate)
protected void allocate(MatrixBackingBuffer buffer)
MutableAbstractMatrixMatrixBackingBuffer.allocate(int) on the used buffer.allocate in class MutableAbstractMatrixbuffer - bufferpublic Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.