mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Added array() to ArrayBase and matrix() to MatrixBase().
This commit is contained in:
parent
dbf3af866e
commit
f1a025185a
@ -149,6 +149,9 @@ template<typename Derived> class ArrayBase
|
|||||||
Derived& operator/=(const ArrayBase<OtherDerived>& other);
|
Derived& operator/=(const ArrayBase<OtherDerived>& other);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
ArrayBase<Derived>& array() { return *this; }
|
||||||
|
const ArrayBase<Derived>& array() const { return *this; }
|
||||||
|
|
||||||
MatrixWrapper<Derived> matrix() { return derived(); }
|
MatrixWrapper<Derived> matrix() { return derived(); }
|
||||||
const MatrixWrapper<Derived> matrix() const { return derived(); }
|
const MatrixWrapper<Derived> matrix() const { return derived(); }
|
||||||
|
|
||||||
|
@ -291,6 +291,9 @@ template<typename Derived> class MatrixBase
|
|||||||
|
|
||||||
template<int p> RealScalar lpNorm() const;
|
template<int p> RealScalar lpNorm() const;
|
||||||
|
|
||||||
|
MatrixBase<Derived>& matrix() { return *this; }
|
||||||
|
const MatrixBase<Derived>& matrix() const { return *this; }
|
||||||
|
|
||||||
ArrayWrapper<Derived> array() { return derived(); }
|
ArrayWrapper<Derived> array() { return derived(); }
|
||||||
const ArrayWrapper<Derived> array() const { return derived(); }
|
const ArrayWrapper<Derived> array() const { return derived(); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user