Skip to content

[quibble/documentation] is_square for matrices (esp. ZZMatrix) #5441

@JohnAAbbott

Description

@JohnAAbbott

The function is_square can be used to determine if the shape of a matrix is square.
The documentation for is_square does not cover this case, but in every documented version the function tests whether the given argument is the square of some value. There are 5 documented versions: they all say exactly the same, except for one which inserts the (superfluous?) word perfect. There are 52 methods for is_square.

Questions:

  1. Can/Should we condense the documentation into a single entry? Maybe a separate entry for matrices?
  2. Given that the semantics of is_square for matrices is different, should it have a different name? e.g. is_square_matrix One could also ask whether a given matrix is a square value; not sure this is ever useful, and I don't know how to check it.

I think (1) is a good idea, and am not convinced by the possible merits of (2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions