pub type RMatrix<T> = RArray<T, 2>;Expand description
A 2-dimensional R matrix.
Aliased Type§
#[repr(transparent)]pub struct RMatrix<T> {
sexp: SEXP,
_marker: PhantomData<*const T>,
}Fields§
§sexp: SEXP§_marker: PhantomData<*const T>Implementations§
Source§impl<T: RNativeType> RMatrix<T>
impl<T: RNativeType> RMatrix<T>
Sourcepub unsafe fn set_rc(&mut self, row: usize, col: usize, value: T)where
T: Copy,
pub unsafe fn set_rc(&mut self, row: usize, col: usize, value: T)where
T: Copy,
Set an element by row and column.
§Safety
- The SEXP must be protected and valid
- No other references to the data may exist