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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes