New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#positive_definite?, #positive_semidefinite?, #rank_deficient? #411
Comments
Hi! I'd like to take a shot at this. I think I can have something to show within a week or two. |
Wonderful! Thanks so much for getting involved. =D |
@MohawkJohn Hey! I'm afraid I don't understand what the second parameter of NMatrix::rank is supposed to do, but if I can use that function to calculate the rank of the matrix then rank_deficient? would be really easy to implement. |
|
@MohawkJohn yep, perfect sense! I ended up using the gesvd to calculate rank. Since this needs the nmatrix/lapacke gem, I have a couple of questions -
|
You can run the tests with
|
Is using gesvd the most economical way to calculate rank? |
@MohawkJohn , well, I know there are a variety of ways to calculate whether or not a matrix is full rank or not; but I thought that SVD was the only way to calculate rank? |
Yup, you're right. Had to check my reference. =) Yes, lapacke sounds good. |
@MohawkJohn sounds good; i will continue to push on :) @wlevine thanks! |
These methods, among others, would be useful for users wanting to check matrix properties.
The text was updated successfully, but these errors were encountered: