📄 example.html
字号:
<HTML><HEAD><TITLE>Newmat09 - example</TITLE></HEAD><BODY><H2>Example</H2><A HREF="testing.html"> next</A> - <A HREF="testing.html"> skip</A> - <A HREF="starting.html"> up</A> - <A HREF="index.html"> start</A><P>An example is given in <TT>example.cpp</TT>. This gives a simple linearregression example using five different algorithms. The correct outputis given in <TT>example.txt</TT>. The program carries out a rough checkthat no memoryis left allocated on the heap when it terminates. Seethe section on <A HREF="testing.html">testing</A> for acomment on the reliability of this check and the use of the DO_FREE_CHECKoption.<P>I include a variety of make files. To compile the example use a command like<PRE> gmake example -f gnu.mak (Gnu G++) gmake example -f cc.mak (AT&T, HPUX, Sun) nmake example.exe -f ms_nt.mak (Microsoft Visual C++ 2.0) nmake example.exe -f ms.mak (Microsoft Visual C++ 1.51) make -f bc.mak example.exe (Borland C++ 4.5, 5) make -f bc32.mak example.exe (Borland C++ 4.5, 5, 32 bit) wmake example.exe -f watcom.mak (Watcom C++ 10A) wmake example.exe -f watco_nt.mak (Watcom C++ 10A, for win NT)</PRE>To compile all the example and test files use a command like<PRE> gmake -f gnu.mak (Gnu G++)</PRE><HR><B>The example uses io manipulators. It will not work with a compiler thatdoes not support the standard io manipulators.</B><HR><P>Other example files are <TT>nl_ex.cpp</TT> and <TT>garch.cpp</TT> for demonstratingthe non-linear fitting routines, <TT>sl_ex</TT> for demonstrating the solvefunction and <TT>test_exc</TT> for demonstrating the exceptions.<P><A HREF="testing.html"> next</A> - <A HREF="testing.html"> skip</A> - <A HREF="starting.html"> up</A> - <A HREF="index.html"> start</A><P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -