mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Document DenseCoeffsBase
This commit is contained in:
parent
60aad09878
commit
a6da803873
@ -25,6 +25,16 @@
|
|||||||
#ifndef EIGEN_DENSECOEFFSBASE_H
|
#ifndef EIGEN_DENSECOEFFSBASE_H
|
||||||
#define EIGEN_DENSECOEFFSBASE_H
|
#define EIGEN_DENSECOEFFSBASE_H
|
||||||
|
|
||||||
|
/** \brief Base class providing read-only coefficient access to matrices and arrays.
|
||||||
|
* \ingroup Core_Module
|
||||||
|
* \tparam Derived Type of the derived class
|
||||||
|
* \tparam ReadOnlyAccessors Constant indicating read-only access
|
||||||
|
*
|
||||||
|
* This class defines the \c operator() \c const function and friends, which can be used to read specific
|
||||||
|
* entries of a matrix or array.
|
||||||
|
*
|
||||||
|
* \sa DenseCoeffsBase<Derived, WriteAccessors>, DenseCoeffsBase<Derived, DirectAccessors>
|
||||||
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
class DenseCoeffsBase<Derived,ReadOnlyAccessors> : public EigenBase<Derived>
|
class DenseCoeffsBase<Derived,ReadOnlyAccessors> : public EigenBase<Derived>
|
||||||
{
|
{
|
||||||
@ -238,6 +248,17 @@ class DenseCoeffsBase<Derived,ReadOnlyAccessors> : public EigenBase<Derived>
|
|||||||
void colStride();
|
void colStride();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** \brief Base class providing read/write coefficient access to matrices and arrays.
|
||||||
|
* \ingroup Core_Module
|
||||||
|
* \tparam Derived Type of the derived class
|
||||||
|
* \tparam WriteAccessors Constant indicating read/write access
|
||||||
|
*
|
||||||
|
* This class defines the non-const \c operator() function and friends, which can be used to write specific
|
||||||
|
* entries of a matrix or array. This class inherits DenseCoeffsBase<Derived, ReadOnlyAccessors> which
|
||||||
|
* defines the const variant for reading specific entries.
|
||||||
|
*
|
||||||
|
* \sa DenseCoeffsBase<Derived, DirectAccessors>
|
||||||
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
class DenseCoeffsBase<Derived, WriteAccessors> : public DenseCoeffsBase<Derived, ReadOnlyAccessors>
|
class DenseCoeffsBase<Derived, WriteAccessors> : public DenseCoeffsBase<Derived, ReadOnlyAccessors>
|
||||||
{
|
{
|
||||||
@ -514,6 +535,15 @@ class DenseCoeffsBase<Derived, WriteAccessors> : public DenseCoeffsBase<Derived,
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** \brief Base class providing direct coefficient access to matrices and arrays.
|
||||||
|
* \ingroup Core_Module
|
||||||
|
* \tparam Derived Type of the derived class
|
||||||
|
* \tparam DirectAccessors Constant indicating direct access
|
||||||
|
*
|
||||||
|
* This class defines functions to work with strides which can be used to access entries directly. This class
|
||||||
|
* inherits DenseCoeffsBase<Derived, WriteAccessors> which defines functions to access entries using
|
||||||
|
* \c operator() .
|
||||||
|
*/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
class DenseCoeffsBase<Derived, DirectAccessors> : public DenseCoeffsBase<Derived, WriteAccessors>
|
class DenseCoeffsBase<Derived, DirectAccessors> : public DenseCoeffsBase<Derived, WriteAccessors>
|
||||||
{
|
{
|
||||||
|
@ -36,7 +36,7 @@ template <typename Derived, typename OtherDerived = Derived, bool IsVector = sta
|
|||||||
template<typename MatrixTypeA, typename MatrixTypeB, bool SwapPointers> struct ei_matrix_swap_impl;
|
template<typename MatrixTypeA, typename MatrixTypeB, bool SwapPointers> struct ei_matrix_swap_impl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Dense storage base class for matrices and arrays.
|
* \brief %Dense storage base class for matrices and arrays.
|
||||||
**/
|
**/
|
||||||
template<typename Derived>
|
template<typename Derived>
|
||||||
class DenseStorageBase : public ei_dense_xpr_base<Derived>::type
|
class DenseStorageBase : public ei_dense_xpr_base<Derived>::type
|
||||||
|
@ -627,7 +627,10 @@ EXCLUDE_PATTERNS = CMake* \
|
|||||||
# wildcard * is used, a substring. Examples: ANamespace, AClass,
|
# wildcard * is used, a substring. Examples: ANamespace, AClass,
|
||||||
# AClass::ANamespace, ANamespace::*Test
|
# AClass::ANamespace, ANamespace::*Test
|
||||||
|
|
||||||
EXCLUDE_SYMBOLS = *Base<* Matrix<* ProductReturnType<* RotationBase<* Stride<* BandMatrix<* Block<*
|
# This is used to clean up the "class hierarchy" page
|
||||||
|
|
||||||
|
EXCLUDE_SYMBOLS = EigenBase<* SparseMatrixBase<* DenseBase<* MatrixBase<* Matrix<* \
|
||||||
|
ProductReturnType<* RotationBase<* Stride<* BandMatrix<* Block<*
|
||||||
|
|
||||||
# The EXAMPLE_PATH tag can be used to specify one or more files or
|
# The EXAMPLE_PATH tag can be used to specify one or more files or
|
||||||
# directories that contain example code fragments that are included (see
|
# directories that contain example code fragments that are included (see
|
||||||
|
@ -53,7 +53,7 @@ These classes serve as base classes for the five core classes mentioned above. T
|
|||||||
less interesting for users of the Eigen library.
|
less interesting for users of the Eigen library.
|
||||||
|
|
||||||
- DenseStorageBase means dense (matrix or array) plain object, i.e. something that stores its own dense
|
- DenseStorageBase means dense (matrix or array) plain object, i.e. something that stores its own dense
|
||||||
array of coefficients. This is where, for instance, the \link DenseStoreBase::resize() resize() \endlink
|
array of coefficients. This is where, for instance, the \link DenseStorageBase::resize() resize() \endlink
|
||||||
methods go. \c %DenseStorageBase is inherited by \c %Matrix and by \c %Array. But above, we said that
|
methods go. \c %DenseStorageBase is inherited by \c %Matrix and by \c %Array. But above, we said that
|
||||||
\c %Matrix inherits \c %MatrixBase and \c %Array inherits \c %ArrayBase. So does that mean multiple
|
\c %Matrix inherits \c %MatrixBase and \c %Array inherits \c %ArrayBase. So does that mean multiple
|
||||||
inheritance? No, because \c %DenseStorageBase \e itself inherits \c %MatrixBase or \c %ArrayBase depending
|
inheritance? No, because \c %DenseStorageBase \e itself inherits \c %MatrixBase or \c %ArrayBase depending
|
||||||
|
Loading…
x
Reference in New Issue
Block a user