mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
SparseField
mir
ndslice
field
SparseField
is used to represent Sparse ndarrays in mutable DOK format.
@
optmath
struct
SparseField (
T
) {
T
[
size_t
]
_table
;
auto
lightConst
();
auto
lightImmutable
();
T
opIndex
(size_t index);
T
opIndexAssign
(T value, size_t index);
T
opIndexUnary
(size_t index);
T
opIndexOpAssign
(T value, size_t index);
}
Members
Functions
lightConst
auto
lightConst
()
lightImmutable
auto
lightImmutable
()
opIndex
T
opIndex
(size_t index)
opIndexAssign
T
opIndexAssign
(T value, size_t index)
opIndexOpAssign
T
opIndexOpAssign
(T value, size_t index)
opIndexUnary
T
opIndexUnary
(size_t index)
Variables
_table
T
[
size_t
]
_table
;
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
SparseField is used to represent Sparse ndarrays in mutable DOK format.