Template Function sequant::make_extent_array_ops

Function Documentation

template<typename MakeZeros>
BackendArrayOps sequant::make_extent_array_ops(std::map<std::wstring, std::size_t> extent_of_base, MakeZeros make_zeros)

Build a BackendArrayOps for a backend whose arrays are untiled, from a per-basis-key extent map.

make_zeros of the result sizes each mode of its descriptor by its basis’ extent; axis_batches chunks an axis into consecutive batches of the target size (the last may be smaller). A nested (proto-bearing) index is not supported.

Parameters:
Throws:

Exception – from either closure if an index’s basis is not in extent_of_base, or from make_zeros if it is nested