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
|
<HTML>
<HEAD>
<TITLE>TSP (libtsp/MA) - MAfPrint</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>MAfPrint</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
void MAfPrint (FILE *fp, const char Header[], const float *A[], int Nrow,
int Ncol)
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Print a float matrix along with a header text
</DL>
<H4>Description</H4>
This routine prints the values of a float matrix along with an identifying
header. No printing occurs if the file pointer is NULL. The values for each
row of the matrix are printed 5 to a line, with each row starting on a new
line.
<H4>Parameters</H4>
<DL>
<DT>
-> FILE *fp
<DD>
File pointer for the output. If fp is NULL, no printing occurs.
<DT>
-> const char Header[]
<DD>
Character string for the header. This routine supplies a terminating
newline. The header line is omitted if the header string is empty.
<DT>
-> const float *A[]
<DD>
Pointer to an array of row pointers. A is interpreted as an N by M
matrix. Note that with ANSI C, if the actual parameter is not declared
to have the const attribute, an explicit cast to (const float **) is
required.
<DT>
-> int Nrow
<DD>
Number of rows in the matrix
<DT>
-> int Ncol
<DD>
Number of elements in each row (number of columns)
</DL>
<H4>Author / revision</H4>
P. Kabal Copyright (C) 1997
/ Revision 1.17 1997/10/14
<H4>See Also</H4>
<A HREF="MAdPrint.html">MAdPrint</A>,
<A HREF="MAiPrint.html">MAiPrint</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>
|