Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed Aug 20, 2023
1 parent e4aeb73 commit 705ba28
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions librapid/include/librapid/array/function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ namespace librapid {
static constexpr detail::LibRapidType type = detail::LibRapidType::ArrayFunction;
using Scalar = decltype(std::declval<Functor_>()(
std::declval<typename TypeInfo<std::decay_t<Args>>::Scalar>()...));
using Packet = typename TypeInfo<Scalar>::Packet;
using Backend = decltype(commonBackend<Args...>());
using ShapeType = detail::ShapeTypeHelper<typename TypeInfo<Args>::ShapeType...>::Type;

static constexpr bool allowVectorisation = checkAllowVectorisation<Args...>();

Expand Down Expand Up @@ -109,10 +111,9 @@ namespace librapid {
template<typename desc, typename Functor_, typename... Args>
class Function {
public:
using Type = Function<desc, Functor_, Args...>;
using Functor = Functor_;
using ShapeType =
detail::ShapeTypeHelper<typename typetraits::TypeInfo<Args>::ShapeType...>::Type;
using Type = Function<desc, Functor_, Args...>;
using Functor = Functor_;
using ShapeType = typename typetraits::TypeInfo<Type>::ShapeType;
using StrideType = ShapeType;
using Scalar = typename typetraits::TypeInfo<Type>::Scalar;
using Backend = typename typetraits::TypeInfo<Type>::Backend;
Expand Down

0 comments on commit 705ba28

Please sign in to comment.