CoreNEURON
ivocvect.cpp
Go to the documentation of this file.
1
/*
2
# =============================================================================
3
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
4
#
5
# See top-level LICENSE file for details.
6
# =============================================================================.
7
*/
8
9
#include "
coreneuron/utils/ivocvect.hpp
"
10
#include "
coreneuron/utils/offload.hpp
"
11
12
namespace
coreneuron
{
13
IvocVect
*
vector_new
(
int
n) {
14
return
new
IvocVect
(n);
15
}
16
int
vector_capacity
(
IvocVect
*
v
) {
17
return
v
->size();
18
}
19
double
*
vector_vec
(
IvocVect
*
v
) {
20
return
v
->data();
21
}
22
23
/*
24
* Retro-compatibility implementations
25
*/
26
IvocVect
*
vector_new1
(
int
n) {
27
return
new
IvocVect
(n);
28
}
29
30
nrn_pragma_acc
(routine seq)
31
int
vector_capacity
(
void
*
v
) {
32
return
((
IvocVect
*)
v
)->size();
33
}
34
35
nrn_pragma_acc
(routine seq)
36
double
*
vector_vec
(
void
*
v
) {
37
return
((
IvocVect
*)
v
)->data();
38
}
39
40
}
// namespace coreneuron
coreneuron::vector_new
IvocVect * vector_new(int n)
Definition:
ivocvect.cpp:13
coreneuron::vector_vec
double * vector_vec(IvocVect *v)
Definition:
ivocvect.cpp:19
coreneuron
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
Definition:
corenrn_parameters.cpp:12
ivocvect.hpp
coreneuron::fixed_vector< double >
coreneuron::vector_new1
IvocVect * vector_new1(int n)
Definition:
ivocvect.cpp:26
coreneuron::IvocVect
fixed_vector< double > IvocVect
Definition:
ivocvect.hpp:72
v
#define v
Definition:
md1redef.h:11
offload.hpp
coreneuron::nrn_pragma_acc
nrn_pragma_acc(routine vector) static void triang_interleaved2(NrnThread *nt
Definition:
ivocvect.cpp:30
coreneuron::vector_capacity
int vector_capacity(IvocVect *v)
Definition:
ivocvect.cpp:16
coreneuron
utils
ivocvect.cpp