Class that provides methods to access symmetric matrices.
More...
Constructs packed symmetric matrix using implementation provided by user
- Parameters
-
context | Context to manage created packed symmetric matrix |
impl | Implementation of packed symmetric matrix |
Constructs packed symmetric matrix from the array of doubles
- Parameters
-
context | Context to manage created packed symmetric matrix |
data | Array of size nVectors x nDim |
nDim | Number of features in numeric table |
layout | Data layout of the numeric table, NumericTable.StorageLayout.upperPackedSymmetricMatrix or NumericTable.StorageLayout.lowerPackedSymmetricMatrix |
Constructs packed symmetric matrix from the array of floats
- Parameters
-
context | Context to manage created packed symmetric matrix |
data | Array of size nVectors x nDim |
nDim | Number of features in numeric table |
layout | Data layout of the numeric table, NumericTable.StorageLayout.upperPackedSymmetricMatrix or NumericTable.StorageLayout.lowerPackedSymmetricMatrix |
Constructs packed symmetric matrix from the array of longs
- Parameters
-
context | Context to manage created packed symmetric matrix |
data | Array of size nVectors x nDim |
nDim | Number of features in numeric table |
layout | Data layout of the numeric table, NumericTable.StorageLayout.upperPackedSymmetricMatrix or NumericTable.StorageLayout.lowerPackedSymmetricMatrix |
Constructs packed symmetric matrix from the array of integers
- Parameters
-
context | Context to manage created packed symmetric matrix |
data | Array of size nVectors x nDim |
nDim | Number of features in numeric table |
layout | Data layout of the numeric table, NumericTable.StorageLayout.upperPackedSymmetricMatrix or NumericTable.StorageLayout.lowerPackedSymmetricMatrix |
Constructs packed symmetric matrix from C++ packed symmetric matrix
- Parameters
-
context | Context to manage created packed symmetric matrix |
cTable | Pointer to C++ numeric table |
void assign |
( |
long |
constValue | ) |
|
Fills a numeric table with a constant
- Parameters
-
constValue | Constant to initialize entries of the packed symmetric matrix |
void assign |
( |
int |
constValue | ) |
|
Fills a numeric table with a constant
- Parameters
-
constValue | Constant to initialize entries of the packed symmetric matrix |
void assign |
( |
double |
constValue | ) |
|
Fills a numeric table with a constant
- Parameters
-
constValue | Constant to initialize entries of the packed symmetric matrix |
void assign |
( |
float |
constValue | ) |
|
Fills a numeric table with a constant
- Parameters
-
constValue | Constant to initialize entries of the packed symmetric matrix |
DoubleBuffer getBlockOfColumnValues |
( |
long |
featureIndex, |
|
|
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
DoubleBuffer |
buf |
|
) |
| |
Gets block of values for a given feature and returns it to java.nio.DoubleBuffer. This function needs to be defined by user in the subclass of this class.
- Parameters
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Buffer to store results |
- Returns
- Block of values of the feature packed into the DoubleBuffer
FloatBuffer getBlockOfColumnValues |
( |
long |
featureIndex, |
|
|
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
FloatBuffer |
buf |
|
) |
| |
Gets block of values for a given feature and returns it to java.nio.FloatBuffer. This function needs to be defined by user in the subclass of this class.
- Parameters
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Buffer to store results |
- Returns
- Block of values of the feature packed into the FloatBuffer
IntBuffer getBlockOfColumnValues |
( |
long |
featureIndex, |
|
|
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
IntBuffer |
buf |
|
) |
| |
Gets block of values for a given feature and returns it to java.nio.IntBuffer. This function needs to be defined by user in the subclass of this class.
- Parameters
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Buffer to store results |
- Returns
- Block of values of the feature packed into the IntBuffer
DoubleBuffer getBlockOfRows |
( |
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
DoubleBuffer |
buf |
|
) |
| |
Reads block of rows from the table and returns it to java.nio.DoubleBuffer. This method needs to be defined by user in the subclass of this class.
- Parameters
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Buffer to store results |
- Returns
- Block of table rows packed into DoubleBuffer
FloatBuffer getBlockOfRows |
( |
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
FloatBuffer |
buf |
|
) |
| |
Reads block of rows from the table and returns it to java.nio.FloatBuffer. This method needs to be defined by user in the subclass of this class.
- Parameters
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Buffer to store results |
- Returns
- Block of table rows packed into FloatBuffer
IntBuffer getBlockOfRows |
( |
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
IntBuffer |
buf |
|
) |
| |
Reads block of rows from the table and returns it to java.nio.IntBuffer. This method needs to be defined by user in the subclass of this class.
- Parameters
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Buffer to store results |
- Returns
- Block of table rows packed into IntBuffer
Gets data as an Object
- Returns
- Table data as an Object
Class<? extends Number> getNumericType |
( |
| ) |
|
Gets numeric type of data stored in numeric table
- Returns
- Numeric type of table data
DoubleBuffer getPackedArray |
( |
DoubleBuffer |
buf | ) |
|
Gets the whole packed array and returns it to java.nio.DoubleBuffer
- Parameters
-
buf | Buffer to store results |
return DoubleBuffer containing whole packed array
FloatBuffer getPackedArray |
( |
FloatBuffer |
buf | ) |
|
Gets the whole packed array and returns it to java.nio.FloatBuffer
- Parameters
-
buf | Buffer to store results |
return FloatBuffer containing whole packed array
IntBuffer getPackedArray |
( |
IntBuffer |
buf | ) |
|
Gets the whole packed array and returns it to java.nio.IntBuffer
- Parameters
-
buf | Buffer to store results |
return IntBuffer containing whole packed array
void releaseBlockOfColumnValues |
( |
long |
featureIndex, |
|
|
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
DoubleBuffer |
buf |
|
) |
| |
Transfers the values of a given feature from the input DoubleBuffer into a block of values of the feature in the table. This function needs to be defined by user in the subclass of this class.
- Parameters
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Input DoubleBuffer of size vectorNum |
void releaseBlockOfColumnValues |
( |
long |
featureIndex, |
|
|
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
FloatBuffer |
buf |
|
) |
| |
Transfers the values of a given feature from the input FloatBuffer into a block of values of the feature in the table. This function needs to be defined by user in the subclass of this class.
- Parameters
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Input FloatBuffer of size vectorNum |
void releaseBlockOfColumnValues |
( |
long |
featureIndex, |
|
|
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
IntBuffer |
buf |
|
) |
| |
Transfers the values of a given feature from the input IntBuffer into a block of values of the feature in the table. This function needs to be defined by user in the subclass of this class.
- Parameters
-
featureIndex | Index of the feature |
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of values in the block |
buf | Input IntBuffer of size vectorNum |
void releaseBlockOfRows |
( |
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
FloatBuffer |
buf |
|
) |
| |
Transfers the data from the input FloatBuffer into a block of table rows. This function needs to be defined by user in the subclass of this class.
- Parameters
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Input FloatBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table |
void releaseBlockOfRows |
( |
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
DoubleBuffer |
buf |
|
) |
| |
Transfers the data from the input DoubleBuffer into a block of table rows. This function needs to be defined by user in the subclass of this class.
- Parameters
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Input DoubleBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table |
void releaseBlockOfRows |
( |
long |
vectorIndex, |
|
|
long |
vectorNum, |
|
|
IntBuffer |
buf |
|
) |
| |
Transfers the data from the input IntBuffer into a block of table rows. This function needs to be defined by user in the subclass of this class.
- Parameters
-
vectorIndex | Index of the first row to include into the block |
vectorNum | Number of rows in the block |
buf | Input IntBuffer with the capacity vectorNum * nColumns, where nColumns is the number of columns in the table |
void releasePackedArray |
( |
DoubleBuffer |
buf | ) |
|
Release a packed array from the input DoubleBuffer
- Parameters
-
buf | Input DoubleBuffer with the capacity nDim * (nDim + 1) / 2, where nDim is the matrix dimension |
void releasePackedArray |
( |
FloatBuffer |
buf | ) |
|
Release a packed array from the input FloatBuffer
- Parameters
-
buf | Input FloatBuffer with the capacity nDim * (nDim + 1) / 2, where nDim is the matrix dimension |
void releasePackedArray |
( |
IntBuffer |
buf | ) |
|
Release a packed array from the input IntBuffer
- Parameters
-
buf | Input IntBuffer with the capacity nDim * (nDim + 1) / 2, where nDim is the matrix dimension |
The documentation for this class was generated from the following file:
- PackedSymmetricMatrix.java