extendr_api::prelude::col

Function from_raw_parts

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

Creates a ColRef 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(ptr, nrows, 1, row_stride, 0)]