12#ifndef ARCANE_UTILS_IMATHFUNCTOR_H
13#define ARCANE_UTILS_IMATHFUNCTOR_H
31template <
typename Arg1,
typename Arg2,
typename ReturnType>
42 virtual ReturnType
apply(Arg1 a1, Arg2 a2) = 0;
48 result[i] =
apply(a1[i], a2[i]);
Arcane configuration file.
Modifiable view of an array of type T.
constexpr Integer size() const noexcept
Returns the size of the array.
Constant view of an array of type T.
Interface of a binary mathematical function.
virtual void apply(ConstArrayView< Arg1 > a1, ConstArrayView< Arg2 > a2, ArrayView< ReturnType > result)
Executes the associated method.
virtual ~IBinaryMathFunctor()
Releases resources.
virtual ReturnType apply(Arg1 a1, Arg2 a2)=0
Executes the associated method.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.