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

SquareEye multiplication not specialized #394

Open
putianyi889 opened this issue Nov 10, 2024 · 0 comments
Open

SquareEye multiplication not specialized #394

putianyi889 opened this issue Nov 10, 2024 · 0 comments

Comments

@putianyi889
Copy link
Contributor

Similar issue: #107

julia> A = rand(1000,1000);

julia> B=Eye(1000);

julia> @btime A*B;
  1.414 ms (3 allocations: 7.63 MiB)

julia> @btime copy(A)
  1.097 ms (3 allocations: 7.63 MiB)

Downstream issue:

julia> using ClassicalOrthogonalPolynomials, ToeplitzMatrices

julia> B=Toeplitz(1:∞,1:∞)
ℵ₀×ℵ₀ Toeplitz{Int64, InfiniteArrays.InfUnitRange{Int64}, InfiniteArrays.InfUnitRange{Int64}} with indices OneToInf()×OneToInf():
  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23    
  2  1  2  3  4  5  6  7  8   9  10  11  12  13  14  15  16  17  18  19  20  21  22
  3  2  1  2  3  4  5  6  7   8   9  10  11  12  13  14  15  16  17  18  19  20  21
  4  3  2  1  2  3  4  5  6   7   8   9  10  11  12  13  14  15  16  17  18  19  20
  5  4  3  2  1  2  3  4  5   6   7   8   9  10  11  12  13  14  15  16  17  18  19
  6  5  4  3  2  1  2  3  4   5   6   7   8   9  10  11  12  13  14  15  16  17  18  
  7  6  5  4  3  2  1  2  3   4   5   6   7   8   9  10  11  12  13  14  15  16  17
  8  7  6  5  4  3  2  1  2   3   4   5   6   7   8   9  10  11  12  13  14  15  16
  9  8  7  6  5  4  3  2  1   2   3   4   5   6   7   8   9  10  11  12  13  14  15
 10  9  8  7  6  5  4  3  2   1   2   3   4   5   6   7   8   9  10  11  12  13  14     
                                                                                

julia> S=Legendre()
Legendre()

julia> S\(S*B) # freeze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant