codac 2.0.0
Loading...
Searching...
No Matches
codac2_MatrixBase_addons_Vector.h
Go to the documentation of this file.
1
15
24template<typename U=Scalar,int R=RowsAtCompileTime,int C=ColsAtCompileTime>
25 requires (!IsIntervalDomain<U>) && (IsVectorOrRow<R,C>)
26inline Index min_coeff_index() const
27{
28 Index r,c;
29 this->minCoeff(&r,&c);
30 assert((C == 1 && c == 0) || (R == 1 && r == 0));
31 return r;
32}
33
42template<typename U=Scalar,int R=RowsAtCompileTime,int C=ColsAtCompileTime>
43 requires (!IsIntervalDomain<U>) && (IsVectorOrRow<R,C>)
44inline Index max_coeff_index() const
45{
46 Index r,c;
47 this->maxCoeff(&r,&c);
48 assert((C == 1 && c == 0) || (R == 1 && r == 0));
49 return r;
50}
Index max_coeff_index() const
Returns the index of the maximum coefficient in the vector.
Definition codac2_MatrixBase_addons_Vector.h:44
Index min_coeff_index() const
Returns the index of the minimum coefficient in the vector.
Definition codac2_MatrixBase_addons_Vector.h:26