File: mwrite.m

package info (click to toggle)
suitesparse 1%3A7.11.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 258,172 kB
  • sloc: ansic: 1,153,566; cpp: 48,145; makefile: 4,997; fortran: 2,087; java: 1,826; sh: 1,113; ruby: 725; python: 676; asm: 371; sed: 166; awk: 44
file content (24 lines) | stat: -rw-r--r-- 943 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function mtype = mwrite (filename, A, Z, comments_filename)           %#ok
%MWRITE write a matrix to a file in Matrix Market form.
%
% Example:
%   mtype = mwrite (filename, A, Z, comments_filename)
%
% A can be sparse or full.
%
% If present and non-empty, A and Z must have the same dimension.  Z
% contains the explicit zero entries in the matrix (which MATLAB drops).
% The entries of Z appear as explicit zeros in the output file.  Z is
% optional.  If it is an empty matrix it is ignored.  Z must be sparse or
% empty, if present.  It is ignored if A is full.
%
% filename is the name of the output file.  comments_filename is the file
% whose contents are include after the Matrix Market header and before
% the first data line.  Ignored if an empty string or not present.
%
% See also mread.

 % Copyright 2006-2023, Timothy A. Davis, All Rights Reserved.
 % SPDX-License-Identifier: GPL-2.0+

error ('mwrite mexFunction not found') ;