Spec-Zone.ru › Eigen3

Eigen::Map

шаблон<typename SparseMatrixType>
класс Eigen::Map< SparseMatrixType >

Специализация класса Map для хранения типа SparseMatrix.

Шаблонные параметры
SparseMatrixType эквивалентный тип разреженной матрицы для ссылочных данных, он должен быть экземпляром шаблона класса SparseMatrix.
См. также
класс Map, класс SparseMatrix, класс Ref<SparseMatrixType,Options>
Inheritance graph
Map (Index rows, Index cols, Index nnz, const StorageIndex *outerIndexPtr, const StorageIndex *innerIndexPtr, const Scalar *valuePtr, const StorageIndex *innerNonZerosPtr=0)
Map (Index rows, Index cols, Index nnz, StorageIndex *outerIndexPtr, StorageIndex *innerIndexPtr, Scalar *valuePtr, StorageIndex *innerNonZerosPtr=0)
~Map ()
- Общедоступные методы, унаследованные от Eigen::SparseMapBase< Derived, WriteAccessors >
Scalar & coeffRef (Index row, Index col)
StorageIndex * innerIndexPtr ()
StorageIndex * innerNonZeroPtr ()
StorageIndex * outerIndexPtr ()
Scalar * valuePtr ()
~SparseMapBase ()
- Общедоступные методы, унаследованные от Eigen::SparseMapBase< Derived, ReadOnlyAccessors >
Scalar coeff (Index row, Index col) const
Index cols () const
const StorageIndex * innerIndexPtr () const
const StorageIndex * innerNonZeroPtr () const
Index innerSize () const
bool isCompressed () const
Index nonZeros () const
const StorageIndex * outerIndexPtr () const
Index outerSize () const
Index rows () const
const Scalar * valuePtr () const
~SparseMapBase ()
- Общедоступные методы, унаследованные от Eigen::SparseCompressedBase< Derived >
Map< Array< Scalar, Dynamic, 1 > > coeffs ()
const Map< const Array< Scalar, Dynamic, 1 > > coeffs () const
StorageIndex * innerIndexPtr ()
const StorageIndex * innerIndexPtr () const
StorageIndex * innerNonZeroPtr ()
const StorageIndex * innerNonZeroPtr () const
bool isCompressed () const
Index nonZeros () const
StorageIndex * outerIndexPtr ()
const StorageIndex * outerIndexPtr () const
Скаляр * valuePtr ()
const Скаляр * valuePtr () const
- Общедоступные члены-функции, унаследованные от Eigen::SparseMatrixBase< Derived >
Индекс cols () const
const internal::eval< Derived >::type eval () const
Индекс innerSize () const
bool isVector () const
template<typename OtherDerived >
const Product< Derived, OtherDerived, AliasFreeProduct > operator* (const SparseMatrixBase< OtherDerived > &other) const
Индекс outerSize () const
const SparseView< Derived > pruned (const Scalar &reference=Scalar(0), const RealScalar &epsilon=NumTraits< Scalar >::dummy_precision()) const
Индекс rows () const
Индекс size () const
SparseSymmetricPermutationProduct< Derived, Верхняя|Нижняя > twistedBy (const PermutationMatrix< Dynamic, Dynamic, StorageIndex > &perm) const
- Общедоступные члены-функции, унаследованные от Eigen::EigenBase< Derived >
EIGEN_CONSTEXPR Индекс cols () const EIGEN_NOEXCEPT
Derived & derived ()
const Derived & derived () const
EIGEN_CONSTEXPR Индекс rows () const EIGEN_NOEXCEPT
EIGEN_CONSTEXPR Индекс size () const EIGEN_NOEXCEPT
- Общедоступные типы, унаследованные от Eigen::SparseMatrixBase< Derived >
Перечисление {
RowsAtCompileTime ,
ColsAtCompileTime ,
SizeAtCompileTime ,
MaxRowsAtCompileTime ,
MaxColsAtCompileTime ,
MaxSizeAtCompileTime ,
IsVectorAtCompileTime ,
NumDimensions ,
Flags ,
IsRowMajor ,
InnerSizeAtCompileTime
}
typedef internal::traits< Derived >::StorageIndex StorageIndex
typedef Скаляр value_type
- Общедоступные типы, унаследованные от Eigen::EigenBase< Derived >
typedef Eigen::Index Индекс
Тип интерфейса индексов. Подробнее...
- Защищенные члены-функции, унаследованные от Eigen::SparseCompressedBase< Derived >
SparseCompressedBase ()

Map() [1/2]

template<typename SparseMatrixType >
Eigen::Map< SparseMatrixType >::Map ( Индекс rows,
Индекс cols,
Индекс nnz,
StorageIndex * outerIndexPtr,
StorageIndex * innerIndexPtr,
Скаляр * valuePtr,
StorageIndex * innerNonZerosPtr = 0
)
inline

Создаёт изменяемую Map на разреженную матрицу размера rows x cols, содержащую nnz ненулевых коэффициентов, хранящихся в разрежённом формате, определённом указателями outerIndexPtr, innerIndexPtr и valuePtr. Если необязательный параметр innerNonZerosPtr равен нулевому указателю, то предполагается стандартный сжатый формат.

Этот конструктор доступен только если SparseMatrixType не является константным.

Дополнительные сведения о предполагаемых схемах хранения приведены в документации по руководству.

Map() [2/2]

template<typename SparseMatrixType >
Eigen::Map< SparseMatrixType >::Map ( Index rows,
Index cols,
Index nnz,
const StorageIndex * outerIndexPtr,
const StorageIndex * innerIndexPtr,
const Scalar * valuePtr,
const StorageIndex * innerNonZerosPtr = 0
)
inline

Это константная версия конструктора выше.

Этот конструктор доступен только если SparseMatrixType является константным, например:

Map<const SparseMatrix<double> >  

~Map()

template<typename SparseMatrixType >
Eigen::Map< SparseMatrixType >::~Map ( )
inline

Пустой деструктор


Документация для этого класса была сгенерирована из следующего файла:
  • SparseMap.h

© Eigen.
Licensed under the MPL2 License.
https://eigen.tuxfamily.org/dox/classEigen_1_1Map_3_01SparseMatrixType_01_4.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API