| 32 | |
| 33 | template<class TDataType> |
| 34 | TensorAdaptor<TDataType>::TensorAdaptor( |
| 35 | ContainerPointerType pContainer, |
| 36 | typename NDData<TDataType>::Pointer pData, |
| 37 | const bool Copy) |
| 38 | { |
| 39 | if (!Copy) { |
| 40 | this->mpStorage = pData; |
| 41 | } else { |
| 42 | this->mpStorage = Kratos::make_shared<NDData<TDataType>>(pData->ViewData().data(), pData->Shape(), Copy); |
| 43 | } |
| 44 | this->mpContainer = pContainer; |
| 45 | } |
| 46 | |
| 47 | template<class TDataType> |
| 48 | TensorAdaptor<TDataType>::TensorAdaptor( |