Matrix Depot
Matrix Depot is an extensible test matrix collection for Julia. It gives access to a wealth of sample and test matrices and accompanying data:
- matrices generated locally, with arguments controlling the special case, and
- matrices downloaded from the SuiteSparse Matrix Collection (formerly University of Florida Matrix Collection) and the Matrix Market Collection.
Remote matrices and their metadata are cached on the local disk.
Installation
pkg> add MatrixDepotOn Windows, MinGW/MSYS or Cygwin is needed to use the SuiteSparse and Matrix Market interfaces.
Quick start
using MatrixDepot
A = matrixdepot("hilb", 10) # locally generated 10×10 Hilbert matrix
A = matrixdepot("HB/1138_bus") # named matrix of the SuiteSparse collection
A = matrixdepot(sp(1)) # same matrix by numerical id
md = mdopen("*/bfly") # matrix with extra data
A = md.A
co = md.coord
tx = md("Gname_10.txt")
mdinfo("gravity") # documentation of a matrix
md = mdopen("gravity", 10, false) # local problem with right-hand side and solution
A, b, x = md.A, md.b, md.x