Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
Eigen::MappedSparseMatrix< _Scalar, _Flags, _StorageIndex > Class Template Reference

Sparse matrix. More...

#include <src/eigen/Eigen/src/SparseCore/MappedSparseMatrix.h>

+ Inheritance diagram for Eigen::MappedSparseMatrix< _Scalar, _Flags, _StorageIndex >:
+ Collaboration diagram for Eigen::MappedSparseMatrix< _Scalar, _Flags, _StorageIndex >:

Public Types

typedef Base::StorageIndex StorageIndex
 
typedef Base::Scalar Scalar
 
typedef Base::PointerType PointerType
 
typedef PointerType PointerArgType
 

Public Member Functions

 MappedSparseMatrix (Index rows, Index cols, Index nnz, StorageIndex *outerIndexPtr, StorageIndex *innerIndexPtr, Scalar *valuePtr, StorageIndex *innerNonZeroPtr=0)
 
 ~MappedSparseMatrix ()
 
EIGEN_DEVICE_FUNC PointerType cast_to_pointer_type (PointerArgType ptr)
 
EIGEN_DEVICE_FUNC Index innerStride () const
 
EIGEN_DEVICE_FUNC Index outerStride () const
 

Protected Attributes

StrideType m_stride
 

Private Types

typedef Map< SparseMatrix< _Scalar, _Flags, _StorageIndex > > Base
 

Detailed Description

template<typename _Scalar, int _Flags, typename _StorageIndex>
class Eigen::MappedSparseMatrix< _Scalar, _Flags, _StorageIndex >

Sparse matrix.

Parameters
_Scalarthe scalar type, i.e. the type of the coefficients

See http://www.netlib.org/linalg/html_templates/node91.html for details on the storage scheme.

Member Typedef Documentation

◆ Base

template<typename _Scalar , int _Flags, typename _StorageIndex >
typedef Map<SparseMatrix<_Scalar, _Flags, _StorageIndex> > Eigen::MappedSparseMatrix< _Scalar, _Flags, _StorageIndex >::Base
private

◆ PointerArgType

typedef PointerType Eigen::Map< SparseMatrix< _Scalar, _Flags, _StorageIndex > , MapOptions, StrideType >::PointerArgType
inherited

◆ PointerType

typedef Base::PointerType Eigen::Map< SparseMatrix< _Scalar, _Flags, _StorageIndex > , MapOptions, StrideType >::PointerType
inherited

◆ Scalar

template<typename _Scalar , int _Flags, typename _StorageIndex >
typedef Base::Scalar Eigen::MappedSparseMatrix< _Scalar, _Flags, _StorageIndex >::Scalar

◆ StorageIndex

template<typename _Scalar , int _Flags, typename _StorageIndex >
typedef Base::StorageIndex Eigen::MappedSparseMatrix< _Scalar, _Flags, _StorageIndex >::StorageIndex

Constructor & Destructor Documentation

◆ MappedSparseMatrix()

template<typename _Scalar , int _Flags, typename _StorageIndex >
Eigen::MappedSparseMatrix< _Scalar, _Flags, _StorageIndex >::MappedSparseMatrix ( Index  rows,
Index  cols,
Index  nnz,
StorageIndex outerIndexPtr,
StorageIndex innerIndexPtr,
Scalar valuePtr,
StorageIndex innerNonZeroPtr = 0 
)
inline
43 : Base(rows, cols, nnz, outerIndexPtr, innerIndexPtr, valuePtr, innerNonZeroPtr)
44 {}
Map< SparseMatrix< _Scalar, _Flags, _StorageIndex > > Base
Definition MappedSparseMatrix.h:35

◆ ~MappedSparseMatrix()

template<typename _Scalar , int _Flags, typename _StorageIndex >
Eigen::MappedSparseMatrix< _Scalar, _Flags, _StorageIndex >::~MappedSparseMatrix ( )
inline

Empty destructor

47{}

Member Function Documentation

◆ cast_to_pointer_type()

EIGEN_DEVICE_FUNC PointerType Eigen::Map< SparseMatrix< _Scalar, _Flags, _StorageIndex > , MapOptions, StrideType >::cast_to_pointer_type ( PointerArgType  ptr)
inlineinherited
105{ return ptr; }

◆ innerStride()

EIGEN_DEVICE_FUNC Index Eigen::Map< SparseMatrix< _Scalar, _Flags, _StorageIndex > , MapOptions, StrideType >::innerStride ( ) const
inlineinherited
109 {
110 return StrideType::InnerStrideAtCompileTime != 0 ? m_stride.inner() : 1;
111 }

◆ outerStride()

EIGEN_DEVICE_FUNC Index Eigen::Map< SparseMatrix< _Scalar, _Flags, _StorageIndex > , MapOptions, StrideType >::outerStride ( ) const
inlineinherited
115 {
116 return int(StrideType::OuterStrideAtCompileTime) != 0 ? m_stride.outer()
117 : int(internal::traits<Map>::OuterStrideAtCompileTime) != Dynamic ? Index(internal::traits<Map>::OuterStrideAtCompileTime)
118 : IsVectorAtCompileTime ? (this->size() * innerStride())
119 : (int(Flags)&RowMajorBit) ? (this->cols() * innerStride())
120 : (this->rows() * innerStride());
121 }
EIGEN_DEVICE_FUNC Index innerStride() const
Definition Map.h:108
const unsigned int RowMajorBit
Definition Constants.h:61
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:33
const int Dynamic
Definition Constants.h:21
constexpr auto size(const C &c) -> decltype(c.size())
Definition span.hpp:183
size_t cols(const T &raster)
Definition MarchingSquares.hpp:60
size_t rows(const T &raster)
Definition MarchingSquares.hpp:55

Member Data Documentation

◆ m_stride

StrideType Eigen::Map< SparseMatrix< _Scalar, _Flags, _StorageIndex > , MapOptions, StrideType >::m_stride
protectedinherited

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