pub fn vector_to_ndarray(vector: &Vector) -> Array1<f64>
Convert Vector to ndarray (optimized with pre-allocation)