rewrite transpose

This commit is contained in:
Quaternions 2024-08-30 14:49:15 -07:00
parent 85d0b3d1ac
commit 0c41d3182e

View File

@ -35,7 +35,8 @@ macro_rules! impl_matrix {
}
}
impl<T> $crate::Transpose for $struct_outer<$struct_inner<T>>{
type Output=$struct_inner<$struct_outer<T>>;
type Inner=$vector_outer<T>;
type Output=$matrix_inner<$vector_outer<T>>;
fn transpose(self)->Self::Output{
self.transpose()
}
@ -53,7 +54,10 @@ macro_rules! impl_matrix {
// Impl floating-point based methods
#[cfg(feature="fixed_wide_traits")]
$crate::impl_wide_matrix_operations!( ($struct_outer { $($field_outer), + }, $size_outer), ($struct_inner, $size_inner), $fields_inner );
$crate::impl_wide_matrix_operations!(
($struct_outer { $($field_outer), + }, $vector_outer, $size_outer),
($struct_inner { $($field_inner), + }, $matrix_inner, $size_inner)
);
};
}