Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::SingletonVector Class Reference

Public Types

typedef StorageIndex value_type
 

Public Member Functions

StorageIndex operator[] (Index i) const
 
 SingletonVector (Index i, Index v)
 

Private Attributes

StorageIndex m_index
 
StorageIndex m_value
 

Detailed Description

template<typename Scalar_, int Options_, typename StorageIndex_>
class Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::SingletonVector

Definition at line 987 of file SparseMatrix.h.

Member Typedef Documentation

◆ value_type

template<typename Scalar_ , int Options_, typename StorageIndex_ >
typedef StorageIndex Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::SingletonVector::value_type

Definition at line 992 of file SparseMatrix.h.

Constructor & Destructor Documentation

◆ SingletonVector()

template<typename Scalar_ , int Options_, typename StorageIndex_ >
Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::SingletonVector::SingletonVector ( Index  i,
Index  v 
)
inline

Definition at line 993 of file SparseMatrix.h.

Member Function Documentation

◆ operator[]()

template<typename Scalar_ , int Options_, typename StorageIndex_ >
StorageIndex Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::SingletonVector::operator[] ( Index  i) const
inline

Definition at line 997 of file SparseMatrix.h.

997 { return i==m_index ? m_value : 0; }

Member Data Documentation

◆ m_index

template<typename Scalar_ , int Options_, typename StorageIndex_ >
StorageIndex Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::SingletonVector::m_index
private

Definition at line 989 of file SparseMatrix.h.

◆ m_value

template<typename Scalar_ , int Options_, typename StorageIndex_ >
StorageIndex Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::SingletonVector::m_value
private

Definition at line 990 of file SparseMatrix.h.


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