mir ~master (2021-08-24T17:50:55Z)
Dub
Repo
compressWithType
mir
sparse
Returns compressed tensor with different element type. Note: allocates using GC.
Slice
!(
ChopIterator
!(
J
*,
Series
!(
I
*,
V
*)),
N
-
1
)
compressWithType
(Slice!(FieldIterator!(SparseField!T), N) slice)
Slice
!(
ChopIterator
!(
J
*,
Series
!(
I
*,
V
*)),
N
- 1)
compressWithType
(
V
I
=
uint
J
=
size_t
T
size_t
N
)
(
Slice
!(
FieldIterator
!(
SparseField
!
T
),
N
)
slice
)
if
(
is
(
T
:
V
) &&
N
> 1
&&
isUnsigned
!
I
)
Slice
!(
ChopIterator
!(
J
*,
Series
!(
I
*,
V
*)),
N
-
1
)
compressWithType
(Slice!(Iterator, N, kind) slice)
Meta
Source
See Implementation
mir
sparse
modules
blas
aliases
CompressedMatrix
CompressedTensor
CompressedVector
Sparse
functions
byCoordinate
byCoordinateValue
compress
compressWithType
onlyByValue
recompress
sparse
Returns compressed tensor with different element type. Note: allocates using GC.