sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
f2b373c6b9983b31268015b44410dc6b530e6343df53049d6018eb8c42e37137
C
240
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_prosa_multi(nlhs, plhs, nrhs, prhs, reparametrize_prosa_invgamma); }
3f5723fbbf91d0e66f223625aaa5082784e734c7dcd091577d604af5f8c00d35
C
242
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_prosa_n_states(nlhs, plhs, nrhs, prhs, reparametrize_prosa_lognorm); }
55a4da4ddbb8e5381738b4fde3763aba3f26ac35cd2f4a0c00ca84790d0a2963
C
242
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_seria_n_states(nlhs, plhs, nrhs, prhs, reparametrize_seria_lognorm); }
70cf59199895226953ed7addeece40b4a14a6412f3bcb8f4a9ceb0f2617951ce
C
242
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_prosa_multi(nlhs, plhs, nrhs, prhs, reparametrize_prosa_mixedgamma); }
842433244121f4c59317d7e17bdacefe5b3cfdf671da047d8bf88358273f89e4
C
242
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_seria_multi(nlhs, plhs, nrhs, prhs, reparametrize_seria_mixedgamma); }
0a5ae4dd3cf18caf2ebee2742ef9df0559ff2f43087a46ad5de9fa8d55b2662a
C
243
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_seria_n_states(nlhs, plhs, nrhs, prhs, reparametrize_seria_invgamma); }
aff5133756a5eb960b34fa86b24fae69d42be01223c0f9b8c3573bf362bfe976
C
243
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_prosa_n_states(nlhs, plhs, nrhs, prhs, reparametrize_prosa_invgamma); }
336f71ff323fc4748994cd5fff43c0f63fdad277c2fc2a366c2bc0b891934b3d
C
245
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_seria_n_states(nlhs, plhs, nrhs, prhs, reparametrize_seria_mixedgamma); }
eea041289003427c53c223b7df207c769e91f44a78e23de80b6140a34cf0d64c
C
245
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_seria_summaries(nlhs, plhs, nrhs, prhs, reparametrize_seria_invgamma); }
eef5f08cdaf3768437f1907eaf64011efddd48726f22c1caadd2f30e5d066018
C
245
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_prosa_n_states(nlhs, plhs, nrhs, prhs, reparametrize_prosa_mixedgamma); }
537ac704f0cd50f633037ed6e38616dd595150630b8a578813a9e801e42341e8
C
249
8
#include "build.h" void boundaryDiffusion() { J_Ca_jnciz = G_dCa_jnciz * (Ca_2_jnc[ii] - Ca_2_iz[ii]) * Sc_Cell; J_Ca_izblk = G_dCa_izblk * (Ca_2_iz[ii] - Ca_2_blk[ii]) * Sc_Cell; J_trans_SR = P_trans * (Ca_2_SRup[ii] - Ca_2_SRrl) * Sc_Cell; }
435396ef914042f28b5362f550ec16395d85371138cb30d0c3ffca2f307a3958
C
254
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_prosa_summaries(nlhs, plhs, nrhs, prhs, reparametrize_prosa_later); }
72be1cbe23c47a4f54e4db143ca5ae8dc9a33ffaccbd0174e7f4d8eb3528d0d4
C
254
13
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_seria_summaries(nlhs, plhs, nrhs, prhs, reparametrize_seria_wald); }
7641d34715708afa97c474a2e8cccef62b9a438b3366b35515ac13454210be24
C
254
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_prosa_summaries(nlhs, plhs, nrhs, prhs, reparametrize_prosa_gamma); }
8348a8e594f10cbc2e5e4e5e5f0b1ea0abbb2e60d7238c217eb992c95b723a6f
C
254
13
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_prosa_summaries(nlhs, plhs, nrhs, prhs, reparametrize_prosa_wald); }
ccce622cd5ba20ceb6bf20f98b54d543a9bd6b201af34cf377cad2a47b47ebf8
C
254
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_seria_summaries(nlhs, plhs, nrhs, prhs, reparametrize_seria_gamma); }
431b120550e17043497932e4f6a9f3d7f22b059421d6018540fecb9338f4b17d
C
255
13
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_seria_summaries(nlhs, plhs, nrhs, prhs, reparametrize_seria_later); }
53d176517fefec76f133d3ecad516dacfaea33e236ed14030419163c50247ee7
C
256
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_prosa_summaries(nlhs, plhs, nrhs, prhs, reparametrize_prosa_lognorm); }
86e0cbe94bfdad255451012c5dd570ac1b3c4aa3f656c46e840a3b0e6901859c
C
257
13
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_seria_summaries(nlhs, plhs, nrhs, prhs, reparametrize_seria_lognorm); }
f2b5fa4c4b87d7679ea71d7b629a0e6db62817d74260b13600f76c5cb3d0113f
C
257
12
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_prosa_summaries(nlhs, plhs, nrhs, prhs, reparametrize_prosa_invgamma); }
927dae98062a3726ef8426947f17928df73b9ce57cb1259645e7cc4d9c49704b
C
259
8
#include "build.h" void boundaryDiffusion() { J_Ca_jnciz = G_dCa_jnciz * (Ca_2_jnc[indx] - Ca_2_iz[indx]) * Sc_Cell; J_Ca_izblk = G_dCa_izblk * (Ca_2_iz[indx] - Ca_2_blk[indx]) * Sc_Cell; J_trans_SR = P_trans * (Ca_2_SRup[indx] - Ca_2_SRrl) * Sc_Cell; }
5be7301e25aafb16f5aef7059db39840617acc428f4b7f606ed4b228f48471d3
C
260
13
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_prosa_summaries(nlhs, plhs, nrhs, prhs, reparametrize_prosa_mixedgamma); }
4e09810a722abf9ff9b0b32ff7c26e70eeb83c9d46bdf6ba23996af2dbe86b30
C
262
13
/* [email protected] */ /* copyright (C) 2018 */ #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { reparametrize_prosa(nlhs, plhs, nrhs, prhs, reparametrize_prosa_wald); }
4e5c9edb09699f3f789738bdb11bb70cdb199045d97927aa035aeff53cf28d93
C
262
13
/* [email protected] */ /* copyright (C) 2018 */ #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { reparametrize_seria(nlhs, plhs, nrhs, prhs, reparametrize_seria_wald); }
4408d38102ae16579654bf4b7c1131fe6448977dd8e27572fa2874f5301f5d60
C
263
13
/* [email protected] */ /* copyright (C) 2018 */ #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { reparametrize_prosa(nlhs, plhs, nrhs, prhs, reparametrize_prosa_later); }
7d1f508e796be70a8f14ef7f70a0e01677ff537eea62dc3a73d6e87781c7a283
C
263
13
/* [email protected] */ /* copyright (C) 2018 */ #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { reparametrize_seria(nlhs, plhs, nrhs, prhs, reparametrize_seria_later); }
8dd1d48df5aa7c1c13f0f9c7e7794ad17632ce90135c655be2d9556c1e0a5ce7
C
263
13
/* [email protected] */ /* copyright (C) 2018 */ #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { reparametrize_prosa(nlhs, plhs, nrhs, prhs, reparametrize_prosa_gamma); }
9977f1a6097653fcf8247a07e0fc49b35cd5c211ceb3de8f57fd8cfc06b9dffc
C
263
13
/* [email protected] */ /* copyright (C) 2018 */ #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { reparametrize_seria(nlhs, plhs, nrhs, prhs, reparametrize_seria_gamma); }
27d0924333b0abbedd1201eb57c8de3332e0a97b89fece9512e879e794a60770
C
265
13
/* [email protected] */ /* copyright (C) 2018 */ #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { reparametrize_seria(nlhs, plhs, nrhs, prhs, reparametrize_seria_lognorm); }
6c3e77d44658f2eef6aae8f7d3c6bb02d4dcee53f5a37aae88c5ff84095ed63d
C
265
13
/* [email protected] */ /* copyright (C) 2018 */ #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { reparametrize_prosa(nlhs, plhs, nrhs, prhs, reparametrize_prosa_lognorm); }
38b9a57fee15b1345c3afd29b3e5cd74986caa7cbe0bd6bbcd08afa9ff0d5b88
C
266
13
/* [email protected] */ /* copyright (C) 2018 */ #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { reparametrize_seria(nlhs, plhs, nrhs, prhs, reparametrize_seria_invgamma); }
a2943d99041b390805dab6eae2ede2532afd7ea6ba3f0486f4799bf1a3c0062c
C
266
13
/* [email protected] */ /* copyright (C) 2018 */ #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { reparametrize_prosa(nlhs, plhs, nrhs, prhs, reparametrize_prosa_invgamma); }
5abeab2cbfe706d8040f28660b62a20c1c974dd1412a337888aabf9750f3a097
C
268
13
/* [email protected] */ /* copyright (C) 2018 */ #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { reparametrize_prosa(nlhs, plhs, nrhs, prhs, reparametrize_prosa_mixedgamma); }
2951193803d18480152201e3cdcd6606648ebbbb9355c04adbbc0d54ffd526bf
C
276
18
#include"variables.h" #include"constants.c" void I_stimulus() { /* External stimulus */ if(x%BCL >= start && x%BCL <= (start+sp)) { I_stim = Istim; } else { I_stim = 0; } }
3db66d884e684187c2f48a55de4450a96e7c20fa898974873535ae6d448f764f
C
278
12
#include"variables.h" #include"constants.h" #include <stdio.h> void potential() { V1[i][j]=(( ((-1.0*(I_total+I_stim[i][j]))/C_m) +((diffusion/(del_x*del_x))*(V[i+1][j]+V[i-1][j]-2*V[i][j])) +((diffusion/(del_x*del_x))*(V[i][j+1]+V[i][j-1]-2*V[i][j])) )*del_t)+V[i][j]; }
271aa5be510d61f9949de42856418b8e29813e810931f27a0736e717cae14bfe
C
282
14
/* [email protected] */ /* copyright (C) 2018 */ #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { reparametrize_seria(nlhs, plhs, nrhs, prhs, reparametrize_seria_mixedgamma); }
8655bb1f413410fd7cd6afa390c5eca1ea2ecea015b1fc335f746f20c07f2e91
C
286
15
/* [email protected] */ /* copyright (C) 2018 */ #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { wrapper_seria_summaries( nlhs, plhs, nrhs, prhs, reparametrize_seria_mixedgamma); }
af50afcf06fe6814b769923ccddef878922f9d4f566fd80da98e5f7103bc3d5a
C
296
18
#include"build.h" void open_files() { // Read Inputs sprintf(filename0,"output/procesor_%02d/V_0000.dat",myrank); fp0[myrank] = fopen(filename0,"w"); //printf("here is open_files\n"); sprintf(filename0,"output/procesor_%02d/V_last.dat",myrank); fp0[myrank] = fopen(filename0,"w"); }
6139b788e4cb1cc23c725bffc82e81a16e1c3c5ca5ae1cc917700cfdbbc0c81e
C
327
21
#include "bench.h" int main(int ac, char **av) { #if defined(sgi) || defined(sun) || defined(linux) usleep(atoi(av[1]) * 1000); return (0); #else fd_set set; int fd; struct timeval tv; tv.tv_sec = 0; tv.tv_usec = atoi(av[1]) * 1000; FD_ZERO(&set); FD_SET(0, &set); select(1, &set, 0, 0, &tv); return (0); #e...
5fdf7ff8097d314c4ad5264185006641a3a17afefeb16d78e91eb38a8338b7cf
C
328
36
#include"variables.h" #include"constants.c" void Initial_cond() { V=Vm; Na_i=Nai; Ca_i=Cai; K_i=Ki; Ca_sr=Casr; Ca_ss=Cass; m=0; h=0.75; j=0.75; d=0; f=1.0; f2=1.0; fCass=1.0; r=0; s=1.0; xs=0; xr1=0; xr2=1.0; R_bar=1.0; numbe...
e87d2e4d337ca19e884e9dcc4cff8602ba8e71d1b43fcd6bd12f6db0a91d8308
C
356
16
/* Licensed as Public Domain */ #include <execinfo.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> static void dump_trace() { void *buffer[255]; const int calls = backtrace(buffer, sizeof(buffer) / sizeof(void *)); backtrace_symbols_fd(buffer, calls, 1); exit(EXIT_FAILURE); } void setup_signals(...
7c3eaa5e0333a90cc588739cb79635c20971df22571ae41f0fb94b6eafa3741d
C
360
12
#include"build.h" void write_files() { //if (loop_count % step == 0) //fprintf(fp0[myrank],"%f\t %f\t %f\t %f\n" ,Vm[1],Vm[5],Vm[9],Vm[13]); //if(numProcs == 16) fprintf(fp0[myrank],"%f\t %f\t %f\t %f\t %f\t %f\t %f\t %f\n" ,Vm[1],Vm[5],Vm[9],Vm[13]); fprintf(fp0[myrank],"%f\t %f\t %f\t %f\t %f\t %f\t %...
807ece41bcc515788d0d9237074589462082b5b6569e9ccd279022449e49f978
C
363
18
#include"build.h" void stimulus() { //printf("yes stimuli is coming"); if(plane_wave){ /*########### Plane wave ##########*/ if(myrank == 0 && ii==1 ) { if(loop_count%CL >= stim_init1 && loop_count%CL < (stim_init1 + stim_duration)) { I_app1[ii] = Amp1; I_app2[ii] = 0; }else { I_app1[ii] =...
7c9598a70380c219d84155d22075c07d28e81d4c4426a45aad61ed41b8bae63b
C
440
33
#include"variables.h" #include"constants.h" void Boundary_condition() { if(!SOURCE) { /* Y boundary */ for(i=1;i<(points+1);i++) { V[i][0]=V[i][2]; V[i][space_y+1]=V[i][space_y-1]; } /* X boundary */ if(rank==0) { for(j=1;j<=space_y;j++) { V[0][j]=V[2][j]; } ...
1f8e5139608f607cf7920d19848783ac431f1d714b59da95385bb5259562cea0
C
443
16
#include "grid_purkinje.h" #include "../../3dparty/stb_ds.h" #include "../../utils/file_utils.h" struct grid_purkinje *new_grid_purkinje() { struct grid_purkinje *result = (struct grid_purkinje *)malloc(sizeof(struct grid_purkinje)); result->first_cell = NULL; result->purkinje_cells = NULL; result->n...
404763284fc587fbf62d59f2ec08f703d69206ada398c9b5ade8a0a819548e63
C
461
23
#include"constants.c" #include"variables.h" /*void write_files() { fwrite(&V[i][j],sizeof(double),1,Vout[rank]); }*/ void write_snaps() { //for(i=1;i<=points;i++) //{,V{} //if(i%4 == 1) // 1,5,9,13th points at each proc fprintf(Vout...
37cb013734bf42c974e9b51b97c0ee24c5f7f8eee912f03bf0b050d885919627
C
467
25
#include"variables.h" #include"constants.c" /*void Open_files() { sprintf(filename_V,"V_%d.dat",rank); Vout[rank]=fopen(filename_V,"w"); //sprintf(filename_Tser,"Tser_%d.dat",rank); //Tser[rank]=fopen(filename_Tser,"w"); }*/ void Open_snaps() { sprintf(filename_V,"output/procesor_%02d/V_%04d.dat",rank,sn...
02b9fd81c7d874cec2c79ffe4f1518528fec1e80988f9fc79addea8030b31547
C
486
18
/* * Dynamically loaded filter plugin for HDF5 Bitshuffle filter. * * This file is part of Bitshuffle * Author: Kiyoshi Masui <[email protected]> * Website: https://www.github.com/kiyo-masui/bitshuffle * Created: 2014 * * See LICENSE file for details about copyright and rights to use. * */ #include "bshuf...
df4ebc5908d224c9093c263a3ba0c307f7d75021f28679dd6a3e02f254b668e2
C
517
42
#include"variables.h" #include"constants.c" void Boundary_condition() { if(!source) { // Y boundary /* for(i=1;i<(points+1);i++) { V[i][0]=V[i][2]; V[i][space_y+1]=V[i][space_y-1]; } // X boundary if(rank==0) { for(j=1;j<=space_y;j++) { V[0][j]=V[2][j]; } } ...
836eb75a467fc261a88a731ec3ecbfeba788fe207444eea92c3ade690cea4d00
C
521
42
#ifdef linux /* * flushdisk() - linux block cache clearing */ #include <stdio.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <sys/ioctl.h> #include <sys/mount.h> int flushdisk(int fd) { int ret = ioctl(fd, BLKFLSBUF, 0); usleep(100000); return (ret); } #endif #ifd...
6bdc18e623c04dfa7b53846de53087dd1fa84d13e23974e0b5f612678e13bc3e
C
555
25
/* [email protected] */ /* copyright (C) 2015 */ // Returns the codes of the pro and the antisaccades. #include "antisaccades.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { double *arr; if ( nlhs != 1 ) mexErrMsgIdAndTxt("tapas:sem:codes", "Only one argument ...
725fb71c79cebcc9f0246fd93f5f368bfecc87d19ccd8c4ff5d1efffe2253490
C
556
11
#include "build.h" void ionConcentration() { dCa_2_tot_jncdt = -I_tot_Ca_jnc * Cm / (V_jnc * 2 * F) + J_Ca_rel / V_jnc - J_Ca_jnciz / V_jnc; dCa_2_tot_izdt = -I_tot_Ca_iz * Cm / (V_iz * 2 * F) + J_Ca_jnciz / V_iz - J_Ca_izblk / V_iz; dCa_2_tot_blkdt = -I_tot_Ca_blk * Cm / (V_blk * 2 * F) - J_SERCA / V_blk + J_Ca_iz...
9abe050c894458fc36e8e909153105a0d0e43c15853ad7c45ca2c5476cbd5430
C
560
11
#include "build.h" void ionConcentration() { dCa_2_tot_jncdt = -I_tot_Ca_jnc * Cm / (V_jnc * 2 * F) + J_Ca_rel / V_jnc - J_Ca_jnciz / V_jnc; dCa_2_tot_izdt = -I_tot_Ca_iz * Cm / (V_iz * 2 * F) + J_Ca_jnciz / V_iz - J_Ca_izblk / V_iz; dCa_2_tot_blkdt = -I_tot_Ca_blk * Cm / (V_blk * 2 * F) - J_SERCA / V_blk + J_Ca_iz...
a0745caf1f6b162483c6d77e763b215698b1d9af8f329f6f1870f798a48e1913
C
565
24
/* * clock.c * * calculate the minimum timing loop length that gives us significant results */ #include "bench.h" char *id = "$Id$"; char *revision = "$Revision$"; main() { uint64 enough; double t_overhead, l_overhead; enough = compute_enough(15); printf("ENOUGH=%lu\n", (unsigned long)enough); fflush(stdout)...
c0cc420b4f3ee7e40f59c903a0374ae50c1978490d1707fccbc43363d27874f9
C
565
26
/* [email protected] */ /* copyright (C) 2015 */ // Returns the codes of the pro and the antisaccades. #include "antisaccades.h" #include "mexutils.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { double *arr; if ( nlhs != 1 ) mexErrMsgIdAndTxt("tapas:sem", "On...
c823761e8fe15377981e1e8cc9482536096b1c1a36357ea38a2db75e8488e985
C
598
14
#include "constants.h" #include "variable.c" void potential() { //V += ddt_V*del_t indx = i*(space_y+2)*(space_z+2)+j*(space_z+2)+k; V1[indx] = ( I_total + (diffusion/(del_x*del_x))*(V[(i+1)*(space_y+2)*(space_z+2)+j*(space_z+2)+k] + V[(i-1)*(space_y+2)*(space_z+2)+j*(space_z+2)+k]-2*V[indx]) + (diffusion/(del...
a538df3df01e9ce1ddcac3c9708110160075fbfd6253648063f4fe552499686c
C
602
42
#include"variables.h" #include"constants.c" void Initial_condition() { for(i=1;i<=points;i++) { V[i]=Vm; m[i]=0; h[i]=0.75; j_1[i]=0.75; d[i]=0; f[i]=1.0; f2[i]=1.0; fCass[i]=1.0; r[i]=0; s[i]=1.0; xs[i]=0; xr1[i]=0; xr2[i]=1.0; R_bar[i]=1.0;...
3bda1141bfdac74efd6d375217cd3898c4bacd8c473f616694a92bcde444f597
C
608
27
/* [email protected] */ /* copyright (C) 2015 */ // Returns the codes of the pro and the antisaccades. #include "mexutils.h" #include "antisaccades.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { double *arr; if ( nlhs != 1 ) mexErrMsgIdAndTxt("tapas:sem:codes...
3382e747cf722308d305482c46b85f09d4a6573d491ebed641612e2e6410965b
C
673
25
#include"build.h" void mpi_send_rec() { if(myrank%2==0) { MPI_Send(&Vm[1],1,MPI_DOUBLE,leftProc,10,MPI_COMM_WORLD); MPI_Recv(&Vm[0],1,MPI_DOUBLE,leftProc,11,MPI_COMM_WORLD,&status); MPI_Send(&Vm[mypoints],1,MPI_DOUBLE,rightProc,12,MPI_COMM_WORLD); MPI_Recv(&Vm[mypoints+1],1,MPI_DOUBLE,rightProc,13,MPI_COMM_W...
524c13036d9fda2c252683954d1ada83862f12489e136341b64583267156fa0f
C
694
26
#include"constants.c" #include"variables.h" #include<mpi.h> void send_and_recieve() { if(rank%2==0) { MPI_Send(&V[1],1,MPI_DOUBLE,leftproc,10,MPI_COMM_WORLD); MPI_Recv(&V[0],1,MPI_DOUBLE,leftproc,11,MPI_COMM_WORLD,&status); MPI_Send(&V[points],1,MPI_DOUBLE,rightproc,12,MPI_COMM_WORLD); MPI_Recv(&V[points+1],...
004c498e77c9e6b50961223a8fc1b97da02d15a08c09ed513c1c55f6902c6c12
C
702
46
#include"variables.h" #include"constants.c" void AP_parameters() { number=x/BCL; if(V1[x]<V1[x+1] && V1[x+1]>V1[x+2]) { Vmax=V1[x]; if(Vmax>vmax) { fprintf(F2,"Vmax = %f\n",Vmax); } } if(V2[x] < V2[x+1] && V2[x+1]>V2[x+2]) { dVmax=V2[x+1]; if(dVmax>dvmax) { fprintf(F2,"dVmax = %f\n",dVmax)...
cf36120b7a26835b34355779159ff3ea4ad9992e7b59ab12919668a4873600cf
C
722
26
/****************************************************************************** * * This file is part of meryl, a genomic k-kmer counter with nice features. * * This software is based on: * 'Canu' v2.0 (https://github.com/marbl/canu) * which is based on: * 'Celera Assembler' r4587 (http://...
614f581fa0bbd79938f863ec85c49fddd1b9123c332327524d9eed9e0830c8e0
C
728
57
#include"variables.h" #include"constants.c" void I_stimulus() { /*if(source) { //############ Source ############# if(x<= (sp) && rank==32 && j==space_y/2) { I_stim[i][j]=Istim; } else { I_stim[i][j]=0.0; } } else if(spiral) { if(x<...
c3f8411a1cd3497fd16f84cec556e1dc7b65ce6d294b1b8db7b47da93162a841
C
728
33
#include <stdlib.h> #include "3dparty/ini_parser/ini.h" #include "config/config_parser.h" #include "config/postprocessor_config.h" static void print_usage(char **argv) { fprintf(stderr, "Usage: %s config_file.ini\n", argv[0]); } int main(int argc, char **argv) { if(argc != 2) { print_usage(argv); exit(EXIT_FA...
f0154a34349d8817fb7495971004b8b2c7e5cd427569ad7f430b6ed9c6be7f8f
C
740
15
#pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-function" #pragma GCC diagnostic ignored "-Wcast-qual" #define __NV_CUBIN_HANDLE_STORAGE__ static #if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__) #define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__ #endif #include "crt/host_runtime.h" #include...
6df390aa12128c2a2013e51d51ebaee11c33bedb7549dc4a7ff09beffb3aff34
C
749
58
#include"variables.h" #include"constants.h" #include <stdio.h> void I_stimulus() { if(SOURCE) { /*############ Source #############*/ if(x<= (sp) && rank==32 && j==space_y/2) { I_stim[i][j]=Istim; } else { I_stim[i][j]=0.0; } } else if(SPI...
44c1161faa5f9eb95463fe14815f44389c457ff480a0b6631ca23ff4d3fd1105
C
767
25
#include"constants.h" #include"variables.h" #include"mpi.h" #include <stdio.h> void send_and_recieve() { if(rank%2==0) { MPI_Send(V[1],space_y+2,MPI_DOUBLE,leftproc,10,MPI_COMM_WORLD); MPI_Recv(V[0],space_y+2,MPI_DOUBLE,leftproc,11,MPI_COMM_WORLD,&status); MPI_Send(V[points],space_y+2,MPI_DOUBLE,rightproc,12,M...
a97f4853e7c07bf9ae61bb158752932e7f5ab7176f7a46572cf006ced1efbc51
C
802
34
#include <math.h> #include "mex.h" /* See lbfgsAdd.m for details */ /* This function will not exit gracefully on bad input! */ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { /* Variable Declarations */ double *s,*y,*S, *Y, ys; int i,j,nVars,lbfgs_end; /* Get Input ...
e2ade5ecdfd4bf8bd94b7869f6738098a320db7f81c035dba29fdd1dc64d4dba
C
809
42
/* * stop_watch.c * * Created on: 29/07/2011 * Author: sachetto */ #include "stop_watch.h" #include <stdlib.h> #include <stdio.h> void init_stop_watch(struct stop_watch *sw) { sw->running = false; } void start_stop_watch(struct stop_watch *sw) { if (gettimeofday(&(sw->tv), NULL) < 0) { pe...
ce8bb510886f9096b0fc8d1f972cb3596460349c6fed1f14d696a1e409c12091
C
823
28
#include "lbfgsb.h" #include <time.h> int timer(double *ttime) { clock_t temp; /* this routine computes cpu time in double precision; it makes use of */ /* the intrinsic f90 cpu_time therefore a conversion type is */ /* needed. */ /* j.l morales departamento de Matematicas, */ /* ...
01c582d2ba8a4dd7d97f55d4aab98d303a795c4266db7248c213014ccc103cbd
C
845
46
/* [email protected] */ /* copyright (C) 2016 */ #include "antisaccades.h" // Populate an array int populate_parameters_prosa(const double *theta, PROSA_PARAMETERS *stheta) { stheta->kp = theta[0]; stheta->tp = theta[1]; stheta->ka = theta[2]; stheta->ta = theta[3]; stheta->ks = theta[4]; ...
68d1706083ac19bb0a00b4c3a7945bd5fc2bd0979ad4568eb0ab13c11ea9d8e4
C
846
29
/****************************************************************************** * * This file is part of meryl-utility, a collection of miscellaneous code * used by Meryl, Canu and others. * * This software is based on: * 'Canu' v2.0 (https://github.com/marbl/canu) * which is based on: * ...
96e4c409577c9e2c8c4bff5555a7d4a4b5308eafe4cd65679ca1d5ca6d783104
C
934
14
#include "build.h" void contraction() { TS = TS_tot - TSCa_3[ii] - TSCa_3W[ii] - TSCa_3S[ii] - TS_S[ii] - TS_W[ii]; rate_g = Za + Yv * (1 - exp(-propFh * pow(hw[ii] - hwr, 2))); rate_gd = Yd + Yc * pow(halfSL - Lc, 2) + Yvd * (1 - exp(-propFh * pow(hw[ii] - hwr, 2))); dTSCa_3dt = Yb * TS * pow(Ca_2_blk[ii] * 1000,...
e4a6d464fa3a28a13dd7d2d3806f49e0813ddf611bd905d3553760efd0389a5f
C
939
33
/****************************************************************************** * * This file is part of meryl-utility, a collection of miscellaneous code * used by Meryl, Canu and others. * * This software is based on: * 'Canu' v2.0 (https://github.com/marbl/canu) * which is based on: * ...
a79ca239b4176f5b881832db33f44a3fe1298be3f012ee2d2ad3598fc3cbec9f
C
948
41
/* * Dynamically loaded filter plugin for HDF5 LZF filter. * * This file is part of Bitshuffle * Author: Kiyoshi Masui <[email protected]> * Website: https://www.github.com/kiyo-masui/bitshuffle * Created: 2014 * * See LICENSE file for details about copyright and rights to use. * */ #define H5Z_class_t_ve...
8d8cc1fd974a974b28238261c9013343e5dbf15d71a2aaa6541882b7664db77e
C
949
32
/****************************************************************************** * * This file is part of meryl-utility, a collection of miscellaneous code * used by Meryl, Canu and others. * * This software is based on: * 'Canu' v2.0 (https://github.com/marbl/canu) * which is based on: * ...
288fb0d86b7573c5bc496b61c9773f81213b3bbabfcd3335f5ca3e3f30763f19
C
994
14
#include "build.h" void contraction() { TS = TS_tot - TSCa_3[indx] - TSCa_3W[indx] - TSCa_3S[indx] - TS_S[indx] - TS_W[indx]; rate_g = Za + Yv * (1 - exp(-propFh * pow(hw[indx] - hwr, 2))); rate_gd = Yd + Yc * pow(halfSL - Lc, 2) + Yvd * (1 - exp(-propFh * pow(hw[indx] - hwr, 2))); dTSCa_3dt = Yb * TS * pow(Ca_2_b...
0d56625c1471e9ad8148a0b4bb74a04cc6f5f980681ef9acd2730ab3abe38bf6
C
1,023
38
// // Created by sachetto on 13/10/17. // #include "postprocessor_config.h" #include <stdlib.h> #include "../3dparty/stb_ds.h" #include "../logger/logger.h" #include <dlfcn.h> struct postprocess_function *new_postprocess_function() { struct postprocess_function *ret = malloc(sizeof(struct postprocess_function))...
165bde3012ef20a143ea70cdfd44de17c5c6e52c283e2543f944067641c538b2
C
1,092
38
/****************************************************************************** * * This file is part of meryl-utility, a collection of miscellaneous code * used by Meryl, Canu and others. * * This software is based on: * 'Canu' v2.0 (https://github.com/marbl/canu) * which is based on: * ...
94a6e31f17ff98dac25a31ff2277d39d0bbafd032760683edacc260242d017e4
C
1,101
33
/* * This file is part of TISEAN * * Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber * * TISEAN is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Li...
c7a9f440a5c1b95f6a065bc88b041fdf07cd27c82ff56fa48351a8d20fc6bf5a
C
1,136
31
/* * This file is part of TISEAN * * Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber * * TISEAN is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Li...
fcd211ef91294240078946f8adaa1b8ed28ef1ee7531d5565f6a36541cb3e6cc
C
1,139
51
#include "mex.h" #include <stdio.h> /*Function to reverse arr[] from index start to end*/ void reverseArray(double arr[], int start, int end) { int temp; while (start < end) { temp = arr[start]; arr[start] = arr[end]; arr[end] = temp; start++; end--; } } ...
8fce0460e3f0a48be02d75debe2c97c422f5666d1f55e055f62b60e659827266
C
1,144
52
#include "blas.h" #ifdef __cplusplus extern "C" { #endif int dscal_(int *n, double *sa, double *sx, int *incx) { long int i, m, nincx, nn, iincx; double ssa; /* scales a vector by a constant. uses unrolled loops for increment equal to 1. jack dongarra, linpack, 3/11/78. modified 3/...
7787a18fb36e12b05f8d04afb2172d4fbedb88b3d1295645fe44edfb6d6dfb0a
C
1,157
31
/* * This file is part of TISEAN * * Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber * * TISEAN is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Li...
dda91bfdf2cb716863ecf8fffd75e2ce4c2a4cd2855ff708e271da1f81c90c30
C
1,161
47
#include "constants.h" #include "variable.c" void Boundary_condition() { // Y boundary for(i=1;i<(points+1);i++) { for(k=1;k<(space_z+1);k++) { V[i*(space_y+2)*(space_z+2)+0*(space_z+2)+k] = V[i*(space_y+2)*(space_z+2)+2*(space_z+2)+k]; V[i*(space_y+2)*(space_z+2)+(space_y+1)*(space_z+2)+k] ...
f5516761b44f6f62ec47a295e577708fa1158f1c2fc0bb1df534b083989b74dc
C
1,183
35
/* * This file is part of TISEAN * * Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber * * TISEAN is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Li...
d34dadb12fac5582a49ab0a14f12cdd987bb39ee37dd8ed266aa618b622d987b
C
1,195
47
#include"build.h" void bound_cond() { // Y boundary for(ii=1;ii<(mypoints+1);ii++) { for(kk=1;kk<(z_space+1);kk++) { Vm[ii*(y_space+2)*(z_space+2)+0*(z_space+2)+kk] = Vm[ii*(y_space+2)*(z_space+2)+2*(z_space+2)+kk]; Vm[ii*(y_space+2)*(z_space+2)+(y_space+1)*(z_space+2)+kk] = Vm[ii*(y_space+2...
bb06337cfac5149884a4c9f238728ff5c12bb9f7abccebb3bf02e32fcabd5e5a
C
1,199
36
#include "build.h" void membranePotential() { double diff; I_tot_K = (I_CaL_K_jnc + I_CaL_K_iz + I_CaL_K_blk) + I_NaT_K + I_NaL_K + I_K1 + I_Kr + (I_Ks_K_iz + I_Ks_K_blk) + I_Kto + I_Kpl + I_NaK_K + I_KATP + I_bNSC_K + (I_l_Ca_K_iz + I_l_Ca_K_blk); I_tot_Na = (I_CaL_Na_jnc + I_CaL_Na_iz + I_CaL_Na_blk) + (I_NCX_Na...
56da639c76e62efa0b1f344c5cea8c7e8b1a67cb02a47fb019a0f044414cff51
C
1,243
39
/* * This file is part of TISEAN * * Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber * * TISEAN is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Li...
208aaa560448b8c905712520a3c91e827907105dae37f3c7f0481603b5616cbd
C
1,251
48
/****************************************************************************** * * This file is part of meryl-utility, a collection of miscellaneous code * used by Meryl, Canu and others. * * This software is based on: * 'Canu' v2.0 (https://github.com/marbl/canu) * which is based on: * ...
034c0a94d4fc3fabdb0925c22bfc83b3a09fde286b12436959bd7f52b1a1589e
C
1,274
38
/* * This file is part of TISEAN * * Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber * * TISEAN is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Li...
d71858a4242638c622e21ef846ca53f365869a1ae06d53cd9c3927e4447091a0
C
1,288
65
char *id = "$Id$\n"; /* * Seek - calculate seeks as a function of distance. * * Usage: seek file size * * Copyright (c) 1994,1995,1996 Larry McVoy. All rights reserved. */ #include "bench.h" #define STRIDE 1024*1024 main(ac, av) int ac; char *av[]; { char buf[512]; int disk; off_t size; off_t begin, e...
728f09d494570b2c797d5c9c926c5bc5f7a9f299b306e467d77ea5fac280f74a
C
1,301
49
/* MEX interface for TQLB. Matlab calling sequence: [lambda,top,bot,err] = tqlb(alpha,beta) */ #include <string.h> #include "mex.h" /* Template for tqlb: */ void tqlb_(int *n, double *d__, double *e, double *bnd, double *bnd2, int *ierr); /* Here comes the gateway function to be called by Matlab: */ vo...
a8d17073f26ab68bde1d1d840228172ba85248d7e54c5a8c771b51549304f8d2
C
1,304
39
/* * This file is part of TISEAN * * Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber * * TISEAN is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Li...
8f4f666c5b9376d8daa6eb3f76248938cb64e11a1a0ec300846bd2dd30d6414c
C
1,318
70
/* z = trapzf(x,y) Trapezoid sum computed with vector multiply. z = sum( (x(2:N) - x(1:N-1)) .* (y(1:N-1) + y(2:N)) )/2; */ #include "mex.h" static double trapzf(double *area, double *x, double *y, int N) { int i; if(N==1) {*area = 0; return *area; } /* integration */ ...
68e425c0489959e47d4f262a95333acd22147e1013899cf4f6289409cd2257cd
C
1,322
57
#include "blas.h" #ifdef __cplusplus extern "C" { #endif int daxpy_(int *n, double *sa, double *sx, int *incx, double *sy, int *incy) { long int i, m, ix, iy, nn, iincx, iincy; register double ssa; /* constant times a vector plus a vector. uses unrolled loop for increments equal to...
3f4ce7b09ebd08e0834ecf8f77f796f47c0efbb71ea566f02c86d679921a4a60
C
1,329
58
#include "blas.h" #ifdef __cplusplus extern "C" { #endif double ddot_(int *n, double *sx, int *incx, double *sy, int *incy) { long int i, m, nn, iincx, iincy; double stemp; long int ix, iy; /* forms the dot product of two vectors. uses unrolled loops for increments equal to one. jack ...
bbcac8a7a32c606106f729f06c211e37acdce57cbd7a411cfd5eda220a16e05d
C
1,341
44
/* * This file is part of TISEAN * * Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber * * TISEAN is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Li...
92f021ad424031d6b3feb59a77697dfc1942fee4327b3cc272e7ae6813528a11
C
1,360
45
/* * This file is part of TISEAN * * Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber * * TISEAN is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Li...
0ca7cfbdbd4c0a9b25d1b083e4803b98b9f0e188727ea97025d40973eb7da16c
C
1,393
56
#include <stdio.h> #include "hocdec.h" #define IMPORT extern __declspec(dllimport) IMPORT int nrnmpi_myid, nrn_nobanner_; extern void _CaDynamics_E2_reg(); extern void _Ca_HVA_reg(); extern void _Ca_LVAst_reg(); extern void _Ih_reg(); extern void _Im_reg(); extern void _K_Pst_reg(); extern void _K_Tst_reg(); extern vo...