35 #ifndef _BLAZE_UTIL_POLICIES_OPTIMALGROWTH_H_
36 #define _BLAZE_UTIL_POLICIES_OPTIMALGROWTH_H_
70 inline size_t operator()(
size_t oldSize,
size_t minSize )
const;
94 const size_t needed(
max( static_cast<size_t>( old*1.5 ), minimum ) );
95 return ( ( needed )?( 4 * ( (needed-1)/4 + 1 ) ):( 0 ) );
const MT::ElementType max(const DenseMatrix< MT, SO > &dm)
Returns the largest element of the dense matrix.
Definition: DenseMatrix.h:1729
Header file for mathematical functions.
Header file for basic type definitions.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
size_t operator()(size_t oldSize, size_t minSize) const
Returns a new size depending on the given old size and the required minimum size. ...
Definition: OptimalGrowth.h:92
Optimal growth policy class.The OptimalGrowth policy class implements the optimal growth strategy sug...
Definition: OptimalGrowth.h:65