mightrix 0.4.4

A library to treat continous memory as a matrix.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{ColumnPrio, RowPrio};
use std::{marker::PhantomData, mem::MaybeUninit};

/// A Matrixbuilder for when you know the dimensions of your Matrix but the data has to
/// be computed one by one.
pub struct MatrixBuilder<MemoryPriority, T> {
    inner: Vec<MaybeUninit<T>>,
    rows: usize,
    cols: usize,
    _prio: PhantomData<MemoryPriority>,
}

// TODO: implement set and build functionality for builder since Matrix cannot be used
impl<T: Clone> MatrixBuilder<ColumnPrio, T> {}
impl<T: Clone> MatrixBuilder<RowPrio, T> {}