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, setRow
add, checkBounds, columnSum, enlarge, equals, get, get, getColumn, getNumberOfColumns, getNumberOfRows, getRow, hadamardMultiply, hashCode, isInvalid, isValidXORZeroPadded, isZeroPadded, multiply, multiply, rowSum, subtract, sum, toIndex, toString, translate, transpose
finalize, getClass, notify, notifyAll, wait, wait, wait
copy, copy, copy, fill, set, setColumn, setRow
add, columnSum, enlarge, get, getColumn, getNumberOfColumns, getNumberOfRows, getRow, hadamardMultiply, isZeroPadded, multiply, multiply, rowSum, subtract, sum, translate, transpose
public 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)IOException
public 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)
MutableAbstractMatrix
MatrixBackingBuffer.allocate(int)
on the used buffer.allocate
in class MutableAbstractMatrix
buffer
- bufferpublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2011–2020 tagtraum industries incorporated. All rights reserved.