Helper class to run operation a column/row of a matrix to a chunk of memory where the size is dynamically defined.
More...
#include <SparseMatrix.h>
|
typedef SparseType::Scalar | T |
|
typedef SparseType::StorageIndex | StorageIndex |
|
|
void | assign (T *ptr, StorageIndex start, Eigen::Index n, Eigen::Index m, const Eigen::Ref< const DerivedSub > &subMatrix, Eigen::Index colRowId) |
| Do the assignment of a row/column of a matrix to a chunk of memory. More...
|
|
void | assign (T *ptr, const T &value) |
| Do the assignment of a single matrix element (operator =) More...
|
|
void | add (T *ptr, StorageIndex start, Eigen::Index n, Eigen::Index m, const Eigen::Ref< const DerivedSub > &subMatrix, Eigen::Index colRowId) |
| Do the addition of a row/column of a matrix to a chunk of memory. More...
|
|
void | add (T *ptr, const T &value) |
| Do the addition of a single matrix element (operator +=) More...
|
|
template<class DerivedSub, class SparseType, int StorageOrder = ((SparseType::Flags & Eigen::RowMajorBit) == Eigen::RowMajorBit) ? Eigen::RowMajor : Eigen::ColMajor>
class SurgSim::Math::Operation< DerivedSub, SparseType, StorageOrder >
Helper class to run operation a column/row of a matrix to a chunk of memory where the size is dynamically defined.
- Template Parameters
-
DerivedSub | The class of the matrix from which the data are copied |
SparseType | The type of the SparseVector/SparseMatrix containing the chunk of memory |
StorageOrder | The storage option of the SparseType |
§ add() [1/2]
template<class DerivedSub, class SparseType, int StorageOrder = ((SparseType::Flags & Eigen::RowMajorBit) == Eigen::RowMajorBit) ? Eigen::RowMajor : Eigen::ColMajor>
void SurgSim::Math::Operation< DerivedSub, SparseType, StorageOrder >::add |
( |
T * |
ptr, |
|
|
StorageIndex |
start, |
|
|
Eigen::Index |
n, |
|
|
Eigen::Index |
m, |
|
|
const Eigen::Ref< const DerivedSub > & |
subMatrix, |
|
|
Eigen::Index |
colRowId |
|
) |
| |
|
inline |
Do the addition of a row/column of a matrix to a chunk of memory.
- Parameters
-
ptr | The chunk of memory |
start | Where the addition starts in the chunk of memory |
n,m | The size of the block (n rows, m columns) |
subMatrix | The matrix from which the row/column is added |
colRowId | The column or row id depending on the template parameter Opt |
§ add() [2/2]
template<class DerivedSub, class SparseType, int StorageOrder = ((SparseType::Flags & Eigen::RowMajorBit) == Eigen::RowMajorBit) ? Eigen::RowMajor : Eigen::ColMajor>
Do the addition of a single matrix element (operator +=)
- Parameters
-
ptr | The matrix element to be increased |
value | The value to add |
§ assign() [1/2]
template<class DerivedSub, class SparseType, int StorageOrder = ((SparseType::Flags & Eigen::RowMajorBit) == Eigen::RowMajorBit) ? Eigen::RowMajor : Eigen::ColMajor>
void SurgSim::Math::Operation< DerivedSub, SparseType, StorageOrder >::assign |
( |
T * |
ptr, |
|
|
StorageIndex |
start, |
|
|
Eigen::Index |
n, |
|
|
Eigen::Index |
m, |
|
|
const Eigen::Ref< const DerivedSub > & |
subMatrix, |
|
|
Eigen::Index |
colRowId |
|
) |
| |
|
inline |
Do the assignment of a row/column of a matrix to a chunk of memory.
- Parameters
-
ptr | The chunk of memory |
start | Where the assignment starts in the chunk of memory |
n,m | The size of the block (n rows, m columns) |
subMatrix | The matrix from which the row/column is copied |
colRowId | The column or row id depending on the template parameter Opt |
§ assign() [2/2]
template<class DerivedSub, class SparseType, int StorageOrder = ((SparseType::Flags & Eigen::RowMajorBit) == Eigen::RowMajorBit) ? Eigen::RowMajor : Eigen::ColMajor>
Do the assignment of a single matrix element (operator =)
- Parameters
-
ptr | The matrix element to be assigned |
value | The value to assign to |
The documentation for this class was generated from the following file: