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

📄 entering.html

📁 矩阵算法库newmat10.tar.gz的帮助文件
💻 HTML
字号:
<HTML><HEAD><TITLE>Newmat09 - entering values</TITLE></HEAD><BODY><H2>Entering values</H2><A HREF="unary.html">  next</A> - <A HREF="unary.html">  skip</A> - <A HREF="refer.html">  up</A> - <A HREF="index.html">  start</A><P>You can load the elements of a matrix from an array:<PRE>    Matrix A(3,2);    Real a[] = { 11,12,21,22,31,33 };    A &lt;&lt; a;</PRE>This construction does not check that the numbers of elements matchcorrectly. This version of <TT>&lt;&lt;</TT> can be used withsubmatrices on the left hand side. It is not defined for band matrices.<P>Alternatively you can enter short lists using a sequence of numbersseparated by <TT>&lt;&lt;</TT> .<PRE>    Matrix A(3,2);    A &lt;&lt; 11 &lt;&lt; 12      &lt;&lt; 21 &lt;&lt; 22      &lt;&lt; 31 &lt;&lt; 32;</PRE>This does check for the correct total number of entries, although themessage for there being insufficient numbers in the list may be delayeduntil the end of the block or the next use of this construction. Thisdoes not work for band matrices or submatrices, or for long lists. Alsotry to restrict its use to numbers. You can include expressions, butthese must not call a function which includes the same construction.<P>Remember that matrices are stored by rows and thatsymmetric matrices are stored as lower triangular matriceswhen using these methods to enter data. <P><A HREF="unary.html">  next</A> - <A HREF="unary.html">  skip</A> - <A HREF="refer.html">  up</A> - <A HREF="index.html">  start</A><P></BODY></HTML>

⌨️ 快捷键说明

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