Problems with issymmetric and sparse matrix

조회 수: 1 (최근 30일)
Ivan Gonzalez Bustos
Ivan Gonzalez Bustos 2017년 9월 20일
댓글: Ivan Gonzalez Bustos 2017년 9월 20일
I have a real sparse matrix, say A, of size 21660x21660. Here are my observations:
1. Running 0==max(max(abs(A-A'))) returns 1, so I could say that A is symmetric.
2. When I run issymmetric(A), it fails returning 0.
3. Trying issymmetric(A+A') also fails returning 0.
4. Trying issymmetric(full(A)) also fails returning 0.
5. The previous did not fail with a random symmetric sparse matrix of the same size.
I'm shocked by number 3. Any thoughts? I'm using version 2016a.
  댓글 수: 1
Ivan Gonzalez Bustos
Ivan Gonzalez Bustos 2017년 9월 20일
Sorry! uh... found some NaNs in my matrix! I'm going to leave this here in case someone is as stupid as I am.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Sparse Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by