Run cargo fmt.

This commit is contained in:
sebcrozet 2020-06-07 09:07:25 +02:00
parent 3359e25435
commit 2c2d1e4f07
4 changed files with 18 additions and 12 deletions

View File

@ -57,7 +57,9 @@ where
N: Default, N: Default,
{ {
fn default() -> Self { fn default() -> Self {
ArrayStorage { data: Default::default() } ArrayStorage {
data: Default::default(),
}
} }
} }

View File

@ -36,7 +36,7 @@ pub struct Quaternion<N: Scalar + SimdValue> {
impl<N: RealField> Default for Quaternion<N> { impl<N: RealField> Default for Quaternion<N> {
fn default() -> Self { fn default() -> Self {
Quaternion { Quaternion {
coords: Vector4::zeros() coords: Vector4::zeros(),
} }
} }
} }

View File

@ -25,7 +25,8 @@ use crate::storage::{Storage, StorageMut};
)] )]
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
pub struct Cholesky<N: SimdComplexField, D: Dim> pub struct Cholesky<N: SimdComplexField, D: Dim>
where DefaultAllocator: Allocator<N, D, D> where
DefaultAllocator: Allocator<N, D, D>,
{ {
chol: MatrixN<N, D>, chol: MatrixN<N, D>,
} }
@ -38,7 +39,8 @@ where
} }
impl<N: SimdComplexField, D: Dim> Cholesky<N, D> impl<N: SimdComplexField, D: Dim> Cholesky<N, D>
where DefaultAllocator: Allocator<N, D, D> where
DefaultAllocator: Allocator<N, D, D>,
{ {
/// Computes the Cholesky decomposition of `matrix` without checking that the matrix is definite-positive. /// Computes the Cholesky decomposition of `matrix` without checking that the matrix is definite-positive.
/// ///
@ -139,7 +141,8 @@ where DefaultAllocator: Allocator<N, D, D>
} }
impl<N: ComplexField, D: Dim> Cholesky<N, D> impl<N: ComplexField, D: Dim> Cholesky<N, D>
where DefaultAllocator: Allocator<N, D, D> where
DefaultAllocator: Allocator<N, D, D>,
{ {
/// Attempts to compute the Cholesky decomposition of `matrix`. /// Attempts to compute the Cholesky decomposition of `matrix`.
/// ///
@ -362,7 +365,8 @@ where DefaultAllocator: Allocator<N, D, D>
} }
impl<N: ComplexField, D: DimSub<Dynamic>, S: Storage<N, D, D>> SquareMatrix<N, D, S> impl<N: ComplexField, D: DimSub<Dynamic>, S: Storage<N, D, D>> SquareMatrix<N, D, S>
where DefaultAllocator: Allocator<N, D, D> where
DefaultAllocator: Allocator<N, D, D>,
{ {
/// Attempts to compute the Cholesky decomposition of this matrix. /// Attempts to compute the Cholesky decomposition of this matrix.
/// ///