forked from M-Labs/nalgebra
cargo fmt
This commit is contained in:
parent
b74be8499f
commit
a753d84aae
@ -74,7 +74,7 @@ pub fn spadd_cs_prealloc<T>(
|
||||
a: Op<&CsMatrix<T>>,
|
||||
) -> Result<(), OperationError>
|
||||
where
|
||||
T: Scalar + ClosedAdd + ClosedMul + Zero + One+PartialEq,
|
||||
T: Scalar + ClosedAdd + ClosedMul + Zero + One + PartialEq,
|
||||
{
|
||||
match a {
|
||||
Op::NoOp(a) => {
|
||||
|
@ -967,7 +967,7 @@ where
|
||||
self.fill_fn(|| MaybeUninit::new(T::zero()));
|
||||
|
||||
// Safety: there's no (uninitialized) values.
|
||||
return unsafe{self.assume_init_mut()};
|
||||
return unsafe { self.assume_init_mut() };
|
||||
}
|
||||
|
||||
let (rsa, csa) = a.strides();
|
||||
|
@ -1,5 +1,5 @@
|
||||
use crate::{
|
||||
DualQuaternion, Isometry3, Quaternion, SimdRealField, Translation3, UnitDualQuaternion,
|
||||
DualQuaternion, Isometry3, Quaternion, SimdRealField, Translation3, UnitDualQuaternion,
|
||||
UnitQuaternion,
|
||||
};
|
||||
use num::{One, Zero};
|
||||
|
@ -82,9 +82,11 @@ where
|
||||
DefaultAllocator: Allocator<T, D>,
|
||||
OVector<T, D>: fmt::Debug,
|
||||
{
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("OPoint").field("coords",&self.coords).finish()
|
||||
}
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
f.debug_struct("OPoint")
|
||||
.field("coords", &self.coords)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "bytemuck")]
|
||||
|
@ -28,7 +28,7 @@ use crate::geometry::{
|
||||
|
||||
impl<T1, T2> SubsetOf<Quaternion<T2>> for Quaternion<T1>
|
||||
where
|
||||
T2 : SupersetOf<T1>,
|
||||
T2: SupersetOf<T1>,
|
||||
{
|
||||
#[inline]
|
||||
fn to_superset(&self) -> Quaternion<T2> {
|
||||
@ -50,7 +50,7 @@ where
|
||||
|
||||
impl<T1, T2> SubsetOf<UnitQuaternion<T2>> for UnitQuaternion<T1>
|
||||
where
|
||||
T2: SupersetOf<T1>,
|
||||
T2: SupersetOf<T1>,
|
||||
{
|
||||
#[inline]
|
||||
fn to_superset(&self) -> UnitQuaternion<T2> {
|
||||
|
@ -242,8 +242,7 @@ where
|
||||
|
||||
let mut res = CsMatrix::new_uninitialized_generic(nrows1, ncols2, self.len() + rhs.len());
|
||||
let mut timestamps = OVector::zeros_generic(nrows1, Const::<1>);
|
||||
let mut workspace =
|
||||
Matrix::new_uninitialized_generic(nrows1, Const::<1>) ;
|
||||
let mut workspace = Matrix::new_uninitialized_generic(nrows1, Const::<1>);
|
||||
let mut nz = 0;
|
||||
|
||||
for j in 0..ncols2.value() {
|
||||
|
Loading…
Reference in New Issue
Block a user