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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions