Skip to content

checksquare should error for generic arrays #1362

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

Open
tpapp opened this issue May 28, 2025 · 0 comments
Open

checksquare should error for generic arrays #1362

tpapp opened this issue May 28, 2025 · 0 comments

Comments

@tpapp
Copy link
Contributor

tpapp commented May 28, 2025

Currently

  1. it works for more than two dimensions,
  2. regardless of what the trailing sizes are
julia> LinearAlgebra.checksquare(zeros(1,1,1))
1

julia> LinearAlgebra.checksquare(zeros(1,1,2))
1

Incidentally, the docstring should document that the error thrown is a DimensionError.

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