pub fn prepapre_cache_vec<T: Copy>(vec: &mut Vec<T>, len: usize, default: T)
Take any f32 vec, set its length and fill it with the default value.