Skip to main content

copy

Function copy 

Source
pub fn copy<T: Element, D: Dimension>(a: &Array<T, D>) -> Array<T, D>
Expand description

Return an array copy of the given object.

Analogous to numpy.copy(). Allocates a new C-contiguous buffer with the same data.