35 #ifndef _BLAZE_MATH_INITIALIZERLIST_H_ 36 #define _BLAZE_MATH_INITIALIZERLIST_H_ 63 template<
typename Type >
66 size_t nonzeros( 0UL );
68 for(
const Type& element : list ) {
85 template<
typename Type >
88 size_t nonzeros( 0UL );
90 for(
const auto& rowList : list ) {
106 template<
typename Type >
111 for(
const auto& rowList : list )
112 cols =
max( cols, rowList.size() );
BLAZE_ALWAYS_INLINE size_t nonZeros(const Matrix< MT, SO > &matrix)
Returns the total number of non-zero elements in the matrix.
Definition: Matrix.h:560
const ElementType_< MT > max(const DenseMatrix< MT, SO > &dm)
Returns the largest element of the dense matrix.
Definition: DenseMatrix.h:1950
Header file for the initializer_list template.
Headerfile for the generic max algorithm.
Namespace of the Blaze C++ math library.
Definition: Blaze.h:58
size_t determineColumns(initializer_list< initializer_list< Type > > list) noexcept
Determines the maximum number of columns specified by the given initializer list. ...
Definition: InitializerList.h:107
Header file for the isDefault shim.
bool isDefault(const DiagonalProxy< MT > &proxy)
Returns whether the represented element is in default state.
Definition: DiagonalProxy.h:628