Complex2Constant.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/Complex2Constant.h
10 
11 #ifndef __Complex2Constant_H
12 #define __Complex2Constant_H
13 
14 #include "MEAL/Complex2.h"
15 
16 namespace MEAL {
17 
19  class Complex2Constant : public Complex2 {
20 
21  public:
22 
24  Complex2Constant (const Jones<double>& jones);
25 
27  const Complex2Constant& operator = (const Complex2Constant& scalar);
28 
29  // ///////////////////////////////////////////////////////////////////
30  //
31  // Function implementation
32  //
33  // ///////////////////////////////////////////////////////////////////
34 
36  std::string get_name () const;
37 
38  // ///////////////////////////////////////////////////////////////////
39  //
40  // Complex2 implementation
41  //
42  // ///////////////////////////////////////////////////////////////////
43 
45  void calculate (Jones<double>&, std::vector<Jones<double> >*);
46 
47  protected:
48 
50  Jones<double> value;
51 
52  };
53 
54 }
55 
56 #endif
Represents a constant model with no parameters.
Definition: Constant.h:28
Reference::To< ParameterPolicy > parameter_policy
The policy for managing function parameters.
Definition: Function.h:199
Jones< double > value
The Jones matrix returned by evaluate.
Definition: Complex2Constant.h:60
std::string get_name() const
Return the name of the class.
Definition: Complex2Constant.C:29
Namespace in which all modeling and calibration related code is declared.
Definition: ExampleComplex2.h:16
An evaluation policy that does not cache calculations.
Definition: NotCached.h:27
Complex2Constant(const Jones< double > &jones)
Default constructor.
Definition: Complex2Constant.C:12
Reference::To< EvaluationPolicy< Jones< double > > > evaluation_policy
The policy for managing function evaluation.
Definition: Evaluable.h:96
void calculate(Jones< double > &, std::vector< Jones< double > > *)
Return the Jones matrix.
Definition: Complex2Constant.C:34
const Complex2Constant & operator=(const Complex2Constant &scalar)
Assignment operator.
Definition: Complex2Constant.C:22
Represents a constant complex 2x2 matrix value.
Definition: Complex2Constant.h:24

Generated using doxygen 1.8.17