Fix test and no-std builds.

This commit is contained in:
Sébastien Crozet 2021-08-03 09:54:11 +02:00
parent 8c6ebf2757
commit 7a1a4bcc02
3 changed files with 3 additions and 2 deletions

View File

@ -9,10 +9,10 @@ use crate::base::constraint::{
};
use crate::base::dimension::{Const, Dim, Dynamic, U1, U2, U3, U4};
use crate::base::storage::{Storage, StorageMut};
use crate::base::uninit::Init;
use crate::base::{
DVectorSlice, DefaultAllocator, Matrix, Scalar, SquareMatrix, Vector, VectorSlice,
};
use crate::core::uninit::Init;
/// # Dot/scalar product
impl<T, R: Dim, C: Dim, S: RawStorage<T, R, C>> Matrix<T, R, C, S>

View File

@ -466,6 +466,7 @@ where
{
pub(crate) fn sort(&mut self)
where
T: Zero,
DefaultAllocator: Allocator<T, R>,
{
// Size = R

View File

@ -219,7 +219,7 @@ where
impl<'a, 'b, T, R1, R2, C1, C2, S1, S2> Add<&'b CsMatrix<T, R2, C2, S2>>
for &'a CsMatrix<T, R1, C1, S1>
where
T: Scalar + ClosedAdd + ClosedMul + One,
T: Scalar + ClosedAdd + ClosedMul + Zero + One,
R1: Dim,
C1: Dim,
R2: Dim,