File: PayOffBase.h

package info (click to toggle)
stopt 5.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,772 kB
  • sloc: cpp: 70,373; python: 5,942; makefile: 67; sh: 57
file content (28 lines) | stat: -rw-r--r-- 741 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (C) 2016 EDF
// All Rights Reserved
// This code is published under the GNU Lesser General Public License (GNU LGPL)
#ifndef PAYOFFBASE_H
#define PAYOFFBASE_H
#include <functional>
#include <Eigen/Dense>

/** \file  PayOffBase.h
 *  \brief used to map python to function used for pay off
 *  \brief base class for pay off
 * \author Xavier Warin
 */

namespace StOpt
{
/// \class PayOffBase PayOffBase.h
/// Base class for pay off for python binding
class PayOffBase
{
public :
    PayOffBase() {}
    // virtual ~PayOffBase() {}
    /// \brief get back the function pay off
    virtual std::function<double(const int &, const Eigen::ArrayXd &, const Eigen::ArrayXd &)>  getFunction() const = 0;
} ;
}
#endif /* PAYOFFBASE_H */