Skip to content

checksquare should error for generic arrays #1362

@tpapp

Description

@tpapp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrays[a, r, r, a, y, s]bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions