pub fn constant(value: F, len: usize) -> Self
        where
            F: Clone,
    {
        debug_assert_ne!(len, 0);

        Self { data: vec![value; len], }
    }
/// Create a vector with all values being equal to a given value.
///
/// # Arguments
///
/// * `value`: The value which all elements of this vector are equal to.
/// * `len`: Length of the vector, number of elements.
///
/// # Return value
///
/// A constant `DenseVector`.
Create a vector with all values being equal to a given value.
Create a vector with all values being equal to a given value .
pub fn constant(value: F, len: usize) -> Self
        where
            F: Clone,
    {
        debug_assert_ne!(len, 0);
        Self { data: vec![value; len], }
    }
pub fn constant ( value : F , len : usize ) -> Self where F : Clone , { debug_assert_ne ! ( len 0 ) ; Self { data : vec ! [ value len ] , } }
Create a vector with all values being equal to a given value.
Create a vector with all values being equal to a given value .
value
F
len
usize
value
F
len
usize
return value
A constant `DenseVector`.
A constant ` DenseVector ` .