Class that provides methods to access symmetric matrices stored as a one-dimensional array.
More...
|
static services::SharedPtr< PackedSymmetricMatrix > | create (DataType *const ptr=0, size_t nDim=0, services::Status *stat=NULL) |
|
static services::SharedPtr< PackedSymmetricMatrix > | create (const services::SharedPtr< DataType > &ptr, size_t nDim, services::Status *stat=NULL) |
|
static services::SharedPtr< PackedSymmetricMatrix > | create (DataType *const ptr, size_t nDim, const DataType &constValue, services::Status *stat=NULL) |
|
static services::SharedPtr< PackedSymmetricMatrix > | create (const services::SharedPtr< DataType > &ptr, size_t nDim, const DataType &constValue, services::Status *stat=NULL) |
|
static services::SharedPtr< PackedSymmetricMatrix > | create (size_t nDim, AllocationFlag memoryAllocationFlag, services::Status *stat=NULL) |
|
static services::SharedPtr< PackedSymmetricMatrix > | create (size_t nDim, NumericTable::AllocationFlag memoryAllocationFlag, const DataType &constValue, services::Status *stat=NULL) |
|
template<NumericTableIface::StorageLayout packedLayout, typename DataType = DAAL_DATA_TYPE>
class daal::data_management::interface1::PackedSymmetricMatrix< packedLayout, DataType >
- Template Parameters
-
DataType | Defines the underlying data type that describes the Numeric Table |
◆ baseDataType
Typedef that stores the datatype used for template instantiation
◆ PackedSymmetricMatrix() [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 |
- Deprecated:
- This item will be removed in a future release. Use PackedSymmetricMatrix::create instead.
◆ PackedSymmetricMatrix() [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 |
- Deprecated:
- This item will be removed in a future release. Use PackedSymmetricMatrix::create instead.
◆ PackedSymmetricMatrix() [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 |
- Deprecated:
- This item will be removed in a future release. Use PackedSymmetricMatrix::create instead.
◆ PackedSymmetricMatrix() [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 |
- Deprecated:
- This item will be removed in a future release. Use PackedSymmetricMatrix::create instead.
◆ PackedSymmetricMatrix() [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 |
- Deprecated:
- This item will be removed in a future release. Use PackedSymmetricMatrix::create instead.
◆ PackedSymmetricMatrix() [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 |
- Deprecated:
- This item will be removed in a future release. Use PackedSymmetricMatrix::create instead.
◆ 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.
◆ create() [1/6]
Constructs a Numeric Table with user-allocated memory
- Parameters
-
[in] | ptr | Pointer to and an array with a homogeneous data set |
[in] | nDim | Matrix dimension |
[out] | stat | Status of the table construction |
- Returns
- Numeric table with user-allocated memory
◆ create() [2/6]
Constructs a Numeric Table with user-allocated memory
- Parameters
-
[in] | ptr | Pointer to and an array with a homogeneous data set |
[in] | nDim | Matrix dimension |
[out] | stat | Status of the table construction |
- Returns
- Numeric table with user-allocated memory
◆ create() [3/6]
Constructs a numeric table with user-allocated memory and fills 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 |
[out] | stat | Status of the table construction |
- Returns
- Numeric table with user-allocated memory initialized with a constant
◆ create() [4/6]
Constructs a numeric table with user-allocated memory and fills 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 |
[out] | stat | Status of the table construction |
- Returns
- Numeric table with user-allocated memory initialized with a constant
◆ create() [5/6]
Constructs 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 |
[out] | stat | Status of the table construction |
- Returns
- Numeric table
◆ create() [6/6]
Constructs a Numeric Table with memory allocation controlled via a flag and fills 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 |
[out] | stat | Status of the table construction |
- Returns
- Numeric table initialized with a constant
◆ 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 a packed array
- Parameters
-
[in] | ptr | Pointer to the data set in the packed format |
◆ setArray() [2/2]
Sets a pointer to a packed array
- Parameters
-
[in] | ptr | Pointer to the data set in the packed format |
The documentation for this class was generated from the following file: