Skip to content
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

Read of skew-symmetric matrix only shows lower triangle #39

Closed
pkroenert opened this issue Aug 17, 2020 · 1 comment · Fixed by #40
Closed

Read of skew-symmetric matrix only shows lower triangle #39

pkroenert opened this issue Aug 17, 2020 · 1 comment · Fixed by #40

Comments

@pkroenert
Copy link

Hi there,
I was not able to read back a complex skew-symmetric matrix.
Therefore, I think there should be a -1 instead of a -11.

# Hack to represent skew-symmetric matrix as an ordinary matrix with duplicated elements function skewsymmetric!(M::AbstractMatrix) m,n = size(M) m == n || throw(DimensionMismatch()) return M .- transpose(tril(M, -11)) end

tkonolige added a commit to tkonolige/MatrixMarket.jl that referenced this issue Aug 19, 2020
@tkonolige
Copy link
Collaborator

Definitely should be -1. Thanks for noticing this.

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 a pull request may close this issue.

2 participants