add a flatten function
(flatten A ...)
would flatten A
, partially, folding some of the indices.
If 'A' is of type hash-cvector-array
, then (flatten A :range (2 3) 'hash)
would convert it into another tensor, but now of type hash-hash
.
(Similar to array-flatten
from SRFI 164, but for a range of indices.