NEURON
nrncore_utils.h File Reference
#include <string>
#include "nrnwrap_dlfcn.h"

Go to the source code of this file.

Functions

void model_ready ()
 
int count_distinct (double *data, int len)
 Count number of unique elements in the array. More...
 
void nrnbbcore_register_mapping ()
 For BBP use case, we want to write section-segment mapping to gid_3.dat file. More...
 
bool file_exist (const std::string &path)
 Check if file with given path exist. More...
 
int nrn_dblpntr2nrncore (double *pd, NrnThread &nt, int &type, int &index)
 

Function Documentation

◆ count_distinct()

int count_distinct ( double *  data,
int  len 
)

Count number of unique elements in the array.

there is a copy of the vector but we are primarily using it for small section list vectors.

Definition at line 69 of file nrncore_utils.cpp.

◆ file_exist()

bool file_exist ( const std::string &  path)

Check if file with given path exist.

Definition at line 123 of file nrncore_utils.cpp.

◆ model_ready()

void model_ready ( )

Definition at line 34 of file nrncore_utils.cpp.

◆ nrn_dblpntr2nrncore()

int nrn_dblpntr2nrncore ( double *  pd,
NrnThread nt,
int &  type,
int &  index 
)

Definition at line 137 of file nrncore_utils.cpp.

◆ nrnbbcore_register_mapping()

void nrnbbcore_register_mapping ( )

For BBP use case, we want to write section-segment mapping to gid_3.dat file.

This information will be provided through neurodamus HOC interface with following format: gid : number of non-empty neurons in the cellgroup name : name of section list (like soma, axon, apic) nsec : number of sections sections : list of sections segments : list of segments

Definition at line 89 of file nrncore_utils.cpp.