ScalarPower.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2004 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/More/MEAL/MEAL/ScalarPower.h
10
11#ifndef __MEAL_ScalarPower_H
12#define __MEAL_ScalarPower_H
13
14#include "MEAL/BinaryScalar.h"
15
16namespace MEAL {
17
20 {
21
22 public:
23
24 // ///////////////////////////////////////////////////////////////////
25 //
26 // BinaryScalar implementation
27 //
28 // ///////////////////////////////////////////////////////////////////
29
31 double function (double arg1, double arg2) const;
32
34 double partial_arg1 (double arg1, double arg2) const;
35
37 double partial_arg2 (double arg1, double arg2) const;
38
39 // ///////////////////////////////////////////////////////////////////
40 //
41 // Function implementation
42 //
43 // ///////////////////////////////////////////////////////////////////
44
46 std::string get_name () const;
47
48 };
49
50}
51
52
53#endif
Project< Scalar > arg1
Definition BinaryRule.h:47
Project< Scalar > arg2
Definition BinaryRule.h:50
Abstract base class of binary functions of two other Scalar functions.
Definition BinaryScalar.h:22
The tangent of a Scalar function.
Definition ScalarPower.h:20
double partial_arg1(double arg1, double arg2) const
Return the partial derivative with respect to the base, x.
Definition ScalarPower.C:31
std::string get_name() const
Return the name of the class.
Definition ScalarPower.C:15
double partial_arg2(double arg1, double arg2) const
Return the partial derivative with respect to the exponent, y.
Definition ScalarPower.C:40
double function(double arg1, double arg2) const
Return x^y.
Definition ScalarPower.C:23
Namespace in which all modeling and calibration related code is declared.
Definition ExampleComplex2.h:16

Generated using doxygen 1.14.0