1 #include <../../nrnconf.h>
26 int compute(
double freq,
bool nonlin =
false,
int maxiter = 500);
51 std::complex<double>*
input =
nullptr;
52 std::complex<double>*
d =
nullptr;
53 std::complex<double>*
pivot =
nullptr;
75 nonlin = *
getarg(2) ? true :
false;
211 d =
new std::complex<double>[
n];
213 input =
new std::complex<double>[
n];
214 pivot =
new std::complex<double>[
n];
217 if (x < 0.0 ||
sec ==
nullptr) {
270 hoc_execerror(
"Impedance stimulus location is not specified.", 0);
275 double omega = 1
e-6 * 2 * 3.14159265358979323846 * freq;
288 hoc_execerror(
"Impedance stimulus location is not specified.", 0);
300 for (
int i = 0;
i <
n; ++
i) {
325 for (
int i = 0;
i <
n; ++
i) {
349 for (
int i = 0;
i < _nt->
ncell; ++
i) {
353 for (
int i = _nt->
ncell; i < _nt->end; ++
i) {
361 for (
int i = _nt->
ncell; i < _nt->end; ++
i) {
Section * chk_access(void)
Node * node_exact(Section *sec, double x)
double input_phase(Section *, double)
double transfer_amp(Section *, double)
std::complex< double > * d
std::complex< double > * input
double transfer_phase(Section *, double)
std::complex< double > * transfer
int loc(Section *, double)
std::complex< double > * pivot
double ratio_amp(Section *, double)
double input_amp(Section *, double)
void location(Section *, double)
int compute(double freq, bool nonlin=false, int maxiter=500)
double transfer_amp(int curloc, int vloc)
void compute(double omega, double deltafac, int maxiter)
double ratio_amp(int clmploc, int vloc)
double input_phase(int curloc)
double input_amp(int curloc)
double transfer_phase(int curloc, int vloc)
double chkarg(int, double low, double high)
void hoc_execerror(const char *, const char *)
int hoc_is_double_arg(int narg)
static double transfer_amp(void *v)
void nrn_rhs(NrnThread *)
static double location(void *v)
void(* Pfrv4)(int, Node **, double **, Datum **)
static double input_amp(void *v)
static Member_func members[]
static double deltafac(void *v)
static double input_phase(void *v)
static void * cons(Object *)
static void destruct(void *v)
void nrn_lhs(NrnThread *)
static double ratio_amp(void *v)
static double compute(void *v)
static double transfer_phase(void *v)
void nrn_thread_error(const char *)
void section_ref(Section *)
void section_unref(Section *)
void nrn_seg_or_x_arg(int iarg, Section **psec, double *px)
void class2oc(const char *, void *(*cons)(Object *), void(*destruct)(void *), Member_func *, int(*checkpoint)(void **), Member_ret_obj_func *, Member_ret_str_func *)
Represent main neuron object computed by single thread.