mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
in ScalarMultiple, make the factor type independent from the matrix scalar type.
This is an optimization for complex matrices, allowing to do only a real multiplication when a complex multiplication is not needed, e.g. in normalized().
This commit is contained in:
@@ -149,7 +149,7 @@ template<typename Scalar, typename Derived> class MatrixBase
|
||||
Scalar dot(const OtherDerived& other) const;
|
||||
RealScalar norm2() const;
|
||||
RealScalar norm() const;
|
||||
ScalarMultiple<Derived> normalized() const;
|
||||
const ScalarMultiple<RealScalar, Derived> normalized() const;
|
||||
|
||||
static Eval<Random<Derived> > random(int rows, int cols);
|
||||
static Eval<Random<Derived> > random(int size);
|
||||
|
||||
Reference in New Issue
Block a user