Spec-Zone.ru › Eigen3

Eigen::PermutationMatrix

template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex>
class Eigen::PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >

Матрица перестановок.

Параметры шаблона
SizeAtCompileTime количество строк/столбцов, или Dynamic
MaxSizeAtCompileTime максимальное количество строк/столбцов, или Dynamic. Этот необязательный параметр по умолчанию равен SizeAtCompileTime. В большинстве случаев его указывать не нужно.
_StorageIndex целый тип индексов

Этот класс представляет собой матрицу перестановок, внутренне хранящуюся как вектор целых чисел.

См. также
класс PermutationBase, класс PermutationWrapper, класс DiagonalMatrix
Inheritance graph
IndicesType & indices ()
const IndicesType & indices () const
template<typename Other >
PermutationMatrix & operator= (const PermutationBase< Other > &other)
template<typename Other >
PermutationMatrix & operator= (const TranspositionsBase< Other > &tr)
template<typename Other >
PermutationMatrix (const MatrixBase< Other > &indices)
template<typename OtherDerived >
PermutationMatrix (const PermutationBase< OtherDerived > &other)
template<typename Other >
PermutationMatrix (const TranspositionsBase< Other > &tr)
PermutationMatrix (Index size)
- Публичные члены-функции унаследованные от Eigen::PermutationBase< PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > >
PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & applyTranspositionOnTheLeft (Index i, Index j)
PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & applyTranspositionOnTheRight (Index i, Index j)
Index cols () const
Index determinant () const
IndicesType & indices ()
const IndicesType & indices () const
InverseReturnType inverse () const
PlainPermutationType operator* (const InverseImpl< Other, PermutationStorage > &other) const
PlainPermutationType operator* (const PermutationBase< Other > &other) const
PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & operator= (const PermutationBase< OtherDerived > &other)
PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex > & operator= (const TranspositionsBase< OtherDerived > &tr)
void resize (Index newSize)
Index rows () const
void setIdentity ()
void setIdentity (Index newSize)
Index size () const
DenseMatrixType toDenseMatrix () const
InverseReturnType transpose () const
- Публичные члены-функции унаследованные от Eigen::EigenBase< Derived >
EIGEN_CONSTEXPR Index cols () const EIGEN_NOEXCEPT
Derived & derived ()
const Derived & derived () const
EIGEN_CONSTEXPR Index rows () const EIGEN_NOEXCEPT
EIGEN_CONSTEXPR Index size () const EIGEN_NOEXCEPT
- Публичные типы, унаследованные от Eigen::EigenBase< Derived >
typedef Eigen::Index Index
Тип интерфейса индексов. Подробнее...

PermutationMatrix() [1/4]

template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
Eigen::PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >::PermutationMatrix ( Index size )
inlineexplicit

Создаёт неинициализированную матрицу перестановок заданного размера.

PermutationMatrix() [2/4]

template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
template<typename OtherDerived >
Eigen::PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >::PermutationMatrix ( const PermutationBase< OtherDerived > & other )
inline

Конструктор копирования.

PermutationMatrix() [3/4]

template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
template<typename Other >
Eigen::PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >::PermutationMatrix ( const MatrixBase< Other > & indices )
inlineexplicit

Общий конструктор из выражения индексов. Массив индексов имеет значение, что перестановка отправляет каждое целое число i в indices[i].

Предупреждение
Вам необходимо убедиться, что переданный вами массив индексов фактически описывает перестановку, т.е. каждое значение от 0 до n-1 встречается ровно один раз, где n - размер массива.

PermutationMatrix() [4/4]

template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
template<typename Other >
Eigen::PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >::PermutationMatrix ( const TranspositionsBase< Other > & tr )
inlineexplicit

Преобразует Transpositions tr в матрицу перестановок.

indices() [1/2]

template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
IndicesType& Eigen::PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >::indices ( )
inline
Возвращает
ссылку на хранимый массив, представляющий перестановку.

indices() [2/2]

template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
const IndicesType& Eigen::PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >::indices ( ) const
inline

const версия indices().

operator=() [1/2]

template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
template<typename Other >
PermutationMatrix& Eigen::PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >::operator= ( const PermutationBase< Other > & other )
inline

Копирует перестановку other в *this

operator=() [2/2]

template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
template<typename Other >
PermutationMatrix& Eigen::PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >::operator= ( const TranspositionsBase< Other > & tr )
inline

Присваивание из Transpositions tr


The documentation for this class was generated from the following file:
  • PermutationMatrix.h

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

Spec-Zone.ru

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