Fork me on GitHub

src/arraymancer/tensor/init_copy_cpu

Search:
Group by:
  Source Edit

Procs

proc clone[T](t: Tensor[T]; layout: OrderType = rowMajor): Tensor[T] {.noinit.}
Input:
- A tensor

Returns:

- A full copy. The copy is recreated as a contiguous tensor.
  If the input was a slice, unused values are discarded.
  Source Edit
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood