Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliasparse/matrixmarket.jl
Julia package to read MatrixMarket file format
https://github.com/juliasparse/matrixmarket.jl
Last synced: about 2 months ago
JSON representation
Julia package to read MatrixMarket file format
- Host: GitHub
- URL: https://github.com/juliasparse/matrixmarket.jl
- Owner: JuliaSparse
- License: other
- Created: 2013-10-27T15:16:02.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-07-04T16:51:52.000Z (6 months ago)
- Last Synced: 2024-07-23T06:04:50.051Z (5 months ago)
- Language: Julia
- Homepage:
- Size: 66.4 KB
- Stars: 26
- Watchers: 9
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MatrixMarket
[![Build Status](https://travis-ci.org/JuliaSparse/MatrixMarket.jl.svg?branch=master)](https://travis-ci.org/JuliaSparse/MatrixMarket.jl)
Package to read/write matrices from/to files in the [Matrix Market native exchange
format](http://math.nist.gov/MatrixMarket/formats.html#MMformat).The [Matrix Market](http://math.nist.gov/MatrixMarket/) is a NIST repository of
"test data for use in comparative studies of algorithms for numerical linear
algebra, featuring nearly 500 sparse matrices from a variety of applications,
as well as matrix generation tools and services." Over time, the [Matrix Market's
native exchange format](http://math.nist.gov/MatrixMarket/formats.html#MMformat)
has become one of the _de facto_ standard file formats for exchanging matrix
data.## Usage
### Read
using MatrixMarket
M = MatrixMarket.mmread("myfile.mtx")`M` will be a sparse or dense matrix depending on whether the file contains a matrix
in coordinate format or array format. The specific type of `M` may be `Symmetric` or
`Hermitian` depending on the symmetry information contained in the file header.MatrixMarket.mmread("myfile.mtx", true)
Returns raw data from the file header. Does not read in the actual matrix elements.
### Write
MatrixMarket.mmwrite("myfile.mtx", M)
`M` has to be a sparse matrix.