compressWithType

Returns compressed tensor with different element type. Note: allocates using GC.

  1. 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
    )
  2. Slice!(ChopIterator!(J*, Series!(I*, V*)), N - 1) compressWithType(Slice!(Iterator, N, kind) slice)

Meta