Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General eigenproblem algorithm #1743

Merged
merged 29 commits into from
Apr 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8bf1670
split the eigs function into multiple algorithms
cshaa Feb 13, 2020
f80749c
moved checks and coersions to eigs.js, made them more robust
cshaa Feb 14, 2020
ddc643e
fix little bugs, make im and re more robust
cshaa Feb 14, 2020
3d11fbd
Implemented matrix balancing algorithm
cshaa Feb 14, 2020
97209ab
fix typos
cshaa Feb 15, 2020
72f8e9d
a draft of reduction to Hessenberg matrix
cshaa Feb 15, 2020
aa4ee48
finished implementation of reduction to Hessenberg
cshaa Feb 16, 2020
a32d6e8
fix Hessenberg elimination for complex numbers
cshaa Feb 20, 2020
1e4a667
implemented non-shifted explicit QR algorithm for real matrices
cshaa Feb 20, 2020
5ef265c
Merge branch 'develop' into patch-eigens
josdejong Feb 21, 2020
58ad520
implemented vector computation, won't work untill usolve is fixed
cshaa Feb 22, 2020
e7bf6da
refactored to match yarn lint
cshaa Feb 22, 2020
5adea51
some minor changes
cshaa Mar 11, 2020
9810c83
Merge branch 'develop' into patch-eigens
josdejong Mar 14, 2020
3425294
Merge branch 'develop' into patch-eigens
cshaa Aug 25, 2020
d111a5e
Merge branch 'develop' into patch-eigens
josdejong Aug 29, 2020
58641c9
solve merge conflicts
cshaa Sep 26, 2020
121cda9
Merge branch 'develop' into patch-eigens
cshaa Sep 26, 2020
a40e847
refactored and re-fixed #1789
cshaa Sep 26, 2020
a00b7cb
some old uncommited changes
cshaa Mar 8, 2021
c1f73c4
Merge remote-tracking branch 'upstream/develop' into patch-eigens
cshaa Mar 8, 2021
1f2a21d
fix small problems introduced by merging
cshaa Mar 8, 2021
ac1222e
done some polishing
cshaa Mar 31, 2021
583d047
merge develop from upstream
cshaa Mar 31, 2021
ab58046
improved jsdoc description of eigs
cshaa Mar 31, 2021
fd69745
little changes in jsdoc
cshaa Mar 31, 2021
ed751e3
Merge branch 'develop' into patch-eigens
josdejong Apr 10, 2021
0f31a71
Merge branch 'develop' into patch-eigens
josdejong Apr 10, 2021
318e3ac
Merge branch 'develop' into patch-eigens
josdejong Apr 18, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/function/arithmetic/norm.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export const createNorm = /* #__PURE__ */ factory(
const tx = ctranspose(x)
const squaredX = multiply(tx, x)
const eigenVals = eigs(squaredX).values
const rho = eigenVals.get([eigenVals.size()[0] - 1])
const rho = eigenVals[eigenVals.length - 1]
return abs(sqrt(rho))
}

Expand Down
4 changes: 4 additions & 0 deletions src/function/complex/im.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export const createIm = /* #__PURE__ */ factory(name, dependencies, ({ typed })
return x.mul(0)
},

Fraction: function (x) {
return x.mul(0)
},

Complex: function (x) {
return x.im
},
Expand Down
4 changes: 4 additions & 0 deletions src/function/complex/re.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export const createRe = /* #__PURE__ */ factory(name, dependencies, ({ typed })
return x
},

Fraction: function (x) {
return x
},

Complex: function (x) {
return x.re
},
Expand Down
Loading