extendr_api::prelude::col

Function from_raw_parts_mut

pub unsafe fn from_raw_parts_mut<'a, E>(
    ptr: <<E as Entity>::Group as ForType>::FaerOf<*mut <E as Entity>::Unit>,
    nrows: usize,
    row_stride: isize,
) -> ColMut<'a, E>
where E: Entity,
Expand description

Creates a ColMut from pointers to the column vector data, number of rows, and row stride.

ยงSafety:

This function has the same safety requirements as [mat::from_raw_parts_mut(ptr, nrows, 1, row_stride, 0)]