mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
add cast<newtype>() function to casts the scalars to another type.
This commit is contained in:
@@ -91,6 +91,8 @@ template<typename Scalar, typename Derived> class Object
|
||||
return *static_cast<Derived*>(this);
|
||||
}
|
||||
|
||||
template<typename NewScalar> Cast<NewScalar, Derived> cast() const;
|
||||
|
||||
Row<Derived> row(int i) const;
|
||||
Column<Derived> col(int i) const;
|
||||
Minor<Derived> minor(int row, int col) const;
|
||||
@@ -102,7 +104,6 @@ template<typename Scalar, typename Derived> class Object
|
||||
|
||||
template<typename OtherDerived>
|
||||
Scalar dot(const OtherDerived& other) const;
|
||||
|
||||
RealScalar norm2() const;
|
||||
RealScalar norm() const;
|
||||
ScalarMultiple<Derived> normalized() const;
|
||||
|
||||
Reference in New Issue
Block a user