| 671 | } |
| 672 | |
| 673 | void PlaceholderCoefficientFunction::Set(shared_ptr<CoefficientFunction> _cf) |
| 674 | { |
| 675 | if(Dimensions().Size() != _cf->Dimensions().Size()) |
| 676 | throw Exception("Dimensions of function in PlaceholderCF must not change!"); |
| 677 | for(auto i : Range(Dimensions())) |
| 678 | if(Dimensions()[i] != _cf->Dimensions()[i]) |
| 679 | throw Exception("Dimensions of function in PlaceholderCF must not change!"); |
| 680 | cf = _cf; |
| 681 | is_complex = cf->IsComplex(); |
| 682 | } |
| 683 | |
| 684 | |
| 685 |