Eigen::Transpose< MatrixType > Class Template Reference

Expression of the transpose of a matrix. More...

#include <Transpose.h>

+ Inheritance diagram for Eigen::Transpose< MatrixType >:

Public Types

typedef internal::ref_selector< MatrixType >::non_const_type MatrixTypeNested
 
typedef TransposeImpl< MatrixType, typename internal::traits< MatrixType >::StorageKind >::Base Base
 
typedef internal::remove_all_t< MatrixTypeNestedExpression
 
- Public Types inherited from Eigen::TransposeImpl< MatrixType, internal::traits< MatrixType >::StorageKind >
typedef internal::generic_xpr_base< Transpose< MatrixType > >::type Base
 

Public Member Functions

EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Transpose (MatrixType &matrix)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index rows () const EIGEN_NOEXCEPT
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE EIGEN_CONSTEXPR Index cols () const EIGEN_NOEXCEPT
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const internal::remove_all_t< MatrixTypeNested > & nestedExpression () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::remove_reference_t< MatrixTypeNested > & nestedExpression ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void resize (Index nrows, Index ncols)
 

Protected Attributes

internal::ref_selector< MatrixType >::non_const_type m_matrix
 

Detailed Description

template<typename MatrixType>
class Eigen::Transpose< MatrixType >

Expression of the transpose of a matrix.

Template Parameters
MatrixTypethe type of the object of which we are taking the transpose

This class represents an expression of the transpose of a matrix. It is the return type of MatrixBase::transpose() and MatrixBase::adjoint() and most of the time this is the only way it is used.

See also
MatrixBase::transpose(), MatrixBase::adjoint()

Member Typedef Documentation

◆ Base

template<typename MatrixType >
typedef TransposeImpl<MatrixType, typename internal::traits<MatrixType>::StorageKind>::Base Eigen::Transpose< MatrixType >::Base

◆ MatrixTypeNested

template<typename MatrixType >
typedef internal::ref_selector<MatrixType>::non_const_type Eigen::Transpose< MatrixType >::MatrixTypeNested

◆ NestedExpression

template<typename MatrixType >
typedef internal::remove_all_t<MatrixType> Eigen::Transpose< MatrixType >::NestedExpression

Constructor & Destructor Documentation

◆ Transpose()

template<typename MatrixType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::Transpose< MatrixType >::Transpose ( MatrixType matrix)
inlineexplicit
64 : m_matrix(matrix) {}
internal::ref_selector< MatrixType >::non_const_type m_matrix
Definition: Transpose.h:85
Eigen::Map< Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor >, 0, Eigen::OuterStride<> > matrix(T *data, int rows, int cols, int stride)
Definition: common.h:85

Member Function Documentation

◆ cols()

◆ nestedExpression() [1/2]

template<typename MatrixType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::remove_reference_t<MatrixTypeNested>& Eigen::Transpose< MatrixType >::nestedExpression ( )
inline
Returns
the nested expression
77  {
78  return m_matrix;
79  }

References Eigen::Transpose< MatrixType >::m_matrix.

◆ nestedExpression() [2/2]

◆ resize()

template<typename MatrixType >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::Transpose< MatrixType >::resize ( Index  nrows,
Index  ncols 
)
inline
82 { m_matrix.resize(ncols, nrows); }

References Eigen::Transpose< MatrixType >::m_matrix.

◆ rows()

Member Data Documentation

◆ m_matrix


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