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 |
Typedef that stores the datatype 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 |
- Deprecated:
- This item will be removed in a future release. Use PackedSymmetricMatrix::create instead.
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.
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 |
( |
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 |
- Deprecated:
- This item will be removed in a future release. Use PackedSymmetricMatrix::create instead.
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.
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.
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.
static services::SharedPtr<PackedSymmetricMatrix> create |
( |
DataType *const |
ptr = 0 , |
|
|
size_t |
nDim = 0 , |
|
|
services::Status * |
stat = NULL |
|
) |
| |
|
inlinestatic |
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
static services::SharedPtr<PackedSymmetricMatrix> create |
( |
const services::SharedPtr< DataType > & |
ptr, |
|
|
size_t |
nDim, |
|
|
services::Status * |
stat = NULL |
|
) |
| |
|
inlinestatic |
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
static services::SharedPtr<PackedSymmetricMatrix> create |
( |
DataType *const |
ptr, |
|
|
size_t |
nDim, |
|
|
const DataType & |
constValue, |
|
|
services::Status * |
stat = NULL |
|
) |
| |
|
inlinestatic |
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
static services::SharedPtr<PackedSymmetricMatrix> create |
( |
const services::SharedPtr< DataType > & |
ptr, |
|
|
size_t |
nDim, |
|
|
const DataType & |
constValue, |
|
|
services::Status * |
stat = NULL |
|
) |
| |
|
inlinestatic |
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
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
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
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 a packed array
- Parameters
-
[in] | ptr | Pointer to the data set in the packed format |
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 |
The documentation for this class was generated from the following file: