Struct forust_ml::data::JaggedMatrix
source · [−]pub struct JaggedMatrix<T> {
pub data: Vec<T>,
pub ends: Vec<usize>,
pub cols: usize,
pub n_records: usize,
}Expand description
A jagged column aligned matrix, that owns it’s data contents.
Fields
data: Vec<T>The contents of the matrix.
ends: Vec<usize>The end index’s of the matrix.
cols: usizeNumber of columns in the matrix
n_records: usizeThe number of elements in the matrix.
Implementations
sourceimpl<T> JaggedMatrix<T> where
T: Copy,
impl<T> JaggedMatrix<T> where
T: Copy,
Trait Implementations
sourceimpl<T: Debug> Debug for JaggedMatrix<T>
impl<T: Debug> Debug for JaggedMatrix<T>
sourceimpl<T> Default for JaggedMatrix<T>
impl<T> Default for JaggedMatrix<T>
sourceimpl<'de, T> Deserialize<'de> for JaggedMatrix<T> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for JaggedMatrix<T> where
T: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for JaggedMatrix<T> where
T: RefUnwindSafe,
impl<T> Send for JaggedMatrix<T> where
T: Send,
impl<T> Sync for JaggedMatrix<T> where
T: Sync,
impl<T> Unpin for JaggedMatrix<T> where
T: Unpin,
impl<T> UnwindSafe for JaggedMatrix<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more