#include <iostream>
#include <cla3p/dense.hpp>
int main()
{
for(cla3p::uint_t j = 0, icnt = 0; j < 5; j++)
for(cla3p::uint_t i = 0; i < 5; i++)
A(i,j) = icnt++;
std::cout << "A:\n" << A << "\n";
std::cout << "Xc:\n" << Xc;
std::cout << "Xr:\n" << Xr;
std::cout <<
"Xg:\n" << Xg.
get() <<
"\n";
Xr = -1;
std::cout << "A:\n" << A;
Xc = -2;
std::cout << "A:\n" << A;
return 0;
}
Immutable object wrapper.
Definition guard.hpp:37
const T_Object & get() const
Retrieves the guarded object.
Definition guard.hpp:96
XxVector< T_Scalar > rcolumn(int_t j)
Extract a column as a reference.
XxVector< T_Scalar > column(int_t j) const
Extract a column as a new vector.
XxMatrix< real_t > RdMatrix
Double precision real matrix.
Definition dense.hpp:55
XxVector< real_t > RdVector
Double precision real vector.
Definition dense.hpp:31