1 #include <../../nrnconf.h> 26 int compute(
double freq,
bool nonlin =
false,
int maxiter = 500);
48 std::complex<double>*
input =
nullptr;
49 std::complex<double>*
d =
nullptr;
50 std::complex<double>*
pivot =
nullptr;
199 d =
new std::complex<double>[
n];
201 input =
new std::complex<double>[
n];
202 pivot =
new std::complex<double>[
n];
205 if (x < 0.0 || sec ==
nullptr) {
return -1; }
212 int vloc =
loc(sec, x);
256 hoc_execerror(
"Impedance stimulus location is not specified.", 0);
260 double omega = 1
e-6*2*3.14159265358979323846*freq;
273 hoc_execerror(
"Impedance stimulus location is not specified.", 0);
285 for (
int i = 0;
i <
n; ++
i) {
310 for (
int i = 0;
i <
n; ++
i) {
334 for (
int i = 0;
i < _nt->
ncell; ++
i) {
static void destruct(void *v)
void nrn_rhs(NrnThread *)
double transfer_phase(Section *, double)
int hoc_is_double_arg(int narg)
double input_phase(Section *, double)
Represent main neuron object computed by single thread.
void nrn_thread_error(const char *)
double transfer_amp(int curloc, int vloc)
static void * cons(Object *)
void class2oc(const char *, void *(*cons)(Object *), void(*destruct)(void *), Member_func *, int(*checkpoint)(void **), Member_ret_obj_func *, Member_ret_str_func *)
static Member_func members[]
std::complex< double > * pivot
void hoc_execerror(const char *, const char *)
void location(Section *, double)
double transfer_amp(Section *, double)
void compute(double omega, double deltafac, int maxiter)
void section_ref(Section *)
double ratio_amp(int clmploc, int vloc)
double input_amp(int curloc)
void nrn_seg_or_x_arg(int iarg, Section **psec, double *px)
std::complex< double > * d
double input_amp(Section *, double)
void(* Pfrv4)(int, Node **, double **, Datum **)
void nrn_lhs(NrnThread *)
std::complex< double > * input
double ratio_amp(Section *, double)
void section_unref(Section *)
Section * chk_access(void)
int compute(double freq, bool nonlin=false, int maxiter=500)
double input_phase(int curloc)
Node * node_exact(Section *sec, double x)
double chkarg(int, double low, double high)
int loc(Section *, double)
std::complex< double > * transfer
double transfer_phase(int curloc, int vloc)
static double deltafac(void *v)