Spec-Zone.ru › Eigen3

Eigen::IndexedView

template<typename XprType, typename RowIndices, typename ColIndices>
class Eigen::IndexedView< XprType, RowIndices, ColIndices >

Выражение не-последовательной подматрицы, определённой произвольными последовательностями индексов строк и столбцов.

Параметры шаблона
XprType тип выражения, в котором мы берем пересечения подстрок и подстолбцов
RowIndices тип объекта, определяющего последовательность индексов строк
ColIndices тип объекта, определяющего последовательность индексов столбцов

Этот класс представляет собой выражение подматрицы (или подвектора), определённой как пересечение подмножеств строк и столбцов, которые сами определены с помощью общих последовательностей индексов строк \( \{r_0,r_1,..r_{m-1}\} \) и индексов столбцов \( \{c_0,c_1,..c_{n-1} \}\). Пусть \( A \) — вложенная матрица, тогда результирующая матрица \( B \) имеет m строки и n столбцы, и её элементы задаются следующим образом: \( B(i,j) = A(r_i,c_j) \).

Типы RowIndices и ColIndices должны быть совместимы со следующим API:

<integral type> operator[](Index) const;
Index size() const;

Типичные поддерживаемые типы включают:

  • std::vector<int>
  • std::valarray<int>
  • std::array<int>
  • Простые массивы C: int[N]
  • Eigen::ArrayXi
  • decltype(ArrayXi::LinSpaced(...))
  • Любые представления/выражения предыдущих типов
  • Eigen::ArithmeticSequence
  • Eigen::internal::AllRange (помощник для Eigen::all)
  • Eigen::internal::SingleRange (помощник для единственного индекса)
  • и т.д.

В типичных использованиях Eigen, этот класс никогда не должен использоваться напрямую. Это тип возвращаемого значения DenseBase::operator()(const RowIndices&, const ColIndices&).

См. также
класс Block

Наследует Eigen::IndexedViewImpl< XprType, RowIndices, ColIndices, internal::traits< XprType >::StorageKind >.

const ColIndices & colIndices () const
Index cols () const
internal::remove_reference< XprType >::type & nestedExpression ()
const internal::remove_all< XprType >::type & nestedExpression () const
const RowIndices & rowIndices () const
Index rows () const

colIndices()

template<typename XprType , typename RowIndices , typename ColIndices >
const ColIndices& Eigen::IndexedView< XprType, RowIndices, ColIndices >::colIndices ( ) const
inline
Возвращает
ссылку на объект, хранящий/генерирующий индексы столбцов

cols()

template<typename XprType , typename RowIndices , typename ColIndices >
Index Eigen::IndexedView< XprType, RowIndices, ColIndices >::cols ( void ) const
inline
Возвращает
количество столбцов

nestedExpression() [1/2]

template<typename XprType , typename RowIndices , typename ColIndices >
internal::remove_reference<XprType>::type& Eigen::IndexedView< XprType, RowIndices, ColIndices >::nestedExpression ( )
inline
Возвращает
вложенное выражение

nestedExpression() [2/2]

template<typename XprType , typename RowIndices , typename ColIndices >
const internal::remove_all<XprType>::type& Eigen::IndexedView< XprType, RowIndices, ColIndices >::nestedExpression ( ) const
inline
Возвращает
вложенное выражение

rowIndices()

template<typename XprType , typename RowIndices , typename ColIndices >
const RowIndices& Eigen::IndexedView< XprType, RowIndices, ColIndices >::rowIndices ( ) const
inline
Возвращает
ссылку на объект, хранящий/генерирующий индексы строк

rows()

template<typename XprType , typename RowIndices , typename ColIndices >
Index Eigen::IndexedView< XprType, RowIndices, ColIndices >::rows ( void ) const
inline
Возвращает
количество строк

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

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

Spec-Zone.ru

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