Fork me on GitHub
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood

Module init_copy_cpu

Search:
Group by:

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