diff -r cebedc4a8331 -r d63e40672dd6 src/nalgebra_support.rs --- a/src/nalgebra_support.rs Sat Dec 21 14:27:14 2024 -0500 +++ b/src/nalgebra_support.rs Fri Dec 20 16:14:17 2024 -0500 @@ -61,11 +61,13 @@ DefaultAllocator : Allocator, DefaultAllocator : Allocator, DefaultAllocator : Allocator, - DefaultAllocator : Allocator { + DefaultAllocator : Allocator +{ + type LinCodomain = OMatrix; } -impl GEMV, Matrix> for Matrix -where SM: Storage, SV1: Storage + Clone, SV2: StorageMut, +impl GEMV> for Matrix +where SM: Storage, SV1: Storage + Clone, N : Dim, M : Dim, K : Dim, E : Scalar + Zero + One + Float, DefaultAllocator : Allocator, DefaultAllocator : Allocator, @@ -85,18 +87,19 @@ } } -impl AXPY> for Vector -where SM: StorageMut + Clone, SV1: Storage + Clone, +impl AXPY for Vector +where SM: StorageMut + Clone, M : Dim, E : Scalar + Zero + One + Float, DefaultAllocator : Allocator { + type Field = E; #[inline] - fn axpy>>(&mut self, α : E, x : I, β : E) { + fn axpy>>(&mut self, α : E, x : I, β : E) { x.eval(|x̃| Matrix::axpy(self, α, x̃, β)) } #[inline] - fn copy_from>>(&mut self, y : I) { + fn copy_from>>(&mut self, y : I) { y.eval(|ỹ| Matrix::copy_from(self, ỹ)) } }