MatrixMarket (.mtx) File Format
MatrixMarket file format
Description
Examples
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.
Import a 100x100 Hilbert matrix in Matrix Market format.
H≔Import⁡example/hilbert100.mtx,base=datadir
H≔1.0.5000000000000000.3333333333000000.2500000000000000.2000000000000000.1666666667000000.1428571429000000.1250000000000000.1111111111000000.100000000000000…0.5000000000000000.3333333333000000.2500000000000000.2000000000000000.1666666667000000.1428571429000000.1250000000000000.1111111111000000.1000000000000000.0909090909100000…0.3333333333000000.2500000000000000.2000000000000000.1666666667000000.1428571429000000.1250000000000000.1111111111000000.1000000000000000.09090909091000000.0833333333300000…0.2500000000000000.2000000000000000.1666666667000000.1428571429000000.1250000000000000.1111111111000000.1000000000000000.09090909091000000.08333333333000000.0769230769200000…0.2000000000000000.1666666667000000.1428571429000000.1250000000000000.1111111111000000.1000000000000000.09090909091000000.08333333333000000.07692307692000000.0714285714300000…0.1666666667000000.1428571429000000.1250000000000000.1111111111000000.1000000000000000.09090909091000000.08333333333000000.07692307692000000.07142857143000000.0666666666700000…0.1428571429000000.1250000000000000.1111111111000000.1000000000000000.09090909091000000.08333333333000000.07692307692000000.07142857143000000.06666666667000000.0625000000000000…0.1250000000000000.1111111111000000.1000000000000000.09090909091000000.08333333333000000.07692307692000000.07142857143000000.06666666667000000.06250000000000000.0588235294100000…0.1111111111000000.1000000000000000.09090909091000000.08333333333000000.07692307692000000.07142857143000000.06666666667000000.06250000000000000.05882352941000000.0555555555600000…0.1000000000000000.09090909091000000.08333333333000000.07692307692000000.07142857143000000.06666666667000000.06250000000000000.05882352941000000.05555555556000000.0526315789500000…⋮⋮⋮⋮⋮⋮⋮⋮⋮⋮100 × 100 Matrix
Export a random 100x100 matrix to the home directory of the current user
M≔LinearAlgebra:-RandomMatrix⁡100,datatype=float8:
Export⁡example.mtx,M,base=homedir
234927
See Also
ExportMatrix
Formats
ImportMatrix
Download Help Document
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル