I hereby claim:
- I am fgerick on github.
- I am felixg (https://keybase.io/felixg) on keybase.
- I have a public key ASCKtmh1Fr-o7fPFedLk6xN0swd3W8PqgN65hBfwwySQiwo
To claim this, I am signing this object:
using PyPlot | |
f,ax = subplots(2) | |
y = randn(10,10) | |
y2 = randn(10,10)/maximum(abs.(y)) | |
c1 = ax[1].pcolor(y) | |
c2 = ax[2].pcolor(y2) | |
f.colorbar(c2; ax=ax) | |
#gives same solution as mentioned in https://stackoverflow.com/questions/13784201/matplotlib-2-subplots-1-colorbar using ax=ax.ravel().tolist() |
# Solve for largest |λ| in Ax = λBx using quadruple precision : | |
# (B)^-1 Ax = λx | |
#as of now requires https://github.com/fgerick/ArnoldiMethod.jl and Julia >v1.4 | |
using LinearAlgebra, SparseArrays, ArnoldiMethod, IncompleteLU, DoubleFloats, LinearMaps | |
n=100 | |
T=Double64 | |
A = sprandn(T,n,n,0.1) | |
B = sprandn(T,n,n,0.1) + I(n) |
I hereby claim:
To claim this, I am signing this object:
lines.color: abb2bf | |
patch.edgecolor: abb2bf | |
text.color: abb2bf | |
axes.facecolor: 282c34 | |
axes.edgecolor: abb2bf | |
axes.labelcolor: abb2bf | |
axes.prop_cycle: cycler('color', ['8dd3c7', 'feffb3', 'bfbbd9', 'fa8174', '81b1d2', 'fdb462', 'b3de69', 'bc82bd', 'ccebc4', 'ffed6f']) |
# Solve Ax = λBx using Shift-invert Arnoldi targeting complex σ: | |
# (A-σB)^-1 Bx = 1/(λ-σ)x | |
using LinearAlgebra, SparseArrays, Arpack, LinearMaps | |
n=100 | |
A = sprandn(n,n,0.1) | |
B = sprandn(n,n,0.1) .+ sparse(1.0I,n,n) | |
# eigenvalue to target: |