Public Member Functions | Protected Attributes | List of all members
Eigen::Triplet< Scalar, Index > Class Template Reference

A small structure to hold a non zero as a triplet (i,j,value). More...

#include <SparseUtil.h>

Public Member Functions

const Index & col () const
 
const Index & row () const
 
 Triplet ()
 
 Triplet (const Index &i, const Index &j, const Scalar &v=Scalar(0))
 
const Scalar & value () const
 

Protected Attributes

Index m_col
 
Index m_row
 
Scalar m_value
 

Detailed Description

template<typename Scalar, typename Index = unsigned int>
class Eigen::Triplet< Scalar, Index >

A small structure to hold a non zero as a triplet (i,j,value).

See also
SparseMatrix::setFromTriplets()

Definition at line 147 of file SparseUtil.h.

Constructor & Destructor Documentation

◆ Triplet() [1/2]

template<typename Scalar , typename Index = unsigned int>
Eigen::Triplet< Scalar, Index >::Triplet ( )
inline

Definition at line 150 of file SparseUtil.h.

◆ Triplet() [2/2]

template<typename Scalar , typename Index = unsigned int>
Eigen::Triplet< Scalar, Index >::Triplet ( const Index &  i,
const Index &  j,
const Scalar &  v = Scalar(0) 
)
inline

Definition at line 152 of file SparseUtil.h.

Member Function Documentation

◆ col()

template<typename Scalar , typename Index = unsigned int>
const Index& Eigen::Triplet< Scalar, Index >::col ( ) const
inline
Returns
the column index of the element

Definition at line 160 of file SparseUtil.h.

◆ row()

template<typename Scalar , typename Index = unsigned int>
const Index& Eigen::Triplet< Scalar, Index >::row ( ) const
inline
Returns
the row index of the element

Definition at line 157 of file SparseUtil.h.

◆ value()

template<typename Scalar , typename Index = unsigned int>
const Scalar& Eigen::Triplet< Scalar, Index >::value ( ) const
inline
Returns
the value of the element

Definition at line 163 of file SparseUtil.h.

Member Data Documentation

◆ m_col

template<typename Scalar , typename Index = unsigned int>
Index Eigen::Triplet< Scalar, Index >::m_col
protected

Definition at line 165 of file SparseUtil.h.

◆ m_row

template<typename Scalar , typename Index = unsigned int>
Index Eigen::Triplet< Scalar, Index >::m_row
protected

Definition at line 165 of file SparseUtil.h.

◆ m_value

template<typename Scalar , typename Index = unsigned int>
Scalar Eigen::Triplet< Scalar, Index >::m_value
protected

Definition at line 166 of file SparseUtil.h.


The documentation for this class was generated from the following file:


tuw_aruco
Author(s): Lukas Pfeifhofer
autogenerated on Mon Feb 28 2022 23:58:15