A small structure to hold a non zero as a triplet (i,j,value).
More...
#include <SparseUtil.h>
|
| Triplet (const Index &i, const Index &j, const Scalar &v=Scalar(0)) |
|
const Index & | row () const |
|
const Index & | col () const |
|
const Scalar & | value () const |
|
|
Index | m_row |
|
Index | m_col |
|
Scalar | m_value |
|
template<typename Scalar, typename Index = typename SparseMatrix<Scalar>::Index>
class Eigen::Triplet< Scalar, Index >
A small structure to hold a non zero as a triplet (i,j,value).
- See also
- SparseMatrix::setFromTriplets()
§ col()
template<typename Scalar, typename Index = typename SparseMatrix<Scalar>::Index>
- Returns
- the column index of the element
§ row()
template<typename Scalar, typename Index = typename SparseMatrix<Scalar>::Index>
- Returns
- the row index of the element
§ value()
template<typename Scalar, typename Index = typename SparseMatrix<Scalar>::Index>
- Returns
- the value of the element
The documentation for this class was generated from the following file: