Package org.ejml.data
Class DenseD2Matrix64F
java.lang.Object
org.ejml.data.DenseD2Matrix64F
- All Implemented Interfaces:
Serializable,org.ejml.data.DMatrix,org.ejml.data.Matrix,org.ejml.data.ReshapeMatrix
public class DenseD2Matrix64F
extends Object
implements Serializable, org.ejml.data.ReshapeMatrix, org.ejml.data.DMatrix
A row matrix where the array is stored as a 2D array.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends org.ejml.data.Matrix>
Tcopy()create(int numRows, int numCols) doubleget(int row, int col) intintorg.ejml.data.MatrixTypegetType()voidprint()voidvoidreshape(int numRows, int numCols) voidset(int row, int col, double val) voidsetTo(org.ejml.data.Matrix original) doubleunsafe_get(int row, int col) voidunsafe_set(int row, int col, double val) voidzero()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ejml.data.DMatrix
getNumElements
-
Field Details
-
data
public double[][] dataWhere the raw data for the matrix is stored. The format is type dependent. -
numRows
public int numRowsNumber of rows in the matrix. -
numCols
public int numColsNumber of columns in the matrix.
-
-
Constructor Details
-
DenseD2Matrix64F
public DenseD2Matrix64F(int numRows, int numCols)
-
-
Method Details
-
reshape
public void reshape(int numRows, int numCols) - Specified by:
reshapein interfaceorg.ejml.data.ReshapeMatrix
-
zero
public void zero()- Specified by:
zeroin interfaceorg.ejml.data.Matrix
-
get
public double get(int row, int col) - Specified by:
getin interfaceorg.ejml.data.DMatrix
-
set
public void set(int row, int col, double val) - Specified by:
setin interfaceorg.ejml.data.DMatrix
-
unsafe_get
public double unsafe_get(int row, int col) - Specified by:
unsafe_getin interfaceorg.ejml.data.DMatrix
-
unsafe_set
public void unsafe_set(int row, int col, double val) - Specified by:
unsafe_setin interfaceorg.ejml.data.DMatrix
-
getNumRows
public int getNumRows()- Specified by:
getNumRowsin interfaceorg.ejml.data.Matrix
-
getNumCols
public int getNumCols()- Specified by:
getNumColsin interfaceorg.ejml.data.Matrix
-
print
public void print()- Specified by:
printin interfaceorg.ejml.data.Matrix
-
print
- Specified by:
printin interfaceorg.ejml.data.Matrix
-
copy
public <T extends org.ejml.data.Matrix> T copy()- Specified by:
copyin interfaceorg.ejml.data.Matrix
-
createLike
- Specified by:
createLikein interfaceorg.ejml.data.Matrix
-
create
- Specified by:
createin interfaceorg.ejml.data.Matrix
-
setTo
public void setTo(org.ejml.data.Matrix original) - Specified by:
setToin interfaceorg.ejml.data.Matrix
-
getType
public org.ejml.data.MatrixType getType()- Specified by:
getTypein interfaceorg.ejml.data.Matrix
-