Public Member Functions | Protected Attributes
Triplet< Scalar, Index > Class Template Reference

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

#include <SparseUtil.h>

List of all members.

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()

Constructor & Destructor Documentation

Triplet ( )
inline
Triplet ( const Index &  i,
const Index &  j,
const Scalar &  v = Scalar(0) 
)
inline

Member Function Documentation

const Index& col ( ) const
inline
Returns:
the column index of the element
const Index& row ( ) const
inline
Returns:
the row index of the element
const Scalar& value ( ) const
inline
Returns:
the value of the element

Member Data Documentation

Index m_col
protected
Index m_row
protected
Scalar m_value
protected

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