extendr_api::prelude::mat

Function from_repeated_ref

pub fn from_repeated_ref<E>(
    value: &E,
    nrows: usize,
    ncols: usize,
) -> MatRef<'_, E>
where E: SimpleEntity,
Expand description

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