Closed jofrevalles closed 1 year ago
Merging #16 (c272320) into master (4debeba) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #16 +/- ##
=======================================
Coverage 79.65% 79.65%
=======================================
Files 5 5
Lines 172 172
=======================================
Hits 137 137
Misses 35 35
Impacted Files | Coverage Δ | |
---|---|---|
src/Numerics.jl | 91.42% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
Summary
This PR addresses an issue with the custom
svd
function for aTensor
. The issue was related to the incorrect reshaping of the resultingU
andV
matrices, sometimes leading to incorrect output sizes. The function has been fixed, and new test cases have been added to cover the previous error.Issue
The original
svd
function did not correctly reshape the resultingU
andV
matrices. The problem occurred when the indices of theTensor
had different dimensions. The original code used the following lines to reshape the tensors:This caused issues for the
Vt
tensor because thevrind
was expected to be its first index but was assigned as the last index in the original code.Example
Here's an example where the original code failed: