Eigen::PermutationMatrix
template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex>
class Eigen::PermutationMatrix< SizeAtCompileTime, MaxSizeAtCompileTime, _StorageIndex >
Матрица перестановок.
- Параметры шаблона
-
SizeAtCompileTime количество строк/столбцов, или Dynamic MaxSizeAtCompileTime максимальное количество строк/столбцов, или Dynamic. Этот необязательный параметр по умолчанию равен SizeAtCompileTime. В большинстве случаев его указывать не нужно. _StorageIndex целый тип индексов
Этот класс представляет собой матрицу перестановок, внутренне хранящуюся как вектор целых чисел.
- См. также
- класс PermutationBase, класс PermutationWrapper, класс DiagonalMatrix
| 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) | |
|
| |
| 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_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 |
|
| |
| typedef Eigen::Index | Index |
| Тип интерфейса индексов. Подробнее... |
|
PermutationMatrix() [1/4]
template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
| inlineexplicit |
Создаёт неинициализированную матрицу перестановок заданного размера.
PermutationMatrix() [2/4]
template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
template<typename OtherDerived >
| inline |
Конструктор копирования.
PermutationMatrix() [3/4]
template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
template<typename Other >
| inlineexplicit |
Общий конструктор из выражения индексов. Массив индексов имеет значение, что перестановка отправляет каждое целое число i в indices[i].
- Предупреждение
- Вам необходимо убедиться, что переданный вами массив индексов фактически описывает перестановку, т.е. каждое значение от 0 до n-1 встречается ровно один раз, где n - размер массива.
PermutationMatrix() [4/4]
template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
template<typename Other >
| inlineexplicit |
Преобразует Transpositions tr в матрицу перестановок.
indices() [1/2]
template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
| inline |
- Возвращает
- ссылку на хранимый массив, представляющий перестановку.
indices() [2/2]
template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
| inline |
const версия indices().
operator=() [1/2]
template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
template<typename Other >
| inline |
Копирует перестановку other в *this
operator=() [2/2]
template<int SizeAtCompileTime, int MaxSizeAtCompileTime, typename _StorageIndex >
template<typename Other >
| inline |
Присваивание из Transpositions tr
The documentation for this class was generated from the following file:
© Eigen.
Licensed under the MPL2 License.
https://eigen.tuxfamily.org/dox/classEigen_1_1PermutationMatrix.html