23 namespace JPP {
using namespace JMATH; }
25 namespace JGEOMETRY3D {
class JQuaternion3D; }
42 inline T pow(
const T&
x,
const double y);
98 inline T pow(
const T&
x,
const double y)
109 template<
class JFirst_t,
class JSecond_t = JNullType>
157 return T(
object).negate();
170 return object.add(value);
183 return object.sub(value);
196 return object.mul(factor);
209 return object.div(factor);
299 return first.mul(second);
328 static_cast<T*
>(
this)->
mul(1.0 - alpha);
329 static_cast<T*
>(
this)->add(
T(
object).mul(alpha));
331 return static_cast<T&
>(*this);
348 template<
class JFirst_t,
class JSecond_t>
357 JFirst_t&
mul(
const JSecond_t&
object)
372 return first.mul(second);
385 return JFirst_t(first).mul(second);
404 return T(first).interpolate(second, alpha);
411 template<
class JValue_t>
433 for (
T i = __begin; i != __end; ++i) {
445 this->
value = getZero<JValue_t>();
455 operator JValue_t ()
const
472 this->value +=
value;
497 typename std::iterator_traits<T>::value_type
getAverage(T __begin, T __end)
499 typedef typename std::iterator_traits<T>::value_type value_type;
511 template<
class JValue_t,
size_t N>
514 typedef JValue_t value_type;
526 template<
class JElement_t,
class JAllocator_t>
542 typename std::iterator_traits<T>::value_type
getAverage(
T __begin,
T __end,
typename std::iterator_traits<T>::value_type value)
547 catch(
const std::exception&) {
560 template<
class JValue_t,
size_t N>
566 catch(
const std::exception&) {
579 template<
class JElement_t,
class JAllocator_t>
585 catch(
const std::exception&) {
friend T & operator/=(T &object, const double factor)
Scale object.
static T pow(const T &x, const double y, const JLANG::JBool< false > option)
Power .
Auxiliary base class for aritmetic operations of derived class types.
friend T operator-(const T &object)
Negate operator.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
T & interpolate(const T &object, const double alpha)
Interpolation between objects.
friend const JCalculator< T, 1 > & operator*(const T &first, const T &second)
Multiply objects.
friend T operator*(const double factor, const T &object)
Scale object.
T interpolate(const T &first, const T &second, const double alpha)
Interpolation between objects.
std::iterator_traits< T >::value_type getAverage(T __begin, T __end)
Get average.
then JShowerPostfit f $INPUT_FILE o $OUTPUT_FILE N
friend T & operator+=(T &object, const T &value)
Add object.
Definition of zero value for any class.
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
void put(const JValue_t &value, const double w=1.0)
Put value.
friend T & operator*=(T &first, const T &second)
Multiply with object.
T getZero()
Get zero value for a given data type.
friend JFirst_t operator*(const JFirst_t &first, const JSecond_t &second)
Multiply objects.
JArgument< T >::argument_type argument_type
friend JFirst_t & operator*=(JFirst_t &first, const JSecond_t &second)
Multiply with object.
friend T operator+(const T &object)
Affirm operator.
Auxiliary template class for type bool.
JAverage()
Default constructor.
static T pow(const T &x, const double y, const JLANG::JBool< true > option)
Power .
JAverage(T __begin, T __end)
Constructor.
Auxiliary class to hide data type specific methods.
do set_variable OUTPUT_DIRECTORY $WORKDIR T
Auxiliary class for no type definition.
T pow(const T &x, const double y)
Power .
JCalculator & set(const T &value)
Set calculator value.
JFirst_t & mul(const JSecond_t &object)
Multiply with object.
friend T operator+(const T &first, const T &second)
Add objects.
friend T operator*(const T &object, const double factor)
Scale object.
Auxiliary methods to convert data members or return values of member methods of a set of objects to a...
Auxiliary class for arithmetic operations on objects.
Data structure for unit quaternion in three dimensions.
Template for generic class types.
Exception for division by zero.
friend T & operator-=(T &object, const T &value)
Subtract object.
friend T operator-(const T &first, const T &second)
Subtract objects.
friend T & operator*=(T &object, const double factor)
Scale object.
friend T operator/(const T &object, const double factor)
Scale object.
T & mul(const T &object)
Multiply with object.
Auxiliary data structure for return type of make methods.
Auxiliary class to determine average of set of values.