pub(crate) fn vector_to_numbers<T>(buf: &mut String, name: &str, vector: &[T])
where
    T: std::fmt::Display,
{
    write!(buf, "{}=[", name).unwrap();
    for val in vector.into_iter() {
        write!(buf, "{},", val).unwrap();
    }
    write!(buf, "]\n").unwrap();
}
/// Converts vector to a Python list of numbers
Converts vector to a Python list of numbers
Converts vector to a Python list of numbers
pub(crate) fn vector_to_numbers<T>(buf: &mut String, name: &str, vector: &[T])
where
    T: std::fmt::Display,
{
    write!(buf, "{}=[", name).unwrap();
    for val in vector.into_iter() {
        write!(buf, "{},", val).unwrap();
    }
    write!(buf, "]\n").unwrap();
}
pub ( crate ) fn vector_to_numbers < T > ( buf : & mut String , name : & str , vector : & [ T ] ) where T : std :: fmt :: Display , { write ! ( buf " " name ) . unwrap ( ) ; for val in vector . into_iter ( ) { write ! ( buf " " val ) . unwrap ( ) ; } write ! ( buf " \n " ) . unwrap ( ) ; }
Converts vector to a Python list of numbers
Converts vector to a Python list of numbers
buf
&mut String
name
&str
vector
&[T]
buf
&mut String
name
&str
vector
&[T]