Eigen  5.0.1-dev+7c7d8473
 
Loading...
Searching...
No Matches
Eigen::EigenBase< Derived > Class Template Reference

#include <Eigen/src/Core/EigenBase.h>

Detailed Description

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

Common base class for all classes T such that MatrixBase has an operator=(T) and a constructor MatrixBase(T).

In other words, an EigenBase object is an object that can be copied into a MatrixBase.

Besides MatrixBase-derived classes, this also includes special matrix classes such as diagonal matrices, etc.

Notice that this class is trivial, it is only used to disambiguate overloaded functions.

See also
The class hierarchy
+ Inheritance diagram for Eigen::EigenBase< Derived >:

Public Types

typedef Eigen::Index Index
 The interface type of indices.
 

Public Member Functions

constexpr Index cols () const noexcept
 
constexpr Derived & derived ()
 
constexpr const Derived & derived () const
 
constexpr Index rows () const noexcept
 
constexpr Index size () const noexcept
 

Member Typedef Documentation

◆ Index

template<typename Derived>
typedef Eigen::Index Eigen::EigenBase< Derived >::Index

The interface type of indices.

To change this, #define the preprocessor symbol EIGEN_DEFAULT_DENSE_INDEX_TYPE.

See also
StorageIndex, Preprocessor directives. DEPRECATED: Since Eigen 3.3, its usage is deprecated. Use Eigen::Index instead. Deprecation is not marked with a doxygen comment because there are too many existing usages to add the deprecation attribute.

Member Function Documentation

◆ cols()

template<typename Derived>
Index Eigen::EigenBase< Derived >::cols ( ) const
inlineconstexprnoexcept
Returns
the number of columns.
See also
rows(), ColsAtCompileTime

◆ derived() [1/2]

template<typename Derived>
Derived & Eigen::EigenBase< Derived >::derived ( )
inlineconstexpr
Returns
a reference to the derived object

◆ derived() [2/2]

template<typename Derived>
const Derived & Eigen::EigenBase< Derived >::derived ( ) const
inlineconstexpr
Returns
a const reference to the derived object

◆ rows()

template<typename Derived>
Index Eigen::EigenBase< Derived >::rows ( ) const
inlineconstexprnoexcept
Returns
the number of rows.
See also
cols(), RowsAtCompileTime

◆ size()

template<typename Derived>
Index Eigen::EigenBase< Derived >::size ( ) const
inlineconstexprnoexcept
Returns
the number of coefficients, which is rows()*cols().
See also
rows(), cols(), SizeAtCompileTime.

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