Lines 331-346
template<typename Derived> class DenseBa
Link Here
|
331 |
template<typename OtherDerived> |
331 |
template<typename OtherDerived> |
332 |
bool isMuchSmallerThan(const DenseBase<OtherDerived>& other, |
332 |
bool isMuchSmallerThan(const DenseBase<OtherDerived>& other, |
333 |
const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const; |
333 |
const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const; |
334 |
|
334 |
|
335 |
bool isApproxToConstant(const Scalar& value, const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const; |
335 |
bool isApproxToConstant(const Scalar& value, const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const; |
336 |
bool isConstant(const Scalar& value, const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const; |
336 |
bool isConstant(const Scalar& value, const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const; |
337 |
bool isZero(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const; |
337 |
bool isZero(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const; |
338 |
bool isOnes(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const; |
338 |
bool isOnes(const RealScalar& prec = NumTraits<Scalar>::dummy_precision()) const; |
|
|
339 |
|
340 |
inline bool hasNaN() const; |
341 |
inline bool isFinite() const; |
339 |
|
342 |
|
340 |
inline Derived& operator*=(const Scalar& other); |
343 |
inline Derived& operator*=(const Scalar& other); |
341 |
inline Derived& operator/=(const Scalar& other); |
344 |
inline Derived& operator/=(const Scalar& other); |
342 |
|
345 |
|
343 |
typedef typename internal::add_const_on_value_type<typename internal::eval<Derived>::type>::type EvalReturnType; |
346 |
typedef typename internal::add_const_on_value_type<typename internal::eval<Derived>::type>::type EvalReturnType; |
344 |
/** \returns the matrix or vector obtained by evaluating this expression. |
347 |
/** \returns the matrix or vector obtained by evaluating this expression. |
345 |
* |
348 |
* |
346 |
* Notice that in the case of a plain matrix or vector (not an expression) this function just returns |
349 |
* Notice that in the case of a plain matrix or vector (not an expression) this function just returns |
Lines 410-427
template<typename Derived> class DenseBa
Link Here
|
410 |
/** \returns the unique coefficient of a 1x1 expression */ |
413 |
/** \returns the unique coefficient of a 1x1 expression */ |
411 |
CoeffReturnType value() const |
414 |
CoeffReturnType value() const |
412 |
{ |
415 |
{ |
413 |
EIGEN_STATIC_ASSERT_SIZE_1x1(Derived) |
416 |
EIGEN_STATIC_ASSERT_SIZE_1x1(Derived) |
414 |
eigen_assert(this->rows() == 1 && this->cols() == 1); |
417 |
eigen_assert(this->rows() == 1 && this->cols() == 1); |
415 |
return derived().coeff(0,0); |
418 |
return derived().coeff(0,0); |
416 |
} |
419 |
} |
417 |
|
420 |
|
418 |
/////////// Array module /////////// |
|
|
419 |
|
420 |
bool all(void) const; |
421 |
bool all(void) const; |
421 |
bool any(void) const; |
422 |
bool any(void) const; |
422 |
Index count() const; |
423 |
Index count() const; |
423 |
|
424 |
|
424 |
typedef VectorwiseOp<Derived, Horizontal> RowwiseReturnType; |
425 |
typedef VectorwiseOp<Derived, Horizontal> RowwiseReturnType; |
425 |
typedef const VectorwiseOp<const Derived, Horizontal> ConstRowwiseReturnType; |
426 |
typedef const VectorwiseOp<const Derived, Horizontal> ConstRowwiseReturnType; |
426 |
typedef VectorwiseOp<Derived, Vertical> ColwiseReturnType; |
427 |
typedef VectorwiseOp<Derived, Vertical> ColwiseReturnType; |
427 |
typedef const VectorwiseOp<const Derived, Vertical> ConstColwiseReturnType; |
428 |
typedef const VectorwiseOp<const Derived, Vertical> ConstColwiseReturnType; |