mat_arr.html
来自「矩阵算法库newmat10.tar.gz的帮助文件」· HTML 代码 · 共 76 行
HTML
76 行
<HTML><HEAD><TITLE>Newmat09 - matrix vs array</TITLE></HEAD><BODY><H2>Matrix vs array library</H2><A HREF="question.html"> next</A> -<A HREF="question.html"> skip</A> -<A HREF="design.html"> up</A> -<A HREF="index.html"> start</A><P>The <I>newmat</I> library is for the manipulation of matrices,including the standard operations such as multiplication asunderstood by numerical analysts, engineers and mathematicians.<P>A matrix is a two dimensional array of numbers.However, very special operations such as matrix multiplicationare defined specifically for matrices. This means that a<I>matrix</I> library, as I understand the term, is differentfrom a general <I>array</I> library.<P>I see a matrix package as providing the following<BR>1. Evaluation of matrix expressions in a form familiar toscientists and engineers. For example <TT>A = B * (C + D.t());</TT>.In particular <TT>*</TT> means matrix multiply.<BR>2. Access to the elements of a matrix;<BR>3. Access to submatrices;<BR>4. Common elementary matrix functions such as determinant andtrace;<BR>5. A platform for developing advanced matrix functions such aseigen-value analysis;<BR>6. Good efficiency and storage management;<BR>7. Graceful exit from errors.<BR>It may also provide<BR>8. A variety of types of elements (eg real and complex);<BR>9. A variety of types of matrices (eg rectangular andsymmetric).<P>In contrast an array package should provide<BR>1'. Arrays can be copied with a single instruction; may havesome arithmetic operations for elementwise combination of arrays,say <TT>+</TT>, <TT>-</TT>, <TT>*</TT>, <TT>/</TT>, it may provide matrixmultiplication as a function;<BR>2'. High speed access to elements directly and perhaps with iterators;<BR>3'. Access to subarrays and rows (and columns?);<BR>6'. Good efficiency and storage management;<BR>7'. Graceful exit from errors;<BR>8'. A wide variety of types of elements (eg int, float, double, string etc);<BR>9'. One, two and three dimensional arrays, at least, withstarting points of the indices set by user.<P>It may be possible to amalgamate these two sets ofrequirements to some extent. However <I>newmat</I> is definitelyoriented towards the first set.<P><A HREF="question.html"> next</A> -<A HREF="question.html"> skip</A> -<A HREF="design.html"> up</A> -<A HREF="index.html"> start</A></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?