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

Module filling_data

Search:
Group by:

Procs

proc copy_from[T](dst: var Tensor[T]; src: Tensor[T])
Copy the data from a source Tensor. Both tensors must have the same number of elements but do not need to have the same shape. Data is copied without re-allocation.
Warning ⚠
The destination tensor data will be overwritten. It however conserves its shape and strides.
  Source Edit