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 |
Typedef that stores the data type used for template instantiation
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 |
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 |
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 |
( |
const services::SharedPtr< DataType > & |
ptr, |
|
|
size_t |
nDim, |
|
|
const DataType & |
constValue |
|
) |
| |
|
inline |
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 |
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 |
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 |
services::Status assign |
( |
T |
value | ) |
|
|
inline |
Fills a numeric table with a constant
- Parameters
-
[in] | value | Constant to initialize entries of the packed symmetric matrix |
virtual services::Status assign |
( |
float |
value | ) |
|
|
inlinevirtual |
Fills a numeric table with a constant
- Parameters
-
[in] | value | Constant to initialize entries of the numeric table |
Reimplemented from NumericTable.
virtual services::Status assign |
( |
double |
value | ) |
|
|
inlinevirtual |
Fills a numeric table with a constant
- Parameters
-
[in] | value | Constant to initialize entries of the numeric table |
Reimplemented from NumericTable.
virtual services::Status assign |
( |
int |
value | ) |
|
|
inlinevirtual |
Fills a numeric table with a constant
- Parameters
-
[in] | value | Constant to initialize entries of the numeric table |
Reimplemented from NumericTable.
DataType* getArray |
( |
| ) |
const |
|
inline |
Returns a pointer to a data set registered in the packed symmetric matrix
- Returns
- Pointer to the data set
services::SharedPtr<DataType> getArraySharedPtr |
( |
| ) |
const |
|
inline |
Returns a pointer to a data set registered in the packed symmetric matrix
- Returns
- Pointer to the data set
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.
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.
services::Status getBlockOfColumnValues |
( |
size_t |
feature_idx, |
|
|
size_t |
vector_idx, |
|
|
size_t |
value_num, |
|
|
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< int > & |
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.
services::Status getBlockOfRows |
( |
size_t |
vector_idx, |
|
|
size_t |
vector_num, |
|
|
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< double > & |
block |
|
) |
| |
|
inlinevirtual |
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.
services::Status getBlockOfRows |
( |
size_t |
vector_idx, |
|
|
size_t |
vector_num, |
|
|
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< float > & |
block |
|
) |
| |
|
inlinevirtual |
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.
services::Status getBlockOfRows |
( |
size_t |
vector_idx, |
|
|
size_t |
vector_num, |
|
|
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< int > & |
block |
|
) |
| |
|
inlinevirtual |
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.
services::Status getPackedArray |
( |
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< double > & |
block |
|
) |
| |
|
inlinevirtual |
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.
services::Status getPackedArray |
( |
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< float > & |
block |
|
) |
| |
|
inlinevirtual |
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.
services::Status getPackedArray |
( |
ReadWriteMode |
rwflag, |
|
|
BlockDescriptor< int > & |
block |
|
) |
| |
|
inlinevirtual |
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.
services::Status releaseBlockOfColumnValues |
( |
BlockDescriptor< double > & |
block | ) |
|
|
inlinevirtual |
Releases a block of values for a given feature.
- Parameters
-
[in] | block | The block of feature values. |
Implements DenseNumericTableIface.
services::Status releaseBlockOfColumnValues |
( |
BlockDescriptor< float > & |
block | ) |
|
|
inlinevirtual |
Releases a block of values for a given feature.
- Parameters
-
[in] | block | The block of feature values. |
Implements DenseNumericTableIface.
services::Status releaseBlockOfColumnValues |
( |
BlockDescriptor< int > & |
block | ) |
|
|
inlinevirtual |
Releases a block of values for a given feature.
- Parameters
-
[in] | block | The block of feature values. |
Implements DenseNumericTableIface.
services::Status setArray |
( |
DataType *const |
ptr | ) |
|
|
inline |
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 |
services::Status setArray |
( |
const services::SharedPtr< DataType > & |
ptr | ) |
|
|
inline |
Sets a pointer to a packed array
- Parameters
-
[in] | ptr | Pointer to the data set in the packed format |
virtual services::Status setNumberOfColumns |
( |
size_t |
ncol | ) |
|
|
inlinevirtual |
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.
virtual services::Status setNumberOfRows |
( |
size_t |
nrow | ) |
|
|
inlinevirtual |
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: