Shapeworks Studio  2.1
Shape analysis software suite
List of all members | Public Member Functions | Protected Attributes
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

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

Protected Attributes

Index m_row
 
Index m_col
 
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.

Member Function Documentation

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.

160 { return m_col; }
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.

157 { return m_row; }
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.

163 { return m_value; }

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