extendr_api::prelude::mat

Function from_repeated_ref_generic

pub fn from_repeated_ref_generic<E>(
    value: <<E as Entity>::Group as ForType>::FaerOf<&<E as Entity>::Unit>,
    nrows: usize,
    ncols: usize,
) -> MatRef<'_, E>
where E: Entity,
Expand description

Returns a view over an nrows×ncols matrix containing value repeated for all elements.