public abstract class D1Matrix64F extends Matrix64F
| Modifier and Type | Field and Description |
|---|---|
double[] |
data
Where the raw data for the matrix is stored.
|
| Constructor and Description |
|---|
D1Matrix64F() |
| Modifier and Type | Method and Description |
|---|---|
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; |
copy, get, getNumCols, getNumElements, getNumRows, iterator, print, reshape, reshape, set, set, unsafe_get, unsafe_setpublic double[] data
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.Copyright © 2013. All Rights Reserved.