The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
OrthogonalReduceField
mir
ndslice
field
@
fmamath
struct
OrthogonalReduceField (
FieldsIterator
alias
fun
T
) {
alias
Slice
=
mir_slice
via
import
mir
.
ndslice
.
slice
:
Slice
;
;
@
fmamath
Slice
!
FieldsIterator
_fields
;
@
fmamath
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
structs
BitField
BitpackField
CycleField
LinspaceField
MagicField
MapField
OrthogonalReduceField
RepeatField
SparseField
VmapField
ZipField
ndIotaField