-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a7d5fd
commit ffcb07f
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffcb07f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ViralBShah, it's at all clear to me that it should Inf for all-zero inputs. See my comments in #1862: inspection of the definition of cond(A) suggests that NaN may be correct here. Matlab gives inf, but that seems wrong to me.
Another way of putting it: suppose we take the limit as the matrix A goes to zero. Depending on how one takes the limit, one can get cond(A) approaching infinity, or 1, or anything in between. This is the classic case in which a NaN is called for.
ffcb07f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I saw your comment. I just reopened the issue.