Eigen::MatrixSquareRootReturnValue< Derived > Class Template Reference

Proxy for the matrix square root of some matrix (expression). More...

#include <MatrixSquareRoot.h>

+ Inheritance diagram for Eigen::MatrixSquareRootReturnValue< Derived >:

Public Member Functions

 MatrixSquareRootReturnValue (const Derived &src)
 Constructor. More...
 
template<typename ResultType >
void evalTo (ResultType &result) const
 Compute the matrix square root. More...
 
Index rows () const
 
Index cols () const
 
- Public Member Functions inherited from Eigen::ReturnByValue< MatrixSquareRootReturnValue< Derived > >
EIGEN_DEVICE_FUNC void evalTo (Dest &dst) const
 
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows () const EIGEN_NOEXCEPT
 
EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols () const EIGEN_NOEXCEPT
 
const Unusablecoeff (Index) const
 
const Unusablecoeff (Index, Index) const
 
UnusablecoeffRef (Index)
 
UnusablecoeffRef (Index, Index)
 

Protected Types

typedef internal::ref_selector< Derived >::type DerivedNested
 

Protected Attributes

const DerivedNested m_src
 

Additional Inherited Members

- Public Types inherited from Eigen::ReturnByValue< MatrixSquareRootReturnValue< Derived > >
typedef internal::traits< MatrixSquareRootReturnValue< Derived > >::ReturnType ReturnType
 
typedef internal::dense_xpr_base< ReturnByValue >::type Base
 

Detailed Description

template<typename Derived>
class Eigen::MatrixSquareRootReturnValue< Derived >

Proxy for the matrix square root of some matrix (expression).

Template Parameters
DerivedType of the argument to the matrix square root.

This class holds the argument to the matrix square root until it is assigned or evaluated for some other reason (so the argument should not be changed in the meantime). It is the return type of MatrixBase::sqrt() and most of the time this is the only way it is used.

Member Typedef Documentation

◆ DerivedNested

template<typename Derived >
typedef internal::ref_selector<Derived>::type Eigen::MatrixSquareRootReturnValue< Derived >::DerivedNested
protected

Constructor & Destructor Documentation

◆ MatrixSquareRootReturnValue()

template<typename Derived >
Eigen::MatrixSquareRootReturnValue< Derived >::MatrixSquareRootReturnValue ( const Derived &  src)
inlineexplicit

Constructor.

Parameters
[in]srcMatrix (expression) forming the argument of the matrix square root.
309 : m_src(src) {}
const DerivedNested m_src
Definition: MatrixSquareRoot.h:328

Member Function Documentation

◆ cols()

◆ evalTo()

template<typename Derived >
template<typename ResultType >
void Eigen::MatrixSquareRootReturnValue< Derived >::evalTo ( ResultType &  result) const
inline

Compute the matrix square root.

Parameters
[out]resultthe matrix square root of src in the constructor.
317  {
318  typedef typename internal::nested_eval<Derived, 10>::type DerivedEvalType;
319  typedef internal::remove_all_t<DerivedEvalType> DerivedEvalTypeClean;
320  DerivedEvalType tmp(m_src);
322  }
Eigen::Matrix< Scalar, Dynamic, Dynamic, ColMajor > tmp
Definition: level3_impl.h:365
static void run(const MatrixType &arg, ResultType &result)
Compute the matrix square root.
std::conditional_t< Evaluate, PlainObject, typename ref_selector< T >::type > type
Definition: XprHelper.h:549

References Eigen::MatrixSquareRootReturnValue< Derived >::m_src, Eigen::internal::matrix_sqrt_compute< MatrixType, IsComplex >::run(), and tmp.

◆ rows()

Member Data Documentation

◆ m_src


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