35#ifndef _BLAZE_MATH_INITIALIZERLIST_H_
36#define _BLAZE_MATH_INITIALIZERLIST_H_
63template<
typename Type >
64inline size_t nonZeros( initializer_list<Type> list )
noexcept
66 size_t nonzeros( 0UL );
68 for(
const Type& element : list ) {
69 if( !isDefault<strict>( element ) )
85template<
typename Type >
86inline size_t nonZeros( initializer_list< initializer_list<Type> > list )
noexcept
88 size_t nonzeros( 0UL );
90 for(
const auto& rowList : list ) {
106template<
typename Type >
107constexpr size_t determineColumns( initializer_list< initializer_list<Type> > list )
noexcept
111 for(
const auto& rowList : list )
112 cols =
max( cols, rowList.size() );
Header file for the isDefault shim.
decltype(auto) max(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise maximum of the dense matrices lhs and rhs.
Definition: DMatDMatMapExpr.h:1375
constexpr 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
size_t nonZeros(initializer_list< initializer_list< Type > > list) noexcept
Determines the number of non-zero elements contained in the given initializer list.
Definition: InitializerList.h:86
Header file for the initializer_list template.
Header file for the generic max algorithm.