Function u64_to_f64_vec

Source
pub fn u64_to_f64_vec(x: &[u64]) -> Vec<f64>
Expand description

§u64_to_f64_vec(x)

Conversion Function

The u64_to_f64_vec function takes a slice of u64 values as input and returns a Vec<f64> where each element is the f64 representation of the corresponding input element using the u64_to_f64 function.

§Examples

use mathlab::math::{u64_to_f64, u64_to_f64_vec};
let my_x_f64_array = [0, 1, 2, 3];
assert_eq!(u64_to_f64(0), 0.0);
assert_eq!(u64_to_f64_vec(&my_x_f64_array), [0.0, 1.0, 2.0, 3.0]);

End Fun Doc