Eigen  3.4.90 (git rev 5a9f66fb35d03a4da9ef8976e67a61b30aa16dcf)
 
Loading...
Searching...
No Matches
Eigen::Triplet< Scalar, StorageIndex > Class Template Reference

Detailed Description

template<typename Scalar, typename StorageIndex = typename SparseMatrix<Scalar>::StorageIndex>
class Eigen::Triplet< Scalar, StorageIndex >

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

See also
SparseMatrix::setFromTriplets()

Public Member Functions

const StorageIndex & col () const
 
const StorageIndex & row () const
 
const Scalar & value () const
 

Member Function Documentation

◆ col()

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

◆ row()

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

◆ value()

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

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