optimath 0.3.1

Linear Algebra using const generics for no_std and specialization to enable SIMD.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{types::Stupidity, Vector};
use rand::{
	distributions::{Distribution, Standard},
	Rng,
};

impl<T, const N: usize> Distribution<Vector<T, N>> for Standard
where
	Standard: Distribution<T>,
{
	fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Vector<T, N> {
		Vector::build_with_fn(|_| rng.gen())
	}
}