5#ifndef SPIKE_SUSCEPTIBILITYSIMULATIONLINNONLIN_H
6#define SPIKE_SUSCEPTIBILITYSIMULATIONLINNONLIN_H
19 std::vector<std::complex<double>> suscept_lin;
20 std::vector<std::complex<double>>
22 std::vector<std::complex<double>>
23 suscept_nonlin_antidiag;
47 const std::vector<std::complex<double>> &tmp_nonlin_diag,
48 const std::vector<std::complex<double>> &tmp_nonlin_antidiag);
54 [[nodiscard]]
size_t get_size_lin()
const {
return suscept_lin.size(); };
60 [[nodiscard]]
size_t get_size_nonlin()
const {
return suscept_nonlin_diag.size(); };
77 return suscept_nonlin_diag;
86 return suscept_nonlin_antidiag;
A simulation where we measure the linear (first order) susceptibility as well as the diagonal and ant...
Definition SusceptibilitySimulationLinNonlin.h:17
const std::vector< std::complex< double > > & get_suscept_nonlin_diag() const
Returns the diagonal nonlinear susceptibility vector.
Definition SusceptibilitySimulationLinNonlin.h:75
const std::vector< std::complex< double > > & get_suscept_nonlin_antidiag() const
Returns the antidiagonal nonlinear susceptibility vector.
Definition SusceptibilitySimulationLinNonlin.h:84
size_t get_size_nonlin() const
Returns the size of the nonlinear susceptibility vector.
Definition SusceptibilitySimulationLinNonlin.h:60
void calculate(size_t trials) override
Calculates the linear susceptibility and the diagonal and antidiagonal second order susceptibility fo...
Definition SusceptibilitySimulationLinNonlin.cpp:14
SusceptibilitySimulationLinNonlin(const std::string &input_file)
Constructs susceptibility simulation from .ini file.
Definition SusceptibilitySimulationLinNonlin.cpp:7
void add_to_suscepts(const std::vector< std::complex< double > > &tmp_lin, const std::vector< std::complex< double > > &tmp_nonlin_diag, const std::vector< std::complex< double > > &tmp_nonlin_antidiag)
Adds the susceptibility tmp_lin to suscept_lin.
Definition SusceptibilitySimulationLinNonlin.cpp:29
const std::vector< std::complex< double > > & get_suscept_lin() const
Returns the linear susceptibility vector.
Definition SusceptibilitySimulationLinNonlin.h:66
size_t get_size_lin() const
Returns the size of the linear susceptibility vector.
Definition SusceptibilitySimulationLinNonlin.h:54
Implements a prototype simulation during which we measure the susceptibility of an integrate-and-fire...
Definition SusceptibilitySimulation.h:19