Skip to content

Commit bc5f967

Browse files
authored
Merge pull request #10 from SingleRust/dev-matrix-mul-optimization
fixed small orientation issue and malformed matrix
2 parents ce725c3 + 5f46725 commit bc5f967

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description = "A Rust port of LAS2 from SVDLIBC"
44
keywords = ["svd"]
55
categories = ["algorithms", "data-structures", "mathematics", "science"]
66
name = "single-svdlib"
7-
version = "1.0.5"
7+
version = "1.0.6"
88
edition = "2021"
99
license-file = "SVDLIBC-LICENSE.txt"
1010

src/randomized/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ where
9696
PowerIterationNormalizer::QR => {
9797
let qr = z.qr();
9898
z = qr.q();
99+
// After QR normalization, z has fewer columns, so we need to resize y
100+
y = DMatrix::<T>::zeros(m_rows, z.ncols());
99101
}
100102
PowerIterationNormalizer::LU => {
101103
normalize_columns(&mut z);

0 commit comments

Comments
 (0)