// (C) Copyright 2008-2009 SDML (www.sdml.info) // // Use, modification and distribution is subject to 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 std::cout; using std::setw; using namespace origin::matrix; int main() { { triangular_dynarray x(5, 1); x(0, 3) = 2; cout << x.rows() << " x " << x.columns() << " --> " << x.size() << "\n"; cout << x << "--------------\n"; } { triangular_dynarray x(5, 0, const_accessor(1)); cout << setw(1) << x << "--------------\n"; } { triangular_dynarray> x(5, 1); x(0, 3) = 2; cout << x.rows() << " x " << x.columns() << " --> " << x.size() << "\n"; cout << x << "--------------\n"; } return 0; }