Template Function sequant::make_extent_array_ops¶
Defined in File extent_array_ops.hpp
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
BackendArrayOpsfor a backend whose arrays are untiled, from a per-basis-key extent map.make_zerosof the result sizes each mode of its descriptor by its basis’ extent;axis_batcheschunks an axis into consecutive batches of the target size (the last may be smaller). A nested (proto-bearing) index is not supported.- Parameters:
extent_of_base – IndexBasis::base_key() -> the extent of that basis
make_zeros – the backend’s zero array of the given extents, callable as
ResultPtr(container::svector<std::size_t> const& extents)
- Throws:
Exception – from either closure if an index’s basis is not in
extent_of_base, or frommake_zerosif it is nested