mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
VmapField
mir
ndslice
field
VmapField
is used by
map
.
@
optmath
struct
VmapField (
Field
Fun
) {
@
optmath
Field
_field
;
@
optmath
Fun
_fun
;
auto
lightConst
();
auto
lightImmutable
();
auto ref
opIndex
(T index);
static if
(
__traits(hasMember, Field, "length")
)
auto
length
();
static if
(
__traits(hasMember, Field, "shape")
)
auto
shape
();
static if
(
__traits(hasMember, Field, "elementCount")
)
auto
elementCount
();
static if
(
hasZeroShiftFieldMember!Field
)
auto
assumeFieldsHaveZeroShift
();
}
Members
Functions
assumeFieldsHaveZeroShift
auto
assumeFieldsHaveZeroShift
()
Defined if
Field
has member
assumeFieldsHaveZeroShift
.
elementCount
auto
elementCount
()
Undocumented in source. Be warned that the author may not have intended to support it.
length
auto
length
()
Undocumented in source. Be warned that the author may not have intended to support it.
lightConst
auto
lightConst
()
lightImmutable
auto
lightImmutable
()
opIndex
auto ref
opIndex
(T index)
Undocumented in source. Be warned that the author may not have intended to support it.
shape
auto
shape
()
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
_field
Field
_field
;
_fun
Fun
_fun
;
Meta
Source
See Implementation
mir
ndslice
field
enums
hasZeroShiftFieldMember
functions
BitField__map
MapField__map
_mapField
_vmapField
applyAssumeZeroShift
structs
BitField
BitpackField
CycleField
LinspaceField
MagicField
MapField
OrthogonalReduceField
RepeatField
SparseField
VmapField
ZipField
ndIotaField
templates
ZeroShiftField
VmapField is used by map.