Skip to content

checksquare should error for generic arrays #1362

@tpapp

Description

@tpapp
Contributor

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @tpapp

        Issue actions

          checksquare should error for generic arrays · Issue #1362 · JuliaLang/LinearAlgebra.jl