| 350 | |
| 351 | template <typename Element, size_t Rank> |
| 352 | void MultiArray<Element, Rank>::copy(MultiArray const& source) { |
| 353 | IndexArray max; |
| 354 | for (size_t i = 0; i < Rank; ++i) |
| 355 | max[i] = std::min(size(i), source.size(i)); |
| 356 | |
| 357 | copy(source, IndexArray::filled(0), max, IndexArray::filled(0)); |
| 358 | } |
| 359 | |
| 360 | template <typename Element, size_t Rank> |
| 361 | void MultiArray<Element, Rank>::copy(MultiArray const& source, IndexArray const& sourceMin, IndexArray const& sourceMax, IndexArray const& targetMin) { |