mir.ndslice.field

This is a submodule of mir.ndslice.

Field is a type with opIndex()(ptrdiff_t index) primitive. An iterator can be created on top of a field using FieldIterator. An ndslice can be created on top of a field using slicedField.

Fields

Field NameUsed By
BitFieldbitwise
BitpackFieldbitpack
CycleFieldcycle (2 kinds)
LinspaceFieldlinspace
MagicFieldmagic
MapFieldmap and mapField
ndIotaFieldndiota
OrthogonalReduceFieldorthogonalReduceField
RepeatFieldrepeat
SparseFieldUsed for mutable DOK sparse matrixes

Members

Enums

hasZeroShiftFieldMember
eponymoustemplate hasZeroShiftFieldMember(T)
Undocumented in source.

Functions

BitField__map
auto BitField__map(BitField!(Field, I) field)
Undocumented in source. Be warned that the author may not have intended to support it.
MapField__map
auto MapField__map(MapField!(Field, fun) f)
Undocumented in source. Be warned that the author may not have intended to support it.
_mapField
auto _mapField(Field field)
Undocumented in source. Be warned that the author may not have intended to support it.
_vmapField
auto _vmapField(Field field, Fun fun)
Undocumented in source. Be warned that the author may not have intended to support it.
applyAssumeZeroShift
auto applyAssumeZeroShift()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

BitField
struct BitField(Field, I = typeof(cast()Field.init[size_t.init]))

BitField is used by bitwise.

BitpackField
struct BitpackField(Field, uint pack, I = typeof(cast()Field.init[size_t.init]))

BitpackField is used by bitpack.

CycleField
struct CycleField(Field)
CycleField
struct CycleField(Field, size_t length)
LinspaceField
struct LinspaceField(T)

LinspaceField is used by linspace.

MagicField
struct MagicField

Magic square field.

MapField
struct MapField(Field, alias _fun)

MapField is used by map.

OrthogonalReduceField
struct OrthogonalReduceField(FieldsIterator, alias fun, T)
RepeatField
struct RepeatField(T)

RepeatField is used by repeat.

SparseField
struct SparseField(T)

SparseField is used to represent Sparse ndarrays in mutable DOK format.

VmapField
struct VmapField(Field, Fun)

VmapField is used by map.

ZipField
struct ZipField(Fields...)

Iterates multiple fields in lockstep.

ndIotaField
struct ndIotaField(size_t N)

ndIotaField is used by ndiota.

Templates

ZeroShiftField
template ZeroShiftField(T)
Undocumented in source.

Meta

License

Apache-2.0

Authors

Ilya Yaroshenko