![]() |
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 | USELONGDOUBLE 0 |
| #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 | ldrealtype realtype |
| #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) lock; retval += arg; unlock; |
| #define | locklongdadd(arg) lockadd(arg) |
| #define | lockmax(arg) lock; if (retval < arg) { retval = arg; }; unlock; |
| #define | lockmin(arg) lock; if (retval > arg) { retval = arg; }; unlock; |
| #define | lockfalse lock; bretval = FALSE; unlock; |
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 ldrealtype | 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 80 of file nvector_nrnthread.cpp.
| #define apass a_ = a; |
Definition at line 72 of file nvector_nrnthread.cpp.
| #define barg b_ |
Definition at line 81 of file nvector_nrnthread.cpp.
| #define bpass b_ = b; |
Definition at line 73 of file nvector_nrnthread.cpp.
| #define carg c_ |
Definition at line 82 of file nvector_nrnthread.cpp.
Definition at line 74 of file nvector_nrnthread.cpp.
| #define HALF RCONST(0.5) |
Definition at line 32 of file nvector_nrnthread.cpp.
| #define idarg | ( | i | ) | NV_SUBVEC_NT(id_, i) |
Definition at line 79 of file nvector_nrnthread.cpp.
Definition at line 71 of file nvector_nrnthread.cpp.
| #define ldrealtype realtype |
Definition at line 47 of file nvector_nrnthread.cpp.
| #define lock MUTLOCK |
Definition at line 83 of file nvector_nrnthread.cpp.
Definition at line 85 of file nvector_nrnthread.cpp.
Definition at line 93 of file nvector_nrnthread.cpp.
Definition at line 89 of file nvector_nrnthread.cpp.
Definition at line 91 of file nvector_nrnthread.cpp.
Definition at line 92 of file nvector_nrnthread.cpp.
| #define mydebug | ( | a | ) |
Definition at line 40 of file nvector_nrnthread.cpp.
| #define mydebug2 | ( | a, | |
| b | |||
| ) |
Definition at line 41 of file nvector_nrnthread.cpp.
| #define ONE RCONST(1.0) |
Definition at line 33 of file nvector_nrnthread.cpp.
| #define ONEPT5 RCONST(1.5) |
Definition at line 34 of file nvector_nrnthread.cpp.
| #define unlock MUTUNLOCK |
Definition at line 84 of file nvector_nrnthread.cpp.
| #define USELONGDOUBLE 0 |
Definition at line 19 of file nvector_nrnthread.cpp.
| #define warg | ( | i | ) | NV_SUBVEC_NT(w_, i) |
Definition at line 78 of file nvector_nrnthread.cpp.
| #define wpass w_ = w; |
Definition at line 70 of file nvector_nrnthread.cpp.
| #define xarg | ( | i | ) | NV_SUBVEC_NT(x_, i) |
Definition at line 75 of file nvector_nrnthread.cpp.
| #define xpass x_ = x; |
Definition at line 67 of file nvector_nrnthread.cpp.
| #define yarg | ( | i | ) | NV_SUBVEC_NT(y_, i) |
Definition at line 76 of file nvector_nrnthread.cpp.
| #define ypass y_ = y; |
Definition at line 68 of file nvector_nrnthread.cpp.
| #define zarg | ( | i | ) | NV_SUBVEC_NT(z_, i) |
Definition at line 77 of file nvector_nrnthread.cpp.
| #define ZERO RCONST(0.0) |
Definition at line 31 of file nvector_nrnthread.cpp.
| #define zpass z_ = z; |
Definition at line 69 of file nvector_nrnthread.cpp.
| void N_VAbs_NrnThread | ( | N_Vector | x, |
| N_Vector | z | ||
| ) |
Definition at line 515 of file nvector_nrnthread.cpp.
| void N_VAddConst_NrnThread | ( | N_Vector | x, |
| realtype | b, | ||
| N_Vector | z | ||
| ) |
Definition at line 539 of file nvector_nrnthread.cpp.
| N_Vector N_VClone_NrnThread | ( | N_Vector | w | ) |
Definition at line 373 of file nvector_nrnthread.cpp.
| N_Vector N_VCloneEmpty_NrnThread | ( | N_Vector | w | ) |
Definition at line 199 of file nvector_nrnthread.cpp.
| void N_VCompare_NrnThread | ( | realtype | c, |
| N_Vector | x, | ||
| N_Vector | z | ||
| ) |
Definition at line 742 of file nvector_nrnthread.cpp.
| void N_VConst_NrnThread | ( | realtype | c, |
| N_Vector | z | ||
| ) |
Definition at line 466 of file nvector_nrnthread.cpp.
| booleantype N_VConstrMask_NrnThread | ( | N_Vector | y, |
| N_Vector | x, | ||
| N_Vector | z | ||
| ) |
Definition at line 772 of file nvector_nrnthread.cpp.
| void N_VDestroy_NrnThread | ( | N_Vector | v | ) |
Definition at line 403 of file nvector_nrnthread.cpp.
Definition at line 340 of file nvector_nrnthread.cpp.
| void N_VDiv_NrnThread | ( | N_Vector | x, |
| N_Vector | y, | ||
| N_Vector | z | ||
| ) |
Definition at line 490 of file nvector_nrnthread.cpp.
| realtype N_VDotProd_NrnThread | ( | N_Vector | x, |
| N_Vector | y | ||
| ) |
Definition at line 553 of file nvector_nrnthread.cpp.
| realtype* N_VGetArrayPointer_NrnThread | ( | N_Vector | v | ) |
Definition at line 432 of file nvector_nrnthread.cpp.
| void N_VInv_NrnThread | ( | N_Vector | x, |
| N_Vector | z | ||
| ) |
Definition at line 527 of file nvector_nrnthread.cpp.
| booleantype N_VInvTest_NrnThread | ( | N_Vector | x, |
| N_Vector | z | ||
| ) |
Definition at line 756 of file nvector_nrnthread.cpp.
| realtype N_VL1Norm_NrnThread | ( | N_Vector | x | ) |
Definition at line 717 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 453 of file nvector_nrnthread.cpp.
Definition at line 267 of file nvector_nrnthread.cpp.
| realtype N_VMaxNorm_NrnThread | ( | N_Vector | x | ) |
Definition at line 569 of file nvector_nrnthread.cpp.
| realtype N_VMin_NrnThread | ( | N_Vector | x | ) |
Definition at line 667 of file nvector_nrnthread.cpp.
| realtype N_VMinQuotient_NrnThread | ( | N_Vector | x, |
| N_Vector | y | ||
| ) |
Definition at line 788 of file nvector_nrnthread.cpp.
Definition at line 170 of file nvector_nrnthread.cpp.
Definition at line 105 of file nvector_nrnthread.cpp.
Definition at line 290 of file nvector_nrnthread.cpp.
| N_Vector* N_VNewVectorArrayEmpty_NrnThread | ( | int | count, |
| long int | length, | ||
| int | nthread, | ||
| long int * | sizes | ||
| ) |
Definition at line 315 of file nvector_nrnthread.cpp.
| void N_VOneMask_NrnThread | ( | N_Vector | x | ) |
Definition at line 731 of file nvector_nrnthread.cpp.
| void N_VPrint_NrnThread | ( | N_Vector | x | ) |
Definition at line 353 of file nvector_nrnthread.cpp.
| void N_VProd_NrnThread | ( | N_Vector | x, |
| N_Vector | y, | ||
| N_Vector | z | ||
| ) |
Definition at line 478 of file nvector_nrnthread.cpp.
| void N_VScale_NrnThread | ( | realtype | c, |
| N_Vector | x, | ||
| N_Vector | z | ||
| ) |
Definition at line 502 of file nvector_nrnthread.cpp.
| void N_VSetArrayPointer_NrnThread | ( | realtype * | v_data, |
| N_Vector | v | ||
| ) |
Definition at line 440 of file nvector_nrnthread.cpp.
Definition at line 422 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 699 of file nvector_nrnthread.cpp.
| realtype N_VWrmsNorm_NrnThread | ( | N_Vector | x, |
| N_Vector | w | ||
| ) |
Definition at line 603 of file nvector_nrnthread.cpp.
| realtype N_VWrmsNormMask_NrnThread | ( | N_Vector | x, |
| N_Vector | w, | ||
| N_Vector | id | ||
| ) |
Definition at line 647 of file nvector_nrnthread.cpp.
|
static |
Definition at line 366 of file nvector_nrnthread.cpp.
Definition at line 726 of file nvector_nrnthread.cpp.
Definition at line 510 of file nvector_nrnthread.cpp.
Definition at line 534 of file nvector_nrnthread.cpp.
Definition at line 737 of file nvector_nrnthread.cpp.
Definition at line 461 of file nvector_nrnthread.cpp.
Definition at line 765 of file nvector_nrnthread.cpp.
Definition at line 485 of file nvector_nrnthread.cpp.
Definition at line 546 of file nvector_nrnthread.cpp.
Definition at line 522 of file nvector_nrnthread.cpp.
Definition at line 749 of file nvector_nrnthread.cpp.
Definition at line 710 of file nvector_nrnthread.cpp.
Definition at line 448 of file nvector_nrnthread.cpp.
Definition at line 562 of file nvector_nrnthread.cpp.
Definition at line 658 of file nvector_nrnthread.cpp.
Definition at line 781 of file nvector_nrnthread.cpp.
Definition at line 473 of file nvector_nrnthread.cpp.
Definition at line 497 of file nvector_nrnthread.cpp.
Definition at line 692 of file nvector_nrnthread.cpp.
Definition at line 596 of file nvector_nrnthread.cpp.
|
static |
Definition at line 579 of file nvector_nrnthread.cpp.
Definition at line 640 of file nvector_nrnthread.cpp.
|
static |
Definition at line 621 of file nvector_nrnthread.cpp.
|
static |
Definition at line 59 of file nvector_nrnthread.cpp.
|
static |
Definition at line 60 of file nvector_nrnthread.cpp.
|
static |
Definition at line 66 of file nvector_nrnthread.cpp.
|
static |
Definition at line 61 of file nvector_nrnthread.cpp.
|
static |
Definition at line 58 of file nvector_nrnthread.cpp.
|
static |
Definition at line 62 of file nvector_nrnthread.cpp.
|
static |
Definition at line 57 of file nvector_nrnthread.cpp.
|
static |
Definition at line 54 of file nvector_nrnthread.cpp.
|
static |
Definition at line 55 of file nvector_nrnthread.cpp.
|
static |
Definition at line 56 of file nvector_nrnthread.cpp.