|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ejml.data.Matrix64F
org.ejml.data.D1Matrix64F
public abstract class D1Matrix64F
A generic abstract class for matrices whose data is stored in a single 1D array of doubles. The format of the elements in this array is not specified. For example row major, column major, and block row major are all common formats.
| Field Summary | |
|---|---|
double[] |
data
Where the raw data for the matrix is stored. |
| Fields inherited from class org.ejml.data.Matrix64F |
|---|
numCols, numRows |
| Constructor Summary | |
|---|---|
D1Matrix64F()
|
|
| Method Summary | |
|---|---|
double |
div(int index,
double val)
Divides the specified value to the internal data array at the specified index. Equivalent to: this.data[index] /= val; |
double |
get(int index)
Returns the value of the matrix at the specified internal array index. |
double[] |
getData()
Used to get a reference to the internal data. |
abstract int |
getIndex(int row,
int col)
Returns the internal array index for the specified row and column. |
double |
minus(int index,
double val)
Subtracts the specified value to the internal data array at the specified index. Equivalent to: this.data[index] -= val; |
double |
plus(int index,
double val)
Adds the specified value to the internal data array at the specified index. Equivalent to: this.data[index] += val; |
void |
set(D1Matrix64F b)
Sets the value of this matrix to be the same as the value of the provided matrix. |
double |
set(int index,
double val)
Sets the element's value at the specified index. |
void |
setData(double[] data)
Changes the internal array reference. |
double |
times(int index,
double val)
Multiplies the specified value to the internal data array at the specified index. Equivalent to: this.data[index] *= val; |
| Methods inherited from class org.ejml.data.Matrix64F |
|---|
copy, get, getNumCols, getNumElements, getNumRows, iterator, print, reshape, reshape, set, set, unsafe_get, unsafe_set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double[] data
| Constructor Detail |
|---|
public D1Matrix64F()
| Method Detail |
|---|
public double[] getData()
public void setData(double[] data)
public abstract int getIndex(int row,
int col)
row - Row index.col - Column index.
public void set(D1Matrix64F b)
b - The matrix that this matrix is to be set equal to.public double get(int index)
index - Internal array index.
public double set(int index,
double val)
index - Index of element that is to be set.val - The new value of the index.
public double plus(int index,
double val)
Adds the specified value to the internal data array at the specified index.
Equivalent to: this.data[index] += val;
Intended for use in highly optimized code. The row/column coordinate of the modified element is dependent upon the matrix's internal structure.
index - The index which is being modified.val - The value that is being added.
public double minus(int index,
double val)
Subtracts the specified value to the internal data array at the specified index.
Equivalent to: this.data[index] -= val;
Intended for use in highly optimized code. The row/column coordinate of the modified element is dependent upon the matrix's internal structure.
index - The index which is being modified.val - The value that is being subtracted.
public double times(int index,
double val)
Multiplies the specified value to the internal data array at the specified index.
Equivalent to: this.data[index] *= val;
Intended for use in highly optimized code. The row/column coordinate of the modified element is dependent upon the matrix's internal structure.
index - The index which is being modified.val - The value that is being multiplied.
public double div(int index,
double val)
Divides the specified value to the internal data array at the specified index.
Equivalent to: this.data[index] /= val;
Intended for use in highly optimized code. The row/column coordinate of the modified element is dependent upon the matrix's internal structure.
index - The index which is being modified.val - The value that is being divided.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||