mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Tutorial page 4: add some text, diversify examples.
Use \verbinclude for output text to disable syntax highlighting. Give tables consistent look.
This commit is contained in:
@@ -30,7 +30,7 @@ which returns the addition of all the coefficients inside a given matrix or arra
|
||||
Example: \include tut_arithmetic_redux_basic.cpp
|
||||
</td>
|
||||
<td>
|
||||
Output: \include tut_arithmetic_redux_basic.out
|
||||
Output: \verbinclude tut_arithmetic_redux_basic.out
|
||||
</td></tr></table>
|
||||
|
||||
The \em trace of a matrix, as returned by the function \c trace(), is the sum of the diagonal coefficients and can also be computed as efficiently using <tt>a.diagonal().sum()</tt>, as we will see later on.
|
||||
|
||||
Reference in New Issue
Block a user