Skip to content

Updated square root computation for sparse matrices#51

Open
dv-fenix wants to merge 1 commit intoGaParmar:mainfrom
dv-fenix:sparse-matrix-sqrt-fix
Open

Updated square root computation for sparse matrices#51
dv-fenix wants to merge 1 commit intoGaParmar:mainfrom
dv-fenix:sparse-matrix-sqrt-fix

Conversation

@dv-fenix
Copy link
Copy Markdown

Replaced linalg.sqrtm with linalg.fractional_matrix_power to prevent numerical errors when computing the square root of sparse matrices. The previous method was causing very large complex values, especially when dealing with sparse matrices, leading to inaccuracies. The fractional_matrix_power method effectively resolves this issue, ensuring accurate computations without generating large complex values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant