Report a bug
If you spot a problem with this page, click here to create a Github issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

mir.ndslice.ndfield

This is a submodule of mir.ndslice.
NdField is a type with opIndex(size_t[N] index...) primitive. An ndslice can be created on top of a ndField using slicedNdField .

NdFields

NdField Name Used By
Cartesian cartesian 
Kronecker kronecker 
See Also:
Authors:
Ilya Yaroshenko
struct Cartesian(NdFields...) if (NdFields.length > 1);
NdFields _fields;
@property size_t length(size_t d = 0)();
@property size_t[N] shape()();
@property size_t elementsCount()();
auto opIndex()(size_t[N] indexes...);
struct Kronecker(alias fun, NdFields...) if (NdFields.length > 1 && allSatisfy!(templateOr!(hasShape, hasLength), NdFields[1 .. $]));
NdFields _fields;
@property size_t length(size_t d = 0)();
@property size_t[N] shape()();
@property size_t elementsCount()();
ref auto opIndex()(size_t[N] indexes...);