// Copyright 2008 Gunter Winkler // Thanks to Tiago Requeijo for providing this test // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include #include #include #include using namespace std; namespace ublas = boost::numeric::ublas; int main() { int sz = 4; ublas::symmetric_matrix UpCol (sz, sz); ublas::symmetric_matrix UpRow (sz, sz); ublas::symmetric_matrix LoCol (sz, sz); ublas::symmetric_matrix LoRow (sz, sz); ublas::triangular_matrix TrUpCol (sz, sz); ublas::triangular_matrix TrUpRow (sz, sz); ublas::triangular_matrix TrLoCol (sz, sz); ublas::triangular_matrix TrLoRow (sz, sz); for(int i=0; i