mir-algorithm ~master (2021-09-24T13:11:04Z)
Dub
Repo
mir_slice.label
mir
ndslice
slice
mir_slice
Label for the dimensions 'd'. By default returns the row label.
Slice
!(
Labels
[
d
])
label
()
struct
mir_slice
(Iterator_, size_t N_ = 1, SliceKind kind_ = Contiguous, Labels_...)
@
property
@
optmath
Slice
!(
Labels
[
d
])
label
(
size_t
d
= 0
)
(
)
if
(
d
<=
L
)
if
(
0 <
N_
&&
N_
< 255
&&
!
(
kind_
==
Canonical
&&
N_
== 1
)
&&
Labels_.length
<=
N_
&&
isIterator
!
Iterator_
)
void
label
(Slice!(Labels[d]) rhs)
Slice
!(
LightConstOf
!(
Labels
[
d
]))
label
()
Slice
!(
LightImmutableOf
!(
Labels
[
d
]))
label
()
Meta
Source
See Implementation
mir
ndslice
slice
mir_slice
aliases
DeepElement
Iterator
Labels
This
_Structure
_lengths
_strides
opDollar
ptr
serdeKeysProxy
enums
PureIndexLength
isFullPureSlice
isIndexedSlice
isPureSlice
functions
_stride
accessFlat
anyEmpty
back
backIndex
backward
dup
elementCount
empty
field
first
front
idup
indexStride
iterator
label
last
lastIndex
length
lightConst
lightImmutable
lightScope
opBinary
opBinaryRight
opEquals
opIndex
opIndexAssign
opIndexOpAssign
opIndexOpAssignImplArray
opIndexUnary
opSlice
opUnary
popBack
popBackAll
popBackExactly
popBackN
popFront
popFrontAll
popFrontExactly
popFrontN
save
select
selectBack
selectFront
shape
strides
structure
toConst
toImmutable
values
manifest constants
doUnittest
hasAccessByRef
templates
Element
variables
L
N
S
_iterator
_labels
_structure
kind
Label for the dimensions 'd'. By default returns the row label.