You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A couple of quality of life functions for the LinearAlgebra module would be a isZero or isEye functions. This functions would return a bool and be able to take a Matrix as an argument. Similar to the following functions:
Maybe there is a quick way to do it already, but it was not obvious to me, outside of creating another identity or zero Matrix. Writing some loops would work as well. There could be some performance issues either approach. But in the end this would be a quality of life feature for users.
Not a blocking issue.
The text was updated successfully, but these errors were encountered:
Relevant issue:
#22682
It was pointed out that we should have `isZero` and `isEye` methods in
the Linear Algebra module. This PR adds these.
Added two `isEye` and `isZero` to the linear algebra module.
- [ ] Paratest
[reviewed by @jeremiah-corrado]
@Iainmon : I believe you added the requested routines in #22695 (thanks!). Could this issue be considered resolved by that PR, or do you consider there to be more to do here before closing the issue?
Summary of Problem
A couple of quality of life functions for the LinearAlgebra module would be a
isZero
orisEye
functions. This functions would return a bool and be able to take a Matrix as an argument. Similar to the following functions:proc isDiag -Return true if matrix is diagonal.
proc isHermitian - Return true if matrix is Hermitian
proc isSymmetric - Return true if matrix is symmetric
Maybe there is a quick way to do it already, but it was not obvious to me, outside of creating another identity or zero Matrix. Writing some loops would work as well. There could be some performance issues either approach. But in the end this would be a quality of life feature for users.
Not a blocking issue.
The text was updated successfully, but these errors were encountered: