Skip to content

Commit

Permalink
add condition for .mat matrix type #44
Browse files Browse the repository at this point in the history
  • Loading branch information
i-am-sijia committed Jun 16, 2021
1 parent 8f582db commit b41a663
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ else if (fileName.indexOf(".mtx") > 0 || fileName.indexOf(".MTX") > 0 ||
else if (fileName.indexOf(".omx") > 0 || fileName.indexOf(".OMX") > 0) {
type = MatrixType.OMX;
}
else if (fileName.indexOf(".mat") > 0 || fileName.indexOf(".MAT") > 0) {
type = MatrixType.TPPLUS;
}
else {
throw new RuntimeException("Could not determine type of matrix file, " + file.getAbsolutePath());
}
Expand Down

0 comments on commit b41a663

Please sign in to comment.