go get -u github.com/wamuir/matrix-market
var m market.COO
file, err := os.Open("sparse.mtx")
if err != nil {
log.Fatal(err)
}
defer file.Close()
_, err := m.UnmarshalTextFrom(file)
if err != nil {
log.Fatal(err)
}
var c *sparse.COO = m.ToCOO() // github.com/james-bowman/sparse
Object | Format | Field | Symmetry | Concrete Type | Storage |
---|---|---|---|---|---|
Matrix | Coordinate | Real | General | market.COO | sparse.COO |
Matrix | Coordinate | Real | Skew-Symmetric | market.COO | sparse.COO |
Matrix | Coordinate | Real | Symmetric | market.COO | sparse.COO |
Object | Format | Field | Symmetry | Concrete Type | Storage |
---|---|---|---|---|---|
Matrix | Coordinate | Integer | General | market.COO | sparse.COO |
Matrix | Coordinate | Integer | Skew-Symmetric | market.COO | sparse.COO |
Matrix | Coordinate | Integer | Symmetric | market.COO | sparse.COO |
Object | Format | Field | Symmetry | Concrete Type | Storage |
---|---|---|---|---|---|
Matrix | Coordinate | Complex | General | market.CDense | mat.CDense |
Matrix | Coordinate | Complex | Hermitian | market.CDense | mat.CDense |
Matrix | Coordinate | Complex | Skew-Symmetric | market.CDense | mat.CDense |
Matrix | Coordinate | Complex | Symmetric | market.CDense | mat.CDense |
Object | Format | Field | Symmetry | Concrete Type | Storage |
---|---|---|---|---|---|
Matrix | Coordinate | Pattern | General | market.COO | sparse.COO |
Matrix | Coordinate | Pattern | Symmetric | market.COO | sparse.COO |
Object | Format | Field | Symmetry | Concrete Type | Storage |
---|---|---|---|---|---|
Matrix | Array | Real | General | market.Dense | mat.Dense |
Matrix | Array | Real | Skew-Symmetric | market.Dense | mat.Dense |
Matrix | Array | Real | Symmetric | market.Dense | mat.Dense |
Object | Format | Field | Symmetry | Concrete Type | Storage |
---|---|---|---|---|---|
Matrix | Array | Integer | General | market.Dense | mat.Dense |
Matrix | Array | Integer | Skew-Symmetric | market.Dense | mat.Dense |
Matrix | Array | Integer | Symmetric | market.Dense | mat.Dense |
Object | Format | Field | Symmetry | Concrete Type | Storage |
---|---|---|---|---|---|
Matrix | Array | Complex | General | market.CDense | mat.CDense |
Matrix | Array | Complex | Hermitian | market.CDense | mat.CDense |
Matrix | Array | Complex | Skew-Symmetric | market.CDense | mat.CDense |
Matrix | Array | Complex | Symmetric | market.CDense | mat.CDense |