⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 blitz_1.html

📁 c++经典教材 Blitz++ v0.8
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC3"> Up </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC11"> &gt;&gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz.html#SEC_Top">Top</A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_toc.html#SEC_Contents">Contents</A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[Index]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_abt.html#SEC_About"> ? </A>]</TD></TR></TABLE><H3> 1.2.5 Metrowerks </H3><!--docid::SEC8::--><P>Metrowerks is sort-of supported; see the platforms web page and the mailinglists for more information.  Support for Metrowerks is no longer being actively maintained.</P><P><HR SIZE="6"><A NAME="SEC9"></A><TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0><TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC8"> &lt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC10"> &gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC10"> &lt;&lt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC3"> Up </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC11"> &gt;&gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz.html#SEC_Top">Top</A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_toc.html#SEC_Contents">Contents</A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[Index]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_abt.html#SEC_About"> ? </A>]</TD></TR></TABLE><H3> 1.2.6 Compaq cxx </H3><!--docid::SEC9::--><P>The Compaq C++ compiler version 6.x is supported.</P><P><HR SIZE="6"><A NAME="SEC10"></A><TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0><TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC9"> &lt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC11"> &gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC11"> &lt;&lt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC3"> Up </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC11"> &gt;&gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz.html#SEC_Top">Top</A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_toc.html#SEC_Contents">Contents</A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[Index]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_abt.html#SEC_About"> ? </A>]</TD></TR></TABLE><H3> 1.2.7 Cray T3E/Cray T90/Cray C90/Cray J90 </H3><!--docid::SEC10::--><P>As of Version 0.2-alpha-02 of Blitz++, Version 3.0.0.0 of the Cray C++compiler is supported (well, tolerated anyway).  It seems to be based on anolder version of the EDG front end, so some kludges are required.  Itdoesn't support partial ordering of member templates, so slicing arraysrequires the workaround described in Section <A HREF="blitz_2.html#SEC49">2.4.4 Slicing</A>.  Portionsof the standard library are missing, such as <CODE>&#60;limits&#62;</CODE>,<CODE>&#60;complex&#62;</CODE>, and <CODE>&#60;set&#62;</CODE>.  This means you won't be able to usecomplex numbers (well, not the ISO/ANSI C++ versions anyway), numericinquiry functions, or fast traversal orders.</P><P>These compilation flags are recommended:</P><P><TABLE><tr><td>&nbsp;</td><td class=example><pre>-h instantiate=used</pre></td></tr></table></P><P>For optimization, you'll want:</P><P><TABLE><tr><td>&nbsp;</td><td class=example><pre>-O3 -h aggress</pre></td></tr></table></P><P>The ability of the Cray C++ compiler to optimize away temporary objects isdisappointing.  It's not able to optimize away expression templates overheador comma-delimited array initializers.  Please note that support for compilingBlitz++ under the Cray C++ compiler is no longer being actively maintained.</P><P><A NAME="download"></A><HR SIZE="6"><A NAME="SEC11"></A><TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0><TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC10"> &lt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC12"> &gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC12"> &lt;&lt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC1"> Up </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_2.html#SEC28"> &gt;&gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz.html#SEC_Top">Top</A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_toc.html#SEC_Contents">Contents</A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[Index]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_abt.html#SEC_About"> ? </A>]</TD></TR></TABLE><H2> 1.3 How to download Blitz++ </H2><!--docid::SEC11::--><P>To download the Blitz++ library, go to the Blitz++ download page, at<A HREF="http://oonumerics.org/blitz/download/">http://oonumerics.org/blitz/download/</A></P><P>But please read the section on supported platforms and compilers first.</P><P><A NAME="install"></A><HR SIZE="6"><A NAME="SEC12"></A><TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0><TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC11"> &lt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC13"> &gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC16"> &lt;&lt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC1"> Up </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC16"> &gt;&gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz.html#SEC_Top">Top</A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_toc.html#SEC_Contents">Contents</A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[Index]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_abt.html#SEC_About"> ? </A>]</TD></TR></TABLE><H2> 1.4 Installation and porting </H2><!--docid::SEC12::--><P><HR SIZE="6"><A NAME="SEC13"></A><TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0><TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC12"> &lt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC14"> &gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC16"> &lt;&lt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC12"> Up </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC16"> &gt;&gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz.html#SEC_Top">Top</A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_toc.html#SEC_Contents">Contents</A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[Index]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_abt.html#SEC_About"> ? </A>]</TD></TR></TABLE><H3> 1.4.1 Installation </H3><!--docid::SEC13::--><P><A NAME="IDX1"></A><A NAME="IDX2"></A><A NAME="IDX3"></A></P><P>Blitz++ uses <FONT SIZE="-1">GNU</FONT> Autoconf, which handles rewriting Makefiles for variousplatforms and compilers.  It has greatly simplified installation andporting.  Many thanks for John W. Eaton and Brendan Kehoe for their helpwith this.</P><P>To install blitz, unpack the <TT>`blitz-VERSION.tar.gz'</TT> file (it willinstall into a subdirectory <TT>`blitz-VERSION'</TT>).  For example:</P><P><TABLE><tr><td>&nbsp;</td><td class=example><pre>[tveldhui@n2001:~] 32: ls -l blitz*.gz-rw-r--r--   1 tveldhui users      480953 Jun 23 15:20 blitz-0.5.tar.gz[tveldhui@n2001:~] 33: gunzip blitz-0.5.tar.gz [tveldhui@n2001:~] 34: tar xvf blitz-0.5.tarblitz-0.5/CHANGELOGblitz-0.5/COPYINGblitz-0.5/INSTALLblitz-0.5/Makefile.inblitz-0.5/READMEblitz-0.5/THANKS  .  .</pre></td></tr></table></P><P>Then go into the main blitz directory, and type:</P><P><A NAME="IDX4"></A><TABLE><tr><td>&nbsp;</td><td class=example><pre>./configure CXX=[compiler]</pre></td></tr></table></P><P>where [compiler] is one of <CODE>xlc++</CODE>, <CODE>icpc</CODE>, <CODE>xlC</CODE>, <CODE>cxx</CODE>, <CODE>aCC</CODE>, <CODE>CC</CODE>, <CODE>g++</CODE>, <CODE>KCC</CODE>, <CODE>pgCC</CODE> or <CODE>FCC</CODE>.</P><P>You can also specify special command-line options for your compiler, usingthis syntax:</P><P><TABLE><tr><td>&nbsp;</td><td class=example><pre>./configure CXX=g++ CXXFLAGS="-ftemplate-depth-50"</pre></td></tr></table></P><P>If you are interested in benchmarking, you may want to use the option<CODE>--with-blas=...</CODE> to specify the path where the blas library is found.Run the configure script with the option <CODE>--help</CODE> to see all the available options.</P><P>Once the configure script is done, you can do any of these things:</P><P><DL COMPACT><DT><CODE>make lib</CODE><DD>Check the compiler and create <TT>`libblitz.a'</TT>.<P><DT><CODE>make check-testsuite</CODE><DD>Make the blitz library plus build and run the testsuite.<P><DT><CODE>make check-examples</CODE><DD>Make the blitz library plus build and run the examples.<P><DT><CODE>make check-benchmarks</CODE><DD>Make the blitz library plus build and run the benchmarks.<P><DT><CODE>make all</CODE><DD>Do all of the above.  This may take a <STRONG>long</STRONG> time.<P><DT><CODE>make install</CODE><DD>Build the blitz library and documentation and install, along with theblitz header files, in prefix directory.</DL><P>Building the benchmark programs requires both a Fortran 77 and Fortran 90compiler.</P><P><HR SIZE="6"><A NAME="SEC14"></A><TABLE CELLPADDING=1 CELLSPACING=1 BORDER=0><TR><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC13"> &lt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC15"> &gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC15"> &lt;&lt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC12"> Up </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz_1.html#SEC16"> &gt;&gt; </A>]</TD><TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT"> &nbsp; <TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="blitz.html#SEC_Top">Top</A>]</TD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -