26 #ifndef EIGEN_DENSEBASE_H
27 #define EIGEN_DENSEBASE_H
47 #ifndef EIGEN_PARSED_BY_DOXYGEN
48 :
public internal::special_scalar_op_base<Derived,typename internal::traits<Derived>::Scalar,
49 typename NumTraits<typename internal::traits<Derived>::Scalar>::Real>
52 #endif // not EIGEN_PARSED_BY_DOXYGEN
55 using internal::special_scalar_op_base<Derived,typename internal::traits<Derived>::Scalar,
60 typedef typename internal::traits<Derived>::StorageKind
StorageKind;
66 typedef typename internal::traits<Derived>::Index
Index;
68 typedef typename internal::traits<Derived>::Scalar
Scalar;
69 typedef typename internal::packet_traits<Scalar>::type
PacketScalar;
74 using Base::const_cast_derived;
78 using Base::rowIndexByOuterInner;
79 using Base::colIndexByOuterInner;
81 using Base::coeffByOuterInner;
83 using Base::packetByOuterInner;
84 using Base::writePacket;
85 using Base::writePacketByOuterInner;
87 using Base::coeffRefByOuterInner;
88 using Base::copyCoeff;
89 using Base::copyCoeffByOuterInner;
90 using Base::copyPacket;
91 using Base::copyPacketByOuterInner;
92 using Base::operator();
93 using Base::operator[];
99 using Base::innerStride;
100 using Base::outerStride;
101 using Base::rowStride;
102 using Base::colStride;
120 SizeAtCompileTime = (internal::size_at_compile_time<internal::traits<Derived>::RowsAtCompileTime,
121 internal::traits<Derived>::ColsAtCompileTime>::ret),
149 internal::traits<Derived>::MaxColsAtCompileTime>::ret),
161 || internal::traits<Derived>::MaxColsAtCompileTime == 1,
167 Flags = internal::traits<Derived>::Flags,
226 &&
"DenseBase::resize() does not actually allow to resize.");
237 &&
"DenseBase::resize() does not actually allow to resize.");
240 #ifndef EIGEN_PARSED_BY_DOXYGEN
251 #endif // not EIGEN_PARSED_BY_DOXYGEN
254 template<
typename OtherDerived>
262 template<
typename OtherDerived>
265 template<
typename OtherDerived>
268 template<
typename OtherDerived>
271 template<
typename OtherDerived>
274 #ifndef EIGEN_PARSED_BY_DOXYGEN
276 template<
typename OtherDerived>
278 #endif // not EIGEN_PARSED_BY_DOXYGEN
282 template<
unsigned int Added,
unsigned int Removed>
283 const Flagged<Derived, Added, Removed>
flagged()
const;
285 template<
typename OtherDerived>
290 ConstTransposeReturnType
transpose()
const;
292 #ifndef EIGEN_NO_DEBUG
294 template<
typename OtherDerived>
323 static const ConstantReturnType
325 static const ConstantReturnType
327 static const ConstantReturnType
330 static const SequentialLinSpacedReturnType
332 static const RandomAccessLinSpacedReturnType
334 static const SequentialLinSpacedReturnType
336 static const RandomAccessLinSpacedReturnType
339 template<
typename CustomNullaryOp>
342 template<
typename CustomNullaryOp>
345 template<
typename CustomNullaryOp>
350 static const ConstantReturnType
Zero(
Index size);
351 static const ConstantReturnType
Zero();
353 static const ConstantReturnType
Ones(
Index size);
354 static const ConstantReturnType
Ones();
364 template<
typename OtherDerived>
369 template<
typename OtherDerived>
381 typedef typename internal::add_const_on_value_type<typename internal::eval<Derived>::type>::type
EvalReturnType;
392 return typename internal::eval<Derived>::type(derived());
398 template<
typename OtherDerived>
400 int = OtherDerived::ThisConstantIsPrivateInPlainObjectBase)
408 template<
typename OtherDerived>
418 template<
bool Enable>
inline const typename internal::conditional<Enable,ForceAlignedAccess<Derived>,Derived&>::type
forceAlignedAccessIf()
const;
419 template<
bool Enable>
inline typename internal::conditional<Enable,ForceAlignedAccess<Derived>,Derived&>::type
forceAlignedAccessIf();
427 typename internal::traits<Derived>::Scalar
minCoeff()
const;
428 typename internal::traits<Derived>::Scalar
maxCoeff()
const;
430 template<
typename IndexType>
431 typename internal::traits<Derived>::Scalar
minCoeff(IndexType*
row, IndexType*
col)
const;
432 template<
typename IndexType>
433 typename internal::traits<Derived>::Scalar
maxCoeff(IndexType*
row, IndexType*
col)
const;
434 template<
typename IndexType>
435 typename internal::traits<Derived>::Scalar
minCoeff(IndexType* index)
const;
436 template<
typename IndexType>
437 typename internal::traits<Derived>::Scalar
maxCoeff(IndexType* index)
const;
439 template<
typename BinaryOp>
440 typename internal::result_of<BinaryOp(typename internal::traits<Derived>::Scalar)>::type
441 redux(
const BinaryOp& func)
const;
443 template<
typename Visitor>
444 void visit(Visitor& func)
const;
453 return derived().coeff(0,0);
459 bool any(
void) const;
467 ConstRowwiseReturnType
rowwise() const;
469 ConstColwiseReturnType
colwise() const;
476 template<typename ThenDerived,typename ElseDerived>
477 const
Select<Derived,ThenDerived,ElseDerived>
479 const
DenseBase<ElseDerived>& elseMatrix) const;
481 template<typename ThenDerived>
482 inline const
Select<Derived,ThenDerived, typename ThenDerived::ConstantReturnType>
483 select(const
DenseBase<ThenDerived>& thenMatrix, typename ThenDerived::Scalar elseScalar) const;
485 template<typename ElseDerived>
486 inline const
Select<Derived, typename ElseDerived::ConstantReturnType, ElseDerived >
487 select(typename ElseDerived::Scalar thenScalar, const
DenseBase<ElseDerived>& elseMatrix) const;
491 template<
int RowFactor,
int ColFactor>
498 ConstReverseReturnType reverse() const;
501 #define EIGEN_CURRENT_STORAGE_BASE_CLASS Eigen::DenseBase
502 # include "../plugins/BlockMethods.h"
503 # ifdef EIGEN_DENSEBASE_PLUGIN
504 # include EIGEN_DENSEBASE_PLUGIN
506 #undef EIGEN_CURRENT_STORAGE_BASE_CLASS
508 #ifdef EIGEN2_SUPPORT
512 template<
int CRows,
int CCols>
514 template<
int CRows,
int CCols>
517 #endif // EIGEN2_SUPPORT
521 template<
typename Dest>
inline void evalTo(Dest& )
const
523 EIGEN_STATIC_ASSERT((internal::is_same<Dest,void>::value),THE_EVAL_EVALTO_FUNCTION_SHOULD_NEVER_BE_CALLED_FOR_DENSE_OBJECTS);
533 #ifdef EIGEN_INTERNAL_DEBUGGING
536 INVALID_STORAGE_ORDER_FOR_THIS_VECTOR_EXPRESSION)
548 #endif // EIGEN_DENSEBASE_H