2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-19 14:52:17 +00:00

Common initialize

[SVN r27664]
This commit is contained in:
Michael Stevens
2005-03-15 10:03:56 +00:00
parent 13268f0941
commit ef2613ca56
17 changed files with 92 additions and 247 deletions

View File

@@ -25,7 +25,7 @@ struct test_my_matrix_vector {
void test_with (VP &v1, VP &v2, MP &m1) const {
{
// Rows and columns
initialize_matrix (m1, ublas::lower_tag ());
initialize_matrix (m1);
for (int i = 0; i < N; ++ i) {
v2 = ublas::row (m1, i);
std::cout << "row (m, " << i << ") = " << v2 << std::endl;
@@ -44,7 +44,7 @@ struct test_my_matrix_vector {
std::cout << "outer_prod (v1, v2) = " << m1 << std::endl;
// Matrix vector product
initialize_matrix (m1, ublas::lower_tag ());
initialize_matrix (m1);
initialize_vector (v1);
v2 = ublas::prod (m1, v1);
std::cout << "prod (m1, v1) = " << v2 << std::endl;