Skip to content

Symmetric matrix are not recognized using fromMatrixMarket #295

@LsKoder

Description

@LsKoder

There is any reason for this part of code?

String symmetry = header.nextToken();
if (!symmetry.equals("general")) {
    throw new IllegalArgumentException("Unknown symmetry type: " + symmetry + ".");
}

It generates this error, loading the following matrix:
https://sparse.tamu.edu/Janna/Flan_1565

Exception in thread "main" java.lang.IllegalArgumentException: Unknown symmetry type: symmetric.
	at org.la4j.Matrix.fromMatrixMarket(Matrix.java:232)
	at org.la4j.matrix.SparseMatrix.fromMatrixMarket(SparseMatrix.java:134)
	at Main.main(Main.java:22)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions