Eigne Matrix Class Library
Dependents: Eigen_test Odometry_test AttitudeEstimation_usingTicker MPU9250_Quaternion_Binary_Serial ... more
MatrixWrapper< ExpressionType > Class Template Reference
[Core module]
Expression of an array as a mathematical vector or matrix. More...
#include <ArrayWrapper.h>
Inherits MatrixBase< MatrixWrapper< ExpressionType > >.
Public Types | |
typedef Matrix< Scalar, EIGEN_SIZE_MAX(RowsAtCompileTime, ColsAtCompileTime), EIGEN_SIZE_MAX(RowsAtCompileTime, ColsAtCompileTime)> | SquareMatrixType |
type of the equivalent square matrix | |
typedef Matrix< typename internal::traits < MatrixWrapper < ExpressionType > >::Scalar, internal::traits < MatrixWrapper < ExpressionType > >::RowsAtCompileTime, internal::traits < MatrixWrapper < ExpressionType > >::ColsAtCompileTime, AutoAlign|(internal::traits < MatrixWrapper < ExpressionType > >::Flags &RowMajorBit?RowMajor:ColMajor), internal::traits < MatrixWrapper < ExpressionType > >::MaxRowsAtCompileTime, internal::traits < MatrixWrapper < ExpressionType > >::MaxColsAtCompileTime > | PlainObject |
The plain matrix type corresponding to this expression. | |
Public Member Functions | |
void | resize (Index newSize) |
Forwards the resizing request to the nested expression. | |
void | resize (Index nbRows, Index nbCols) |
Forwards the resizing request to the nested expression. | |
Index | diagonalSize () const |
MatrixWrapper< ExpressionType > & | lazyAssign (const Flagged< OtherDerived, 0, EvalBeforeAssigningBit > &other) |
bool | operator== (const MatrixBase< OtherDerived > &other) const |
bool | operator!= (const MatrixBase< OtherDerived > &other) const |
ArrayWrapper< MatrixWrapper < ExpressionType > > | array () |
Detailed Description
template<typename ExpressionType>
class Eigen::MatrixWrapper< ExpressionType >
Expression of an array as a mathematical vector or matrix.
This class is the return type of ArrayBase::matrix(), and most of the time this is the only way it is use.
- See also:
- MatrixBase::matrix(), class ArrayWrapper
Definition at line 166 of file ArrayWrapper.h.
Member Typedef Documentation
typedef Matrix<typename internal::traits<MatrixWrapper< ExpressionType > >::Scalar, internal::traits<MatrixWrapper< ExpressionType > >::RowsAtCompileTime, internal::traits<MatrixWrapper< ExpressionType > >::ColsAtCompileTime, AutoAlign | (internal::traits<MatrixWrapper< ExpressionType > >::Flags&RowMajorBit ? RowMajor : ColMajor), internal::traits<MatrixWrapper< ExpressionType > >::MaxRowsAtCompileTime, internal::traits<MatrixWrapper< ExpressionType > >::MaxColsAtCompileTime > PlainObject [inherited] |
The plain matrix type corresponding to this expression.
This is not necessarily exactly the return type of eval(). In the case of plain matrices, the return type of eval() is a const reference to a matrix, not a matrix! It is however guaranteed that the return type of eval() is either PlainObject or const PlainObject&.
Definition at line 115 of file MatrixBase.h.
typedef Matrix<Scalar,EIGEN_SIZE_MAX(RowsAtCompileTime,ColsAtCompileTime), EIGEN_SIZE_MAX(RowsAtCompileTime,ColsAtCompileTime)> SquareMatrixType [inherited] |
type of the equivalent square matrix
Definition at line 96 of file MatrixBase.h.
Member Function Documentation
ArrayWrapper<MatrixWrapper< ExpressionType > > array | ( | ) | [inherited] |
- Returns:
- an Array expression of this matrix
- See also:
- ArrayBase::matrix()
Definition at line 316 of file MatrixBase.h.
Index diagonalSize | ( | ) | const [inherited] |
- Returns:
- the size of the main diagonal, which is min(rows(),cols()).
- See also:
- rows(), cols(), SizeAtCompileTime.
Definition at line 101 of file MatrixBase.h.
MatrixWrapper< ExpressionType > & lazyAssign | ( | const Flagged< OtherDerived, 0, EvalBeforeAssigningBit > & | other ) | [inherited] |
Definition at line 477 of file MatrixBase.h.
bool operator!= | ( | const MatrixBase< OtherDerived > & | other ) | const [inherited] |
- Returns:
- true if at least one pair of coefficients of
*this
and other are not exactly equal to each other.
- Warning:
- When using floating point scalar values you probably should rather use a fuzzy comparison such as isApprox()
- See also:
- isApprox(), operator==
Definition at line 295 of file MatrixBase.h.
bool operator== | ( | const MatrixBase< OtherDerived > & | other ) | const [inherited] |
- Returns:
- true if each coefficients of
*this
and other are all exactly equal.
- Warning:
- When using floating point scalar values you probably should rather use a fuzzy comparison such as isApprox()
- See also:
- isApprox(), operator!=
Definition at line 287 of file MatrixBase.h.
void resize | ( | Index | newSize ) |
Forwards the resizing request to the nested expression.
- See also:
- DenseBase::resize(Index)
Definition at line 253 of file ArrayWrapper.h.
void resize | ( | Index | nbRows, |
Index | nbCols | ||
) |
Forwards the resizing request to the nested expression.
- See also:
- DenseBase::resize(Index,Index)
Definition at line 256 of file ArrayWrapper.h.
Generated on Tue Jul 12 2022 17:47:03 by 1.7.2