NEURON
nrncore_utils.h File Reference
#include "neuron/container/data_handle.hpp"
#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...
 
int nrn_dblpntr2nrncore (neuron::container::data_handle< 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 65 of file nrncore_utils.cpp.

◆ model_ready()

void model_ready ( )

Definition at line 37 of file nrncore_utils.cpp.

◆ nrn_dblpntr2nrncore()

int nrn_dblpntr2nrncore ( neuron::container::data_handle< double >  pd,
NrnThread nt,
int &  type,
int &  index 
)

Definition at line 133 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 seg_lfp_factors: list of lfp factors

Definition at line 86 of file nrncore_utils.cpp.