aboutsummaryrefslogtreecommitdiff
path: root/libpsi-core/src/maths/matrix.rs
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2024-10-12 16:56:12 +0200
committerhachem <im@hachem.wtf>2024-10-12 16:56:12 +0200
commit483e9e6ce9fbb1440992e916ec743ce0eff0ab5a (patch)
treee312bd5be2318c2570d7b42550eaf184deb8c965 /libpsi-core/src/maths/matrix.rs
parentc643b1535ffb106cf582763804bce655e3fb116c (diff)
Simplify and start rework of gate application
Diffstat (limited to 'libpsi-core/src/maths/matrix.rs')
-rw-r--r--libpsi-core/src/maths/matrix.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpsi-core/src/maths/matrix.rs b/libpsi-core/src/maths/matrix.rs
index 74857d1..636df08 100644
--- a/libpsi-core/src/maths/matrix.rs
+++ b/libpsi-core/src/maths/matrix.rs
@@ -174,7 +174,7 @@ impl<T: Float + fmt::Display> fmt::Display for Matrix<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let max_width = (0..self.rows)
.flat_map(|i| (0..self.cols).map(move |j| self.get(i, j)))
- .map(|x| format!("{:.2}", x).split('.').next().unwrap().len());
+ .map(|x| format!("{:.2}", x).split('.').next().unwrap().len())
.max()
.unwrap_or(0);