element's member name
lazy n-dimensional slice of the same shape
// struct, union or class struct S { // Property support // Getter always must be defined. double _x; double x() @property { return x; } void x(double x) @property { _x = x; } /// Field support double y; /// Zero argument function support double f() { return _x * 2; } } import mir.ndslice.allocation: slice; import mir.ndslice.topology: iota; auto matrix = slice!S(2, 3); matrix.member!"x"[] = [2, 3].iota; matrix.member!"y"[] = matrix.member!"f"; assert(matrix.member!"y" == [2, 3].iota * 2);
Field (element's member) projection.