new_vector_from_ptr

Function new_vector_from_ptr 

Source
pub unsafe fn new_vector_from_ptr(a: *const f64, n: u32) -> UniquePtr<VectorF64>
Expand description

Creates a new VectorF64 from a pointer to the array and its length. Note that it copies the data.

ยงSafety

This is unsafe due to the use of a raw pointer.