mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
renaming: ei_matrix_storage -> DenseStorage
DenseStorageBase -> PlainObjectBase
This commit is contained in:
@@ -52,13 +52,13 @@ objects.
|
||||
These classes serve as base classes for the five core classes mentioned above. They are more internal and so
|
||||
less interesting for users of the Eigen library.
|
||||
|
||||
- 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 DenseStorageBase::resize() resize() \endlink
|
||||
methods go. \c %DenseStorageBase is inherited by \c %Matrix and by \c %Array. But above, we said that
|
||||
- PlainObjectBase 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 PlainObjectBase::resize() resize() \endlink
|
||||
methods go. \c %PlainObjectBase 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
|
||||
inheritance? No, because \c %DenseStorageBase \e itself inherits \c %MatrixBase or \c %ArrayBase depending
|
||||
inheritance? No, because \c %PlainObjectBase \e itself inherits \c %MatrixBase or \c %ArrayBase depending
|
||||
on whether we are in the matrix or array case. When we said above that \c %Matrix inherited
|
||||
\c %MatrixBase, we omitted to say it does so indirectly via \c %DenseStorageBase. Same for \c %Array.
|
||||
\c %MatrixBase, we omitted to say it does so indirectly via \c %PlainObjectBase. Same for \c %Array.
|
||||
- DenseCoeffsBase means something that has dense coefficient accessors. It is a base class for
|
||||
\c %DenseBase. The reason for \c %DenseCoeffsBase to exist is that the set of available coefficient
|
||||
accessors is very different depending on whether a dense expression has direct memory access or not (the
|
||||
@@ -82,7 +82,7 @@ EigenBase<%Matrix>
|
||||
<-- DenseCoeffsBase<%Matrix> (direct access case)
|
||||
<-- DenseBase<%Matrix>
|
||||
<-- MatrixBase<%Matrix>
|
||||
<-- DenseStorageBase<%Matrix> (matrix case)
|
||||
<-- PlainObjectBase<%Matrix> (matrix case)
|
||||
<-- Matrix
|
||||
</pre>
|
||||
|
||||
@@ -93,7 +93,7 @@ EigenBase<%Array>
|
||||
<-- DenseCoeffsBase<%Array> (direct access case)
|
||||
<-- DenseBase<%Array>
|
||||
<-- ArrayBase<%Array>
|
||||
<-- DenseStorageBase<%Array> (array case)
|
||||
<-- PlainObjectBase<%Array> (array case)
|
||||
<-- Array
|
||||
</pre>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user