mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
OrthogonalReduceField
mir
ndslice
field
@
optmath
struct
OrthogonalReduceField (
FieldsIterator
alias
fun
T
) {
import
mir
.
ndslice
.
slice
:
Slice
;
;
@
optmath
Slice
!
FieldsIterator
_fields
;
@
optmath
T
_initialValue
;
auto
lightConst
();
auto
lightImmutable
();
auto
opIndex
(size_t index);
}
Members
Functions
lightConst
auto
lightConst
()
lightImmutable
auto
lightImmutable
()
opIndex
auto
opIndex
(size_t index)
r = fun(r, fields[i][index]);
reduction by
i
Variables
_fields
Slice
!
FieldsIterator
_fields
;
non empty slice
_initialValue
T
_initialValue
;
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