mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-01 16:24:28 +08:00
Fix some max size expressions.
This commit is contained in:
parent
edc822666d
commit
2c45a3846e
@ -132,7 +132,8 @@ template<typename Derived> class DenseBase
|
|||||||
* \sa ColsAtCompileTime, MaxRowsAtCompileTime, MaxSizeAtCompileTime
|
* \sa ColsAtCompileTime, MaxRowsAtCompileTime, MaxSizeAtCompileTime
|
||||||
*/
|
*/
|
||||||
|
|
||||||
MaxSizeAtCompileTime = (internal::size_of_xpr_at_compile_time<Derived>::ret),
|
MaxSizeAtCompileTime = internal::size_at_compile_time(internal::traits<Derived>::MaxRowsAtCompileTime,
|
||||||
|
internal::traits<Derived>::MaxColsAtCompileTime),
|
||||||
/**< This value is equal to the maximum possible number of coefficients that this expression
|
/**< This value is equal to the maximum possible number of coefficients that this expression
|
||||||
* might have. If this expression might have an arbitrarily high number of coefficients,
|
* might have. If this expression might have an arbitrarily high number of coefficients,
|
||||||
* this value is set to \a Dynamic.
|
* this value is set to \a Dynamic.
|
||||||
|
@ -84,7 +84,8 @@ class SolverBase : public EigenBase<Derived>
|
|||||||
SizeAtCompileTime = (internal::size_of_xpr_at_compile_time<Derived>::ret),
|
SizeAtCompileTime = (internal::size_of_xpr_at_compile_time<Derived>::ret),
|
||||||
MaxRowsAtCompileTime = internal::traits<Derived>::MaxRowsAtCompileTime,
|
MaxRowsAtCompileTime = internal::traits<Derived>::MaxRowsAtCompileTime,
|
||||||
MaxColsAtCompileTime = internal::traits<Derived>::MaxColsAtCompileTime,
|
MaxColsAtCompileTime = internal::traits<Derived>::MaxColsAtCompileTime,
|
||||||
MaxSizeAtCompileTime = (internal::size_of_xpr_at_compile_time<Derived>::ret),
|
MaxSizeAtCompileTime = internal::size_at_compile_time(internal::traits<Derived>::MaxRowsAtCompileTime,
|
||||||
|
internal::traits<Derived>::MaxColsAtCompileTime),
|
||||||
IsVectorAtCompileTime = internal::traits<Derived>::MaxRowsAtCompileTime == 1
|
IsVectorAtCompileTime = internal::traits<Derived>::MaxRowsAtCompileTime == 1
|
||||||
|| internal::traits<Derived>::MaxColsAtCompileTime == 1,
|
|| internal::traits<Derived>::MaxColsAtCompileTime == 1,
|
||||||
NumDimensions = int(MaxSizeAtCompileTime) == 1 ? 0 : bool(IsVectorAtCompileTime) ? 1 : 2
|
NumDimensions = int(MaxSizeAtCompileTime) == 1 ? 0 : bool(IsVectorAtCompileTime) ? 1 : 2
|
||||||
|
@ -42,7 +42,8 @@ template<typename Derived> class TriangularBase : public EigenBase<Derived>
|
|||||||
* rows times the number of columns, or to \a Dynamic if this is not
|
* rows times the number of columns, or to \a Dynamic if this is not
|
||||||
* known at compile-time. \sa RowsAtCompileTime, ColsAtCompileTime */
|
* known at compile-time. \sa RowsAtCompileTime, ColsAtCompileTime */
|
||||||
|
|
||||||
MaxSizeAtCompileTime = (internal::size_of_xpr_at_compile_time<Derived>::ret)
|
MaxSizeAtCompileTime = internal::size_at_compile_time(internal::traits<Derived>::MaxRowsAtCompileTime,
|
||||||
|
internal::traits<Derived>::MaxColsAtCompileTime)
|
||||||
|
|
||||||
};
|
};
|
||||||
typedef typename internal::traits<Derived>::Scalar Scalar;
|
typedef typename internal::traits<Derived>::Scalar Scalar;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user