Go to the documentation of this file.
6 #ifndef OutputMatlabSpace_hh
7 #define OutputMatlabSpace_hh
24 typedef pair<int, Real> PID;
25 typedef vector<PID> VPID;
26 typedef map<int, VPID> M_I_VPID;
28 M_I_VPID local_to_global;
33 for(uint i=0; i < T.n(); ++i) {
36 int global_idx = ctrl->idx;
38 for(uint j=0; j < size; ++j) {
40 int local_idx = d->idx;
43 local_to_global[local_idx].push_back(PID(global_idx, weight));
49 for(M_I_VPID::const_iterator it = local_to_global.begin();
50 it != local_to_global.end(); ++it)
54 const VPID& targets = it->second;
55 for(uint i=0; i < targets.size(); ++i)
57 os << it->first <<
" " << targets[i].first <<
" "
58 << targets[i].second <<
"; ";
93 os <<
"[" << std::endl;
94 for (
int i = 0; i < M; ++i) {
95 for (
int j = 0; j < N; ++j) {
97 os << ((j == N-1) ?
"" :
" ");
99 os << ((i == M-1) ?
"" :
"\n");
106 #endif // OutputMatlabSpace_hh
std::ostream & outputMatlab(std::ostream &os, const ElementMatrix< F > &em)
Function for output of ElementMatrix to Matlab.
const TMatrix::Data * data(uint i) const
Returns the ith entry of the data array.
const TMatrix::Control * control(uint i) const
Returns the ith entry of the control data array.
double Real
Type normally used for a floating point number.
Basic namespace for Concepts-2.