MOAB  4.9.3pre
Eigen::SparseMatrix< _Scalar, _Options, _Index >::SingletonVector Class Reference

#include <SparseMatrix.h>

List of all members.

Public Types

typedef StorageIndex value_type

Public Member Functions

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

Private Attributes

StorageIndex m_index
StorageIndex m_value

Detailed Description

template<typename _Scalar, int _Options, typename _Index>
class Eigen::SparseMatrix< _Scalar, _Options, _Index >::SingletonVector

A vector object that is equal to 0 everywhere but v at the position i

Definition at line 853 of file SparseMatrix.h.


Member Typedef Documentation

template<typename _Scalar, int _Options, typename _Index>
typedef StorageIndex Eigen::SparseMatrix< _Scalar, _Options, _Index >::SingletonVector::value_type

Definition at line 858 of file SparseMatrix.h.


Constructor & Destructor Documentation

template<typename _Scalar, int _Options, typename _Index>
Eigen::SparseMatrix< _Scalar, _Options, _Index >::SingletonVector::SingletonVector ( Index  i,
Index  v 
) [inline]

Definition at line 859 of file SparseMatrix.h.


Member Function Documentation

template<typename _Scalar, int _Options, typename _Index>
StorageIndex Eigen::SparseMatrix< _Scalar, _Options, _Index >::SingletonVector::operator[] ( Index  i) const [inline]

Definition at line 863 of file SparseMatrix.h.

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

Member Data Documentation

template<typename _Scalar, int _Options, typename _Index>
StorageIndex Eigen::SparseMatrix< _Scalar, _Options, _Index >::SingletonVector::m_index [private]

Definition at line 855 of file SparseMatrix.h.

template<typename _Scalar, int _Options, typename _Index>
StorageIndex Eigen::SparseMatrix< _Scalar, _Options, _Index >::SingletonVector::m_value [private]

Definition at line 856 of file SparseMatrix.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines