-
Notifications
You must be signed in to change notification settings - Fork 57
/
mm_io.html
356 lines (323 loc) · 10.1 KB
/
mm_io.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
<html>
<head>
<title>
MM_IO - Matrix Market - Read and Write Utilities
</title>
</head>
<body bgcolor="#EEEEEE" link="#CC0000" alink="#FF3300" vlink="#000055">
<h1 align = "center">
MM_IO <br> Matrix Market <br> Read and Write Utilities
</h1>
<hr>
<p>
<b>MM_IO</b>
is a MATLAB library which
reads and writes files in the Matrix Market (MM) file format.
</p>
<h3 align = "center">
Licensing:
</h3>
<p>
The computer code and data files described and made available on this web page
are distributed under
<a href = "../../txt/gnu_lgpl.txt">the GNU LGPL license.</a>
</p>
<h3 align = "center">
Languages:
</h3>
<p>
<b>MM_IO</b> is available in
<a href = "../../c_src/mm_io/mm_io.html">a C version</a> and
<a href = "../../f77_src/mm_io/mm_io.html">a FORTRAN77 version</a> and
<a href = "../../f_src/mm_io/mm_io.html">a FORTRAN90 version</a> and
<a href = "../../m_src/mm_io/mm_io.html">a MATLAB version</a>.
</p>
<h3 align = "center">
Related Data and Programs:
</h3>
<p>
<a href = "../../m_src/cc_io/cc_io.html">
CC_IO</a>,
a MATLAB library which
reads and writes sparse linear systems
stored in the Compressed Column (CC) format.
</p>
<p>
<a href = "../../m_src/dlap_io/dlap_io.html">
DLAP_IO</a>,
a MATLAB library which
reads and writes DLAP sparse matrix files;
</p>
<p>
<a href = "../../m_src/hb_io/hb_io.html">
HB_IO</a>,
a MATLAB library which
reads and writes
sparse matrices stored in the Harwell-Boeing format.
</p>
<p>
<a href = "../../data/mm/mm.html">
MM<a>,
a data directory which
contains a description and
examples of the Matrix Market format for storing matrices.
</p>
<p>
<a href = "../../m_src/mm_to_hb/mm_to_hb.html">
MM_TO_HB</a>,
a MATLAB program which
reads the sparse matrix information from a Matrix Market (MM) file
and writes a corresponding HB Harwell Boeing file.
</p>
<p>
<a href = "../../m_src/mm_to_msm/mm_to_msm.html">
MM_TO_MSM</a>,
a MATLAB program which
reads a Matrix Market file defining a sparse matrix, and creates
a corresponding MATLAB sparse matrix data structure.
</p>
<p>
<a href = "../../m_src/mm_to_st/mm_to_st.html">
MM_TO_ST</a>,
a MATLAB program which
reads the sparse matrix information from an MM Matrix Market file
and writes a corresponding ST Sparse Triplet file.
</p>
<p>
<a href = "../../m_src/msm_to_mm/msm_to_mm.html">
MSM_TO_MM</a>,
a MATLAB program which
writes a MATLAB sparse matrix to a <a href = "../../data/mm/mm.html">
Matrix Market</a> file;
</p>
<p>
<a href = "../../m_src/st_to_mm/st_to_mm.html">
ST_TO_MM</a>,
a MATLAB program which
converts a sparse matrix file from ST format to
MM format (Matrix Market format);
</p>
<p>
<a href = "../../m_src/test_mat/test_mat.html">
TEST_MAT</a>,
a MATLAB library which
defines various test matrices.
</p>
<h3 align = "center">
Reference:
</h3>
<p>
<ol>
<li>
<a href = "http://math.nist.gov/MatrixMarket/">
http://math.nist.gov/MatrixMarket/</a>
the Matrix Market web site.
</li>
<li>
Ronald Boisvert, Roldan Pozo, Karin Remington,<br>
The Matrix Market Exchange Formats: Initial Design,<br>
National Institute of Standards and Technology,<br>
NISTIR 5935, December 1996,<br>
Available online at
<a href = "../../pdf/mm_format.pdf">
../../pdf/mm_format.pdf</a>
</li>
</ol>
</p>
<h3 align = "center">
Source Code:
</h3>
<p>
<ul>
<li>
<a href = "ch_cap.m">ch_cap.m</a>
capitalizes a single character.
</li>
<li>
<a href = "mm_comment_print.m">mm_comment_print.m</a>
prints a comment line from a Matrix Market file.
</li>
<li>
<a href = "mm_comment_write.m">mm_comment_write.m</a>
writes a comment line to a Matrix Market file.
</li>
<li>
<a href = "mm_file_read.m">mm_file_read.m</a>
reads an entire Matrix Market file.
</li>
<li>
<a href = "mm_file_write.m">mm_file_write.m</a>
writes an entire Matrix Market file.
</li>
<li>
<a href = "mm_header_check.m">mm_header_check.m</a>
checks the header information of a Matrix Market file.
</li>
<li>
<a href = "mm_header_print.m">mm_header_print.m</a>
prints header information from a Matrix Market file.
</li>
<li>
<a href = "mm_header_read.m">mm_header_read.m</a>
reads the header information from a Matrix Market file.
</li>
<li>
<a href = "mm_header_write.m">mm_header_write.m</a>
writes the header information to a Matrix Market file.
</li>
<li>
<a href = "mm_nnz_set.m">mm_nnz_set.m</a>
sets the value of NNZ in certain cases.
</li>
<li>
<a href = "mm_size_print.m">mm_size_print.m</a>
prints size information from a Matrix Market file.
</li>
<li>
<a href = "mm_size_read_file.m">mm_size_read_file.m</a>
reads the size information from a Matrix Market file.
</li>
<li>
<a href = "mm_size_read_string.m">mm_size_read_string.m</a>
reads the size information from a string that has been read
from a Matrix Market file.
</li>
<li>
<a href = "mm_size_write.m">mm_size_write.m</a>
writes the size information to a Matrix Market file.
</li>
<li>
<a href = "mm_values_print.m">mm_values_print.m</a>
prints the matrix value information from a Matrix Market file.
</li>
<li>
<a href = "mm_values_print_some.m">mm_values_print_some.m</a>
prints some of the matrix value information from a Matrix Market file.
</li>
<li>
<a href = "mm_values_read.m">mm_values_read.m</a>
reads the matrix value information from a Matrix Market file.
</li>
<li>
<a href = "mm_values_write.m">mm_values_write.m</a>
writes the size information to a Matrix Market file.
</li>
<li>
<a href = "r82_to_c8.m">r8_to_c8.m</a>
constructs a C8 from two R8's.
</li>
<li>
<a href = "s_eqi.m">s_eqi.m</a>
is TRUE if two strings are equal, ignoring case and trailing blanks.
</li>
<li>
<a href = "s_len_trim.m">s_len_trim.m</a>
returns the length of a string to the last nonblank.
</li>
<li>
<a href = "s_neqi.m">s_neqi.m</a>
is TRUE if two strings are not equal, ignoring case and trailing blanks.
</li>
<li>
<a href = "timestamp.m">timestamp.m</a>
prints the YMDHMS date as a timestamp.
</li>
</ul>
</p>
<h3 align = "center">
Examples and Tests:
</h3>
<p>
<ul>
<li>
<a href = "mm_io_test.m">mm_io_test.m</a>,
runs all the tests.
</li>
<li>
<a href = "mm_io_test01.m">mm_io_test01.m</a>,
tests MM_HEADER_WRITE.
</li>
<li>
<a href = "mm_io_test01.mm">mm_io_test01.mm</a>,
the partial matrix file created by test #1.
</li>
<li>
<a href = "mm_io_test02.m">mm_io_test02.m</a>,
tests MM_HEADER_READ.
</li>
<li>
<a href = "mm_io_test03.m">mm_io_test03.m</a>,
tests MM_COMMENT_WRITE.
</li>
<li>
<a href = "mm_io_test03.mm">mm_io_test03.mm</a>,
the partial matrix file created by test #3.
</li>
<li>
<a href = "mm_io_test04.m">mm_io_test04.m</a>,
tests MM_COMMENT_READ.
</li>
<li>
<a href = "mm_io_test05.m">mm_io_test05.m</a>,
tests MM_SIZE_WRITE.
</li>
<li>
<a href = "mm_io_test05.mm">mm_io_test05.mm</a>,
the partial matrix file created by test #5.
</li>
<li>
<a href = "mm_io_test06.m">mm_io_test06.m</a>,
tests MM_SIZE_READ_FILE or MM_SIZE_READ_STRING.
</li>
<li>
<a href = "mm_io_test07.m">mm_io_test07.m</a>,
tests MM_VALUES_WRITE.
</li>
<li>
<a href = "mm_io_test07.mm">mm_io_test07.mm</a>,
the matrix file created by test #7.
</li>
<li>
<a href = "mm_io_test08.m">mm_io_test08.m</a>,
tests MM_VALUES_READ.
</li>
<li>
<a href = "mm_io_test09.m">mm_io_test09.m</a>,
tests MM_FILE_WRITE.
</li>
<li>
<a href = "mm_io_test09.mm">mm_io_test09.mm</a>,
the matrix file created by test #9.
</li>
<li>
<a href = "mm_io_test10.m">mm_io_test10.m</a>,
tests MM_FILE_READ.
</li>
<li>
<a href = "mm_io_test_output.txt">mm_io_test_output.txt</a>,
the output file.
</li>
<li>
<a href = "matrix_05_05_crg.txt">matrix_05_05_crg.txt</a>,
a 5 by 5 matrix in COORDINATE REAL GENERAL form read
by some routines, and written by others.
</li>
<li>
<a href = "wathen_29_29_adg.txt">wathen_29_28_adg.txt</a>,
a 29 by 29 matrix in ARRAY DOUBLE GENERAL form written by
one of the test routines.
</li>
</ul>
</p>
<p>
You can go up one level to <a href = "../m_src.html">
the MATLAB source codes</a>.
</p>
<hr>
<i>
Last revised on 31 January 2014.
</i>
<!-- John Burkardt -->
</body>
<!-- Initial HTML skeleton created by HTMLINDEX. -->
</html>