| 103 | } |
| 104 | |
| 105 | void CoefficientFunction :: PrintReportRec (ostream & ost, int level) const |
| 106 | { |
| 107 | ost << string(2*level, ' '); |
| 108 | // for (int i = 0; i < 2*level; i++) |
| 109 | // ost << ' '; |
| 110 | ost << "coef " << GetDescription() << "," |
| 111 | << (IsComplex() ? " complex" : " real"); |
| 112 | if (Dimensions().Size() == 1) |
| 113 | ost << ", dim=" << Dimension(); |
| 114 | else if (Dimensions().Size() >= 2) |
| 115 | { |
| 116 | ost << ", dims = " << Dimensions()[0]; // << " x " << Dimensions()[1]; |
| 117 | for (int j = 1; j < Dimensions().Size(); j++) |
| 118 | ost << " x " << Dimensions()[j]; |
| 119 | } |
| 120 | ost << endl; |
| 121 | |
| 122 | Array<shared_ptr<CoefficientFunction>> input = InputCoefficientFunctions(); |
| 123 | for (int i = 0; i < input.Size(); i++) |
| 124 | if (input[i]) |
| 125 | input[i] -> PrintReportRec (ost, level+1); |
| 126 | else |
| 127 | ost << string(2*level+2, ' ') << "none" << endl; |
| 128 | } |
| 129 | |
| 130 | string CoefficientFunction :: GetDescription () const |
| 131 | { |
nothing calls this directly
no test coverage detected