mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-22 03:42:19 +00:00
From Gunter: fixed <br> in <pre> text
svn path=/trunk/boost/libs/numeric/ublas/; revision=24463
This commit is contained in:
@@ -30,22 +30,22 @@ unit lower triangular. The storage of triangular matrices is
|
||||
packed.</p>
|
||||
<h4>Example</h4>
|
||||
<pre>
|
||||
#include <boost/numeric/ublas/triangular.hpp><br />
|
||||
#include <boost/numeric/ublas/io.hpp><br />
|
||||
<br />
|
||||
int main () {<br />
|
||||
using namespace boost::numeric::ublas;<br />
|
||||
triangular_matrix<double, lower> ml (3, 3);<br />
|
||||
for (unsigned i = 0; i < ml.size1 (); ++ i)<br />
|
||||
for (unsigned j = 0; j <= i; ++ j)<br />
|
||||
ml (i, j) = 3 * i + j;<br />
|
||||
std::cout << ml << std::endl;<br />
|
||||
triangular_matrix<double, upper> mu (3, 3);<br />
|
||||
for (unsigned i = 0; i < mu.size1 (); ++ i)<br />
|
||||
for (unsigned j = i; j < mu.size2 (); ++ j)<br />
|
||||
mu (i, j) = 3 * i + j;<br />
|
||||
std::cout << mu << std::endl;<br />
|
||||
}<br />
|
||||
#include <boost/numeric/ublas/triangular.hpp>
|
||||
#include <boost/numeric/ublas/io.hpp>
|
||||
|
||||
int main () {
|
||||
using namespace boost::numeric::ublas;
|
||||
triangular_matrix<double, lower> ml (3, 3);
|
||||
for (unsigned i = 0; i < ml.size1 (); ++ i)
|
||||
for (unsigned j = 0; j <= i; ++ j)
|
||||
ml (i, j) = 3 * i + j;
|
||||
std::cout << ml << std::endl;
|
||||
triangular_matrix<double, upper> mu (3, 3);
|
||||
for (unsigned i = 0; i < mu.size1 (); ++ i)
|
||||
for (unsigned j = i; j < mu.size2 (); ++ j)
|
||||
mu (i, j) = 3 * i + j;
|
||||
std::cout << mu << std::endl;
|
||||
}
|
||||
</pre>
|
||||
<h4>Definition</h4>
|
||||
<p>Defined in the header triangular.hpp.</p>
|
||||
|
||||
Reference in New Issue
Block a user