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)
  2. Slice!(ChopIterator!(J*, Series!(I*, V*)), N - 1) compressWithType(Slice!(Iterator, N, kind) slice)
    Slice!(ChopIterator!(J*, Series!(I*, V*)), N - 1)
    compressWithType
    (
    V
    I = uint
    J = size_t
    Iterator
    size_t N
    SliceKind kind
    )
    (
    Slice!(Iterator, N, kind) slice
    )
    if (
    !is(Iterator : FieldIterator!(SparseField!ST),
    ST
    ) &&
    is(DeepElementType!(Slice!(Iterator, N, kind)) : V)
    &&
    N > 1
    &&
    isUnsigned!I
    )

Meta