try next fix reg last com
This commit is contained in:
parent
ad16ee4398
commit
f82cba0c2f
2 changed files with 5 additions and 5 deletions
|
@ -98,13 +98,13 @@ namespace MultiArrayTools
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, class OperationClass>
|
template <typename T, class OperationClass>
|
||||||
template <template <class> class AOp, class... Indices>
|
template <class... Indices>
|
||||||
auto OperationBase<T,OperationClass>::oto(const std::shared_ptr<Indices>&... inds) const
|
auto OperationBase<T,OperationClass>::addto(const std::shared_ptr<Indices>&... inds) const
|
||||||
-> MultiArray<T,typename Indices::RangeType...>
|
-> MultiArray<T,typename Indices::RangeType...>
|
||||||
{
|
{
|
||||||
MultiArray<T,typename Indices::RangeType...> out(inds->range()...,
|
MultiArray<T,typename Indices::RangeType...> out(inds->range()...,
|
||||||
static_cast<T>(0));
|
static_cast<T>(0));
|
||||||
AOp<decltype(out(inds...)),decltype(THIS())>::selfApply(out(inds...), THIS());
|
out(inds...) += THIS();
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,8 +69,8 @@ namespace MultiArrayTools
|
||||||
auto to(const std::shared_ptr<Indices>&... inds) const
|
auto to(const std::shared_ptr<Indices>&... inds) const
|
||||||
-> MultiArray<T,typename Indices::RangeType...>;
|
-> MultiArray<T,typename Indices::RangeType...>;
|
||||||
|
|
||||||
template <template <class> class AOp, class... Indices>
|
template <class... Indices>
|
||||||
auto oto(const std::shared_ptr<Indices>&... inds) const
|
auto addto(const std::shared_ptr<Indices>&... inds) const
|
||||||
-> MultiArray<T,typename Indices::RangeType...>;
|
-> MultiArray<T,typename Indices::RangeType...>;
|
||||||
|
|
||||||
template <typename R, class... Args> // Args = Operation Classes
|
template <typename R, class... Args> // Args = Operation Classes
|
||||||
|
|
Loading…
Reference in a new issue