TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
nda::NdaInitFunc Concept Reference

#include <nda/sym_grp.hpp>

Detailed Description

Concept defining an initializer function.

An initializer function consists of a callable type that can be called with a multi-dimensional index with the same rank as a given array type and returns a an object of the same type as the value type of the array.

Template Parameters
FCallable type.
Anda::Array type.
IdxMulti-dimensional index type.

Definition at line 126 of file sym_grp.hpp.

Concept definition

template<typename F, typename A, typename Idx std::array<long, static_cast<std::size_t>(get_rank<A>)>>
concept nda::NdaInitFunc = Array<A> and requires(F f, Idx const &idx) {
{ f(idx) } -> std::same_as<get_value_t<A>>;
}
Check if a given type satisfies the array concept.
Definition concepts.hpp:230
Concept defining an initializer function.
Definition sym_grp.hpp:126
constexpr int get_rank
Constexpr variable that specifies the rank of an nda::Array or of a contiguous 1-dimensional range.
Definition traits.hpp:136