mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
added optimized matrix times diagonal matrix product via Diagonal flag shortcut.
This commit is contained in:
@@ -66,6 +66,7 @@ const unsigned int SelfAdjoint = SelfAdjointBit;
|
||||
// additional possible values for the Mode parameter of extract()
|
||||
const unsigned int UnitUpper = UpperTriangularBit | UnitDiagBit;
|
||||
const unsigned int UnitLower = LowerTriangularBit | UnitDiagBit;
|
||||
const unsigned int Diagonal = Upper | Lower;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ template<typename Scalar> struct ei_scalar_log_op;
|
||||
template<typename Scalar> struct ei_scalar_cos_op;
|
||||
template<typename Scalar> struct ei_scalar_sin_op;
|
||||
template<typename Scalar> struct ei_scalar_pow_op;
|
||||
template<typename Scalar> struct ei_scalar_inverse_op;
|
||||
template<typename Scalar, typename NewType> struct ei_scalar_cast_op;
|
||||
template<typename Scalar, bool IsVectorizable> struct ei_scalar_multiple_op;
|
||||
template<typename Scalar> struct ei_scalar_quotient1_op;
|
||||
|
||||
@@ -212,8 +212,7 @@ template<typename T, int n=1> struct ei_nested
|
||||
|
||||
template<unsigned int Flags> struct ei_are_flags_consistent
|
||||
{
|
||||
enum { ret = !( (Flags&UnitDiagBit && Flags&ZeroDiagBit)
|
||||
|| (Flags&UpperTriangularBit && Flags&LowerTriangularBit) )
|
||||
enum { ret = !( (Flags&UnitDiagBit && Flags&ZeroDiagBit) )
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user