The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
CycleField
mir
ndslice
field
struct
CycleField
(Field)
@
fmamath
struct
CycleField (
Field
) {
alias
Slice
=
mir_slice
via
import
mir
.
ndslice
.
slice
:
Slice
;
;
@
fmamath
size_t
_length
;
@
fmamath
Field
_field
;
auto
lightConst
();
auto
lightImmutable
();
auto ref
opIndex
(size_t index);
static if
(
!__traits(compiles, &opIndex(size_t.init))
)
auto ref
opIndexAssign
(T value, size_t index);
static if
(
hasZeroShiftFieldMember!Field
)
auto
assumeFieldsHaveZeroShift
();
}
struct
CycleField
(Field, size_t length)
Members
Functions
assumeFieldsHaveZeroShift
auto
assumeFieldsHaveZeroShift
()
Defined if
Field
has member
assumeFieldsHaveZeroShift
.
lightConst
auto
lightConst
()
lightImmutable
auto
lightImmutable
()
opIndex
auto ref
opIndex
(size_t index)
opIndexAssign
auto ref
opIndexAssign
(T value, size_t index)
Variables
_field
Field
_field
;
_length
size_t
_length
;
Cycle length
Meta
Source
See Implementation
mir
ndslice
field
structs
BitField
BitpackField
CycleField
LinspaceField
MagicField
MapField
OrthogonalReduceField
RepeatField
SparseField
VmapField
ZipField
ndIotaField