Class that provides methods to access a packed triangular matrix stored as a one-dimensional array.
More...
template<NumericTableIface::StorageLayout packedLayout, typename DataType = DAAL_DATA_TYPE>
class daal::data_management::interface1::PackedTriangularMatrix< packedLayout, DataType >
- Template Parameters
-
DataType | Defines the underlying data type that describes the packed triangular matrix |
◆ baseDataType
Typedef that stores the data type used for template instantiation
◆ PackedTriangularMatrix() [1/6]
Constructor for a Numeric Table with user-allocated memory
- Parameters
-
[in] | ptr | Pointer to and an array with a homogeneous data set |
[in] | nDim | Matrix dimension |
◆ PackedTriangularMatrix() [2/6]
Constructor for a Numeric Table with user-allocated memory
- Parameters
-
[in] | ptr | Pointer to and an array with a homogeneous data set |
[in] | nDim | Matrix dimension |
◆ PackedTriangularMatrix() [3/6]
Constructor for a Numeric Table with user-allocated memory and filling the table with a constant
- Parameters
-
[in] | ptr | Pointer to and an array with a homogeneous data set |
[in] | nDim | Matrix dimension |
[in] | constValue | Constant to initialize entries of the packed symmetric matrix |
◆ PackedTriangularMatrix() [4/6]
Constructor for a Numeric Table with user-allocated memory and filling the table with a constant
- Parameters
-
[in] | ptr | Pointer to and an array with a homogeneous data set |
[in] | nDim | Matrix dimension |
[in] | constValue | Constant to initialize entries of the packed symmetric matrix |
◆ PackedTriangularMatrix() [5/6]
Constructor for a Numeric Table with memory allocation controlled via a flag
- Parameters
-
[in] | nDim | Matrix dimension |
[in] | memoryAllocationFlag | Flag that controls internal memory allocation for data in the numeric table |
◆ PackedTriangularMatrix() [6/6]
Constructor for a Numeric Table with memory allocation controlled via a flag and filling the table with a constant
- Parameters
-
[in] | nDim | Matrix dimension |
[in] | memoryAllocationFlag | Flag that controls internal memory allocation for data in the numeric table |
[in] | constValue | Constant to initialize entries of the packed symmetric matrix |
◆ assign() [1/4]
Fills a numeric table with a constant
- Parameters
-
[in] | value | Constant to initialize entries of the packed symmetric matrix |
◆ assign() [2/4]
Fills a numeric table with a constant
- Parameters
-
[in] | value | Constant to initialize entries of the numeric table |
Reimplemented from NumericTable.
◆ assign() [3/4]
Fills a numeric table with a constant
- Parameters
-
[in] | value | Constant to initialize entries of the numeric table |
Reimplemented from NumericTable.
◆ assign() [4/4]
Fills a numeric table with a constant
- Parameters
-
[in] | value | Constant to initialize entries of the numeric table |
Reimplemented from NumericTable.
◆ getArray()
DataType* getArray |
( |
| ) |
const |
|
inline |
Returns a pointer to a data set registered in the packed symmetric matrix
- Returns
- Pointer to the data set
◆ getArraySharedPtr()
Returns a pointer to a data set registered in the packed symmetric matrix
- Returns
- Pointer to the data set
◆ getBlockOfColumnValues() [1/3]
services::Status getBlockOfColumnValues |
( |
size_t |
feature_idx, |
|
|
size_t |
vector_idx, |
|
|
size_t |
value_num, |
|
|
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< double > & |
block |
|
) |
| |
|
inlinevirtual |
Gets a block of values for a given feature.
- Parameters
-
[in] | feature_idx | Feature index. |
[in] | vector_idx | Index of the first feature vector to include into the block. |
[in] | value_num | Number of feature values in the block. |
[in] | rwflag | Flag specifying read/write access to the block of feature values. |
[out] | block | The block of feature values. |
- Returns
- Actual number of feature values returned by the method.
Implements DenseNumericTableIface.
◆ getBlockOfColumnValues() [2/3]
services::Status getBlockOfColumnValues |
( |
size_t |
feature_idx, |
|
|
size_t |
vector_idx, |
|
|
size_t |
value_num, |
|
|
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< float > & |
block |
|
) |
| |
|
inlinevirtual |
Gets a block of values for a given feature.
- Parameters
-
[in] | feature_idx | Feature index. |
[in] | vector_idx | Index of the first feature vector to include into the block. |
[in] | value_num | Number of feature values in the block. |
[in] | rwflag | Flag specifying read/write access to the block of feature values. |
[out] | block | The block of feature values. |
- Returns
- Actual number of feature values returned by the method.
Implements DenseNumericTableIface.
◆ getBlockOfColumnValues() [3/3]
Gets a block of values for a given feature.
- Parameters
-
[in] | feature_idx | Feature index. |
[in] | vector_idx | Index of the first feature vector to include into the block. |
[in] | value_num | Number of feature values in the block. |
[in] | rwflag | Flag specifying read/write access to the block of feature values. |
[out] | block | The block of feature values. |
- Returns
- Actual number of feature values returned by the method.
Implements DenseNumericTableIface.
◆ getBlockOfRows() [1/3]
Gets a block of rows from a table.
- Parameters
-
[in] | vector_idx | Index of the first row to include into the block. |
[in] | vector_num | Number of rows in the block. |
[in] | rwflag | Flag specifying read/write access to the block of feature vectors. |
[out] | block | The block of feature vectors. |
- Returns
- Actual number of feature vectors returned by the method.
Implements DenseNumericTableIface.
◆ getBlockOfRows() [2/3]
Gets a block of rows from a table.
- Parameters
-
[in] | vector_idx | Index of the first row to include into the block. |
[in] | vector_num | Number of rows in the block. |
[in] | rwflag | Flag specifying read/write access to the block of feature vectors. |
[out] | block | The block of feature vectors. |
- Returns
- Actual number of feature vectors returned by the method.
Implements DenseNumericTableIface.
◆ getBlockOfRows() [3/3]
Gets a block of rows from a table.
- Parameters
-
[in] | vector_idx | Index of the first row to include into the block. |
[in] | vector_num | Number of rows in the block. |
[in] | rwflag | Flag specifying read/write access to the block of feature vectors. |
[out] | block | The block of feature vectors. |
- Returns
- Actual number of feature vectors returned by the method.
Implements DenseNumericTableIface.
◆ getPackedArray() [1/3]
Gets the whole packed array of a requested data type
- Parameters
-
[in] | rwflag | Flag specifying read/write access to a block of feature vectors. |
[out] | block | The block of feature values. |
- Returns
- Actual number of feature vectors returned by the method.
Implements PackedArrayNumericTableIface.
◆ getPackedArray() [2/3]
Gets the whole packed array of a requested data type
- Parameters
-
[in] | rwflag | Flag specifying read/write access to a block of feature vectors. |
[out] | block | The block of feature values. |
- Returns
- Actual number of feature vectors returned by the method.
Implements PackedArrayNumericTableIface.
◆ getPackedArray() [3/3]
Gets the whole packed array of a requested data type
- Parameters
-
[in] | rwflag | Flag specifying read/write access to a block of feature vectors. |
[out] | block | The block of feature values. |
- Returns
- Actual number of feature vectors returned by the method.
Implements PackedArrayNumericTableIface.
◆ releaseBlockOfColumnValues() [1/3]
Releases a block of values for a given feature.
- Parameters
-
[in] | block | The block of feature values. |
Implements DenseNumericTableIface.
◆ releaseBlockOfColumnValues() [2/3]
Releases a block of values for a given feature.
- Parameters
-
[in] | block | The block of feature values. |
Implements DenseNumericTableIface.
◆ releaseBlockOfColumnValues() [3/3]
Releases a block of values for a given feature.
- Parameters
-
[in] | block | The block of feature values. |
Implements DenseNumericTableIface.
◆ releaseBlockOfRows() [1/3]
◆ releaseBlockOfRows() [2/3]
◆ releaseBlockOfRows() [3/3]
◆ releasePackedArray() [1/3]
◆ releasePackedArray() [2/3]
◆ releasePackedArray() [3/3]
◆ setArray() [1/2]
Sets a pointer to an array that stores a packed triangular matrix
- Parameters
-
[in] | ptr | Pointer to the array that stores the packed triangular matrix |
◆ setArray() [2/2]
Sets a pointer to a packed array
- Parameters
-
[in] | ptr | Pointer to the data set in the packed format |
◆ setNumberOfColumns()
Sets the number of columns in the Numeric Table
- Parameters
-
[in] | ncol | Number of columns |
- Deprecated:
- This item will be removed in a future release.
Reimplemented from NumericTable.
◆ setNumberOfRows()
Sets the number of rows in the Numeric Table
- Parameters
-
- Deprecated:
- This item will be removed in a future release.
Reimplemented from NumericTable.
The documentation for this class was generated from the following file: