![]() |
NEURON
|
#include <stdio.h>#include <stdlib.h>#include "shared/nvector_serial.h"#include "nvector_nrnthread.h"#include "shared/sundialsmath.h"#include "shared/sundialstypes.h"#include "section.h"#include "nrnmutdec.h"Go to the source code of this file.
Macros | |
| #define | ZERO RCONST(0.0) |
| #define | HALF RCONST(0.5) |
| #define | ONE RCONST(1.0) |
| #define | ONEPT5 RCONST(1.5) |
| #define | mydebug(a) |
| #define | mydebug2(a, b) |
| #define | xpass x_ = x; |
| #define | ypass y_ = y; |
| #define | zpass z_ = z; |
| #define | wpass w_ = w; |
| #define | idpass id_ = id; |
| #define | apass a_ = a; |
| #define | bpass b_ = b; |
| #define | cpass c_ = c; |
| #define | xarg(i) NV_SUBVEC_NT(x_, i) |
| #define | yarg(i) NV_SUBVEC_NT(y_, i) |
| #define | zarg(i) NV_SUBVEC_NT(z_, i) |
| #define | warg(i) NV_SUBVEC_NT(w_, i) |
| #define | idarg(i) NV_SUBVEC_NT(id_, i) |
| #define | aarg a_ |
| #define | barg b_ |
| #define | carg c_ |
| #define | lock MUTLOCK |
| #define | unlock MUTUNLOCK |
| #define | lockadd(arg) |
| #define | locklongdadd(arg) lockadd(arg) |
| #define | lockmax(arg) |
| #define | lockmin(arg) |
| #define | lockfalse |
Functions | |
| N_Vector | N_VNewEmpty_NrnThread (long int length, int nthread, long int *sizes) |
| N_Vector | N_VNew_NrnThread (long int length, int nthread, long int *sizes) |
| N_Vector | N_VCloneEmpty_NrnThread (N_Vector w) |
| N_Vector | N_VMake_NrnThread (long int length, realtype *v_data) |
| N_Vector * | N_VNewVectorArray_NrnThread (int count, long int length, int nthread, long int *sizes) |
| N_Vector * | N_VNewVectorArrayEmpty_NrnThread (int count, long int length, int nthread, long int *sizes) |
| void | N_VDestroyVectorArray_NrnThread (N_Vector *vs, int count) |
| void | N_VPrint_NrnThread (N_Vector x) |
| static void | pr (N_Vector x) |
| N_Vector | N_VClone_NrnThread (N_Vector w) |
| void | N_VDestroy_NrnThread (N_Vector v) |
| void | N_VSpace_NrnThread (N_Vector v, long int *lrw, long int *liw) |
| realtype * | N_VGetArrayPointer_NrnThread (N_Vector v) |
| void | N_VSetArrayPointer_NrnThread (realtype *v_data, N_Vector v) |
| static void * | vlinearsum (NrnThread *nt) |
| void | N_VLinearSum_NrnThread (realtype a, N_Vector x, realtype b, N_Vector y, N_Vector z) |
| static void * | vconst (NrnThread *nt) |
| void | N_VConst_NrnThread (realtype c, N_Vector z) |
| static void * | vprod (NrnThread *nt) |
| void | N_VProd_NrnThread (N_Vector x, N_Vector y, N_Vector z) |
| static void * | vdiv (NrnThread *nt) |
| void | N_VDiv_NrnThread (N_Vector x, N_Vector y, N_Vector z) |
| static void * | vscale (NrnThread *nt) |
| void | N_VScale_NrnThread (realtype c, N_Vector x, N_Vector z) |
| static void * | vabs (NrnThread *nt) |
| void | N_VAbs_NrnThread (N_Vector x, N_Vector z) |
| static void * | vinv (NrnThread *nt) |
| void | N_VInv_NrnThread (N_Vector x, N_Vector z) |
| static void * | vaddconst (NrnThread *nt) |
| void | N_VAddConst_NrnThread (N_Vector x, realtype b, N_Vector z) |
| static void * | vdotprod (NrnThread *nt) |
| realtype | N_VDotProd_NrnThread (N_Vector x, N_Vector y) |
| static void * | vmaxnorm (NrnThread *nt) |
| realtype | N_VMaxNorm_NrnThread (N_Vector x) |
| static realtype | vwrmsnorm_help (N_Vector x, N_Vector w) |
| static void * | vwrmsnorm (NrnThread *nt) |
| realtype | N_VWrmsNorm_NrnThread (N_Vector x, N_Vector w) |
| static realtype | vwrmsnormmask_help (N_Vector x, N_Vector w, N_Vector id) |
| static void * | vwrmsnormmask (NrnThread *nt) |
| realtype | N_VWrmsNormMask_NrnThread (N_Vector x, N_Vector w, N_Vector id) |
| static void * | vmin (NrnThread *nt) |
| realtype | N_VMin_NrnThread (N_Vector x) |
| static realtype | N_VWL2Norm_helper (N_Vector x, N_Vector w) |
| static void * | vwl2norm (NrnThread *nt) |
| realtype | N_VWL2Norm_NrnThread (N_Vector x, N_Vector w) |
| static void * | vl1norm (NrnThread *nt) |
| realtype | N_VL1Norm_NrnThread (N_Vector x) |
| static void * | v1mask (NrnThread *nt) |
| void | N_VOneMask_NrnThread (N_Vector x) |
| static void * | vcompare (NrnThread *nt) |
| void | N_VCompare_NrnThread (realtype c, N_Vector x, N_Vector z) |
| static void * | vinvtest (NrnThread *nt) |
| booleantype | N_VInvTest_NrnThread (N_Vector x, N_Vector z) |
| static void * | vconstrmask (NrnThread *nt) |
| booleantype | N_VConstrMask_NrnThread (N_Vector y, N_Vector x, N_Vector z) |
| static void * | vminquotient (NrnThread *nt) |
| realtype | N_VMinQuotient_NrnThread (N_Vector x, N_Vector y) |
Variables | |
| static N_Vector | x_ |
| static N_Vector | y_ |
| static N_Vector | z_ |
| static N_Vector | w_ |
| static N_Vector | id_ |
| static realtype | a_ |
| static realtype | b_ |
| static realtype | c_ |
| static realtype | retval |
| static booleantype | bretval |
| #define aarg a_ |
Definition at line 69 of file nvector_nrnthread.cpp.
| #define apass a_ = a; |
Definition at line 61 of file nvector_nrnthread.cpp.
| #define barg b_ |
Definition at line 70 of file nvector_nrnthread.cpp.
| #define bpass b_ = b; |
Definition at line 62 of file nvector_nrnthread.cpp.
| #define carg c_ |
Definition at line 71 of file nvector_nrnthread.cpp.
Definition at line 63 of file nvector_nrnthread.cpp.
| #define HALF RCONST(0.5) |
Definition at line 30 of file nvector_nrnthread.cpp.
| #define idarg | ( | i | ) | NV_SUBVEC_NT(id_, i) |
Definition at line 68 of file nvector_nrnthread.cpp.
Definition at line 60 of file nvector_nrnthread.cpp.
| #define lock MUTLOCK |
Definition at line 72 of file nvector_nrnthread.cpp.
| #define lockadd | ( | arg | ) |
Definition at line 74 of file nvector_nrnthread.cpp.
| #define lockfalse |
Definition at line 91 of file nvector_nrnthread.cpp.
| #define locklongdadd | ( | arg | ) | lockadd(arg) |
Definition at line 78 of file nvector_nrnthread.cpp.
| #define lockmax | ( | arg | ) |
Definition at line 79 of file nvector_nrnthread.cpp.
| #define lockmin | ( | arg | ) |
Definition at line 85 of file nvector_nrnthread.cpp.
| #define mydebug | ( | a | ) |
Definition at line 38 of file nvector_nrnthread.cpp.
| #define mydebug2 | ( | a, | |
| b | |||
| ) |
Definition at line 39 of file nvector_nrnthread.cpp.
| #define ONE RCONST(1.0) |
Definition at line 31 of file nvector_nrnthread.cpp.
| #define ONEPT5 RCONST(1.5) |
Definition at line 32 of file nvector_nrnthread.cpp.
| #define unlock MUTUNLOCK |
Definition at line 73 of file nvector_nrnthread.cpp.
| #define warg | ( | i | ) | NV_SUBVEC_NT(w_, i) |
Definition at line 67 of file nvector_nrnthread.cpp.
| #define wpass w_ = w; |
Definition at line 59 of file nvector_nrnthread.cpp.
| #define xarg | ( | i | ) | NV_SUBVEC_NT(x_, i) |
Definition at line 64 of file nvector_nrnthread.cpp.
| #define xpass x_ = x; |
Definition at line 56 of file nvector_nrnthread.cpp.
| #define yarg | ( | i | ) | NV_SUBVEC_NT(y_, i) |
Definition at line 65 of file nvector_nrnthread.cpp.
| #define ypass y_ = y; |
Definition at line 57 of file nvector_nrnthread.cpp.
| #define zarg | ( | i | ) | NV_SUBVEC_NT(z_, i) |
Definition at line 66 of file nvector_nrnthread.cpp.
| #define ZERO RCONST(0.0) |
Definition at line 29 of file nvector_nrnthread.cpp.
| #define zpass z_ = z; |
Definition at line 58 of file nvector_nrnthread.cpp.
| void N_VAbs_NrnThread | ( | N_Vector | x, |
| N_Vector | z | ||
| ) |
Definition at line 540 of file nvector_nrnthread.cpp.
| void N_VAddConst_NrnThread | ( | N_Vector | x, |
| realtype | b, | ||
| N_Vector | z | ||
| ) |
Definition at line 560 of file nvector_nrnthread.cpp.
| N_Vector N_VClone_NrnThread | ( | N_Vector | w | ) |
Definition at line 408 of file nvector_nrnthread.cpp.
| N_Vector N_VCloneEmpty_NrnThread | ( | N_Vector | w | ) |
Definition at line 216 of file nvector_nrnthread.cpp.
| void N_VCompare_NrnThread | ( | realtype | c, |
| N_Vector | x, | ||
| N_Vector | z | ||
| ) |
Definition at line 735 of file nvector_nrnthread.cpp.
| void N_VConst_NrnThread | ( | realtype | c, |
| N_Vector | z | ||
| ) |
Definition at line 499 of file nvector_nrnthread.cpp.
| booleantype N_VConstrMask_NrnThread | ( | N_Vector | y, |
| N_Vector | x, | ||
| N_Vector | z | ||
| ) |
Definition at line 765 of file nvector_nrnthread.cpp.
| void N_VDestroy_NrnThread | ( | N_Vector | v | ) |
Definition at line 440 of file nvector_nrnthread.cpp.
| void N_VDestroyVectorArray_NrnThread | ( | N_Vector * | vs, |
| int | count | ||
| ) |
Definition at line 374 of file nvector_nrnthread.cpp.
| void N_VDiv_NrnThread | ( | N_Vector | x, |
| N_Vector | y, | ||
| N_Vector | z | ||
| ) |
Definition at line 519 of file nvector_nrnthread.cpp.
| realtype N_VDotProd_NrnThread | ( | N_Vector | x, |
| N_Vector | y | ||
| ) |
Definition at line 572 of file nvector_nrnthread.cpp.
| realtype* N_VGetArrayPointer_NrnThread | ( | N_Vector | v | ) |
Definition at line 469 of file nvector_nrnthread.cpp.
| void N_VInv_NrnThread | ( | N_Vector | x, |
| N_Vector | z | ||
| ) |
Definition at line 550 of file nvector_nrnthread.cpp.
| booleantype N_VInvTest_NrnThread | ( | N_Vector | x, |
| N_Vector | z | ||
| ) |
Definition at line 749 of file nvector_nrnthread.cpp.
| realtype N_VL1Norm_NrnThread | ( | N_Vector | x | ) |
Definition at line 714 of file nvector_nrnthread.cpp.
| void N_VLinearSum_NrnThread | ( | realtype | a, |
| N_Vector | x, | ||
| realtype | b, | ||
| N_Vector | y, | ||
| N_Vector | z | ||
| ) |
Definition at line 488 of file nvector_nrnthread.cpp.
| N_Vector N_VMake_NrnThread | ( | long int | length, |
| realtype * | v_data | ||
| ) |
Definition at line 297 of file nvector_nrnthread.cpp.
| realtype N_VMaxNorm_NrnThread | ( | N_Vector | x | ) |
Definition at line 586 of file nvector_nrnthread.cpp.
| realtype N_VMin_NrnThread | ( | N_Vector | x | ) |
Definition at line 669 of file nvector_nrnthread.cpp.
| realtype N_VMinQuotient_NrnThread | ( | N_Vector | x, |
| N_Vector | y | ||
| ) |
Definition at line 779 of file nvector_nrnthread.cpp.
| N_Vector N_VNew_NrnThread | ( | long int | length, |
| int | nthread, | ||
| long int * | sizes | ||
| ) |
Definition at line 185 of file nvector_nrnthread.cpp.
| N_Vector N_VNewEmpty_NrnThread | ( | long int | length, |
| int | nthread, | ||
| long int * | sizes | ||
| ) |
Definition at line 106 of file nvector_nrnthread.cpp.
| N_Vector* N_VNewVectorArray_NrnThread | ( | int | count, |
| long int | length, | ||
| int | nthread, | ||
| long int * | sizes | ||
| ) |
Definition at line 319 of file nvector_nrnthread.cpp.
| N_Vector* N_VNewVectorArrayEmpty_NrnThread | ( | int | count, |
| long int | length, | ||
| int | nthread, | ||
| long int * | sizes | ||
| ) |
Definition at line 345 of file nvector_nrnthread.cpp.
| void N_VOneMask_NrnThread | ( | N_Vector | x | ) |
Definition at line 726 of file nvector_nrnthread.cpp.
| void N_VPrint_NrnThread | ( | N_Vector | x | ) |
Definition at line 387 of file nvector_nrnthread.cpp.
| void N_VProd_NrnThread | ( | N_Vector | x, |
| N_Vector | y, | ||
| N_Vector | z | ||
| ) |
Definition at line 509 of file nvector_nrnthread.cpp.
| void N_VScale_NrnThread | ( | realtype | c, |
| N_Vector | x, | ||
| N_Vector | z | ||
| ) |
Definition at line 529 of file nvector_nrnthread.cpp.
| void N_VSetArrayPointer_NrnThread | ( | realtype * | v_data, |
| N_Vector | v | ||
| ) |
Definition at line 476 of file nvector_nrnthread.cpp.
| void N_VSpace_NrnThread | ( | N_Vector | v, |
| long int * | lrw, | ||
| long int * | liw | ||
| ) |
Definition at line 460 of file nvector_nrnthread.cpp.
|
static |
Definition at line 676 of file nvector_nrnthread.cpp.
| realtype N_VWL2Norm_NrnThread | ( | N_Vector | x, |
| N_Vector | w | ||
| ) |
Definition at line 698 of file nvector_nrnthread.cpp.
| realtype N_VWrmsNorm_NrnThread | ( | N_Vector | x, |
| N_Vector | w | ||
| ) |
Definition at line 617 of file nvector_nrnthread.cpp.
| realtype N_VWrmsNormMask_NrnThread | ( | N_Vector | x, |
| N_Vector | w, | ||
| N_Vector | id | ||
| ) |
Definition at line 651 of file nvector_nrnthread.cpp.
|
static |
Definition at line 399 of file nvector_nrnthread.cpp.
|
static |
Definition at line 721 of file nvector_nrnthread.cpp.
|
static |
Definition at line 535 of file nvector_nrnthread.cpp.
|
static |
Definition at line 555 of file nvector_nrnthread.cpp.
|
static |
Definition at line 730 of file nvector_nrnthread.cpp.
|
static |
Definition at line 494 of file nvector_nrnthread.cpp.
|
static |
Definition at line 756 of file nvector_nrnthread.cpp.
|
static |
Definition at line 514 of file nvector_nrnthread.cpp.
|
static |
Definition at line 565 of file nvector_nrnthread.cpp.
|
static |
Definition at line 545 of file nvector_nrnthread.cpp.
|
static |
Definition at line 740 of file nvector_nrnthread.cpp.
|
static |
Definition at line 707 of file nvector_nrnthread.cpp.
|
static |
Definition at line 483 of file nvector_nrnthread.cpp.
|
static |
Definition at line 579 of file nvector_nrnthread.cpp.
|
static |
Definition at line 660 of file nvector_nrnthread.cpp.
|
static |
Definition at line 772 of file nvector_nrnthread.cpp.
|
static |
Definition at line 504 of file nvector_nrnthread.cpp.
|
static |
Definition at line 524 of file nvector_nrnthread.cpp.
|
static |
Definition at line 691 of file nvector_nrnthread.cpp.
|
static |
Definition at line 610 of file nvector_nrnthread.cpp.
|
static |
Definition at line 594 of file nvector_nrnthread.cpp.
|
static |
Definition at line 644 of file nvector_nrnthread.cpp.
|
static |
Definition at line 626 of file nvector_nrnthread.cpp.
|
static |
Definition at line 51 of file nvector_nrnthread.cpp.
|
static |
Definition at line 52 of file nvector_nrnthread.cpp.
|
static |
Definition at line 55 of file nvector_nrnthread.cpp.
|
static |
Definition at line 53 of file nvector_nrnthread.cpp.
|
static |
Definition at line 50 of file nvector_nrnthread.cpp.
|
static |
Definition at line 54 of file nvector_nrnthread.cpp.
|
static |
Definition at line 49 of file nvector_nrnthread.cpp.
|
static |
Definition at line 46 of file nvector_nrnthread.cpp.
|
static |
Definition at line 47 of file nvector_nrnthread.cpp.
|
static |
Definition at line 48 of file nvector_nrnthread.cpp.