Comment #2 on issue 2275 by [email protected]: is_upper and is_lower should
imply that the matrix is square
http://code.google.com/p/sympy/issues/detail?id=2275
BTW the reason to return False (opposite to raising error exception) is
that these methods (`is_something`) are prober methods (opposite to
`do_somthing`) and they are quit right answering the question if return
False or True only.
Yes, triangular matrix usually defined for square matrix.
Interesting to consider another case:
m = Matrix([[1, 0, 0], [1, 2, 0], [1, 2, 3], [1, 2, 3]])
In [6]: m = Matrix([[1, 0, 0], [1, 2, 0], [1, 2, 3], [1, 2, 3]])
In [7]: m
Out[7]:
[1, 0, 0]
[1, 2, 0]
[1, 2, 3]
[1, 2, 3]
Can we consider it to be lower or not? We can consider it as `lower
trapezoidal matrix` (similar as triangular square but not square), so for
universal methods `is_lower` only docstring can be updated.
BTW. the docstring for these methods now are updating in
https://github.com/sympy/sympy/pull/205
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.