MatrixMarket (.mtx) File Format - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Input and Output : File Formats : Formats/MatrixMarket

MatrixMarket (.mtx) File Format

MatrixMarket file format

 

Description

Examples

Description

• 

MatrixMarket is a format for the storage of dense or sparse numeric matrix data.

• 

This open format was created and is used by the National Institute of Standards and Technology (NIST).

• 

The commands Import, Export, ImportMatrix, and ExportMatrix can read and write to the MatrixMarket format.

Examples

Import a 100x100 Hilbert matrix in Matrix Market format.

hilbertFileTools:-JoinPathexample/hilbert100.mtx,base=datadir

C:\Program Files\Maple 2016\data\example\hilbert100.mtx

(1)

Importhilbert

100 x 100 MatrixData Type: float8Storage: rectangularOrder: Fortran_order

(2)

Export a random 100x100 matrix to the home directory of the current user

mtxFileFileTools:-JoinPathexample.mtx,base=homedir

/Users/JohnSmith/example.mtx

(3)

MLinearAlgebra:-RandomMatrix100,datatype=float[8]:

ExportMatrixmtxFile,M

234927

(4)

See Also

ExportMatrix

Formats

ImportMatrix

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam