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

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

Contents

Public functions

auto col() const -> const StorageIndex&
auto row() const -> const StorageIndex&
auto value() const -> const Scalar&

Function documentation

template<typename Scalar, typename StorageIndex>
const StorageIndex& Eigen::Triplet<Scalar, StorageIndex>::col() const

Returns the column index of the element

template<typename Scalar, typename StorageIndex>
const StorageIndex& Eigen::Triplet<Scalar, StorageIndex>::row() const

Returns the row index of the element

template<typename Scalar, typename StorageIndex>
const Scalar& Eigen::Triplet<Scalar, StorageIndex>::value() const

Returns the value of the element