pub enum Array<X> {
StridedMatrix(StridedMatrix<X>),
PackedMatrix(PackedMatrix<X>),
}Variants§
StridedMatrix(StridedMatrix<X>)
PackedMatrix(PackedMatrix<X>)
Implementations§
Source§impl<X> Array<X>
impl<X> Array<X>
pub fn strided_matrix(src: *const X, rs: usize, cs: usize) -> Self
pub fn packed_matrix(src: *const X, m: usize, k: usize) -> Self
pub fn into_pack_array<'a>( &self, a: &'a [RangeLock<'a, X>], p_id: usize, ) -> PArray<'a, X>
pub fn into_pack_array2<'a, Y>( &self, a: &'a [RangeLock<'a, Y>], p_id: usize, ) -> PArrayMixed<'a, X, Y>
pub fn src(&self) -> *const X
pub fn transpose(&mut self)
pub fn rs(&self) -> usize
pub fn cs(&self) -> usize
pub fn is_strided(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<X> Freeze for Array<X>
impl<X> RefUnwindSafe for Array<X>where
X: RefUnwindSafe,
impl<X> Send for Array<X>
impl<X> !Sync for Array<X>
impl<X> Unpin for Array<X>
impl<X> UnwindSafe for Array<X>where
X: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more