Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
alpha-mind
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dr.李
alpha-mind
Commits
2c095621
Commit
2c095621
authored
May 01, 2017
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added back nogil signature
parent
9a8514ca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
aggregate.pyx
alphamind/aggregate.pyx
+5
-5
No files found.
alphamind/aggregate.pyx
View file @
2c095621
...
...
@@ -59,7 +59,7 @@ cpdef list groupby(long[:] groups):
@cython.boundscheck(False)
@cython.wraparound(False)
@cython.initializedcheck(False)
cdef long* group_mapping(long* groups, size_t length, size_t* max_g):
cdef long* group_mapping(long* groups, size_t length, size_t* max_g)
nogil
:
cdef long *res_ptr = <long*>malloc(length*sizeof(long))
cdef cpp_map[long, long] current_hold
cdef long curr_tag
...
...
@@ -85,7 +85,7 @@ cdef long* group_mapping(long* groups, size_t length, size_t* max_g):
@cython.wraparound(False)
@cython.cdivision(True)
@cython.initializedcheck(False)
cdef double* agg_sum(long* groups, size_t max_g, double* x, size_t length, size_t width):
cdef double* agg_sum(long* groups, size_t max_g, double* x, size_t length, size_t width)
nogil
:
cdef double* res_ptr = <double*>malloc((max_g+1)*width*sizeof(double))
cdef size_t i
cdef size_t j
...
...
@@ -108,7 +108,7 @@ cdef double* agg_sum(long* groups, size_t max_g, double* x, size_t length, size_
@cython.wraparound(False)
@cython.cdivision(True)
@cython.initializedcheck(False)
cdef double* agg_abssum(long* groups, size_t max_g, double* x, size_t length, size_t width):
cdef double* agg_abssum(long* groups, size_t max_g, double* x, size_t length, size_t width)
nogil
:
cdef double* res_ptr = <double*>malloc((max_g+1)*width*sizeof(double))
cdef size_t i
cdef size_t j
...
...
@@ -131,7 +131,7 @@ cdef double* agg_abssum(long* groups, size_t max_g, double* x, size_t length, si
@cython.wraparound(False)
@cython.cdivision(True)
@cython.initializedcheck(False)
cdef double* agg_mean(long* groups, size_t max_g, double* x, size_t length, size_t width):
cdef double* agg_mean(long* groups, size_t max_g, double* x, size_t length, size_t width)
nogil
:
cdef double* res_ptr = <double*>malloc((max_g+1)*width*sizeof(double))
cdef long* bin_count_ptr = <long*>malloc((max_g+1)*sizeof(long))
cdef size_t i
...
...
@@ -169,7 +169,7 @@ cdef double* agg_mean(long* groups, size_t max_g, double* x, size_t length, size
@cython.wraparound(False)
@cython.cdivision(True)
@cython.initializedcheck(False)
cdef double* agg_std(long* groups, size_t max_g, double* x, size_t length, size_t width, long ddof=1):
cdef double* agg_std(long* groups, size_t max_g, double* x, size_t length, size_t width, long ddof=1)
nogil
:
cdef double* running_sum_square_ptr = <double*>malloc((max_g+1)*width*sizeof(double))
cdef double* running_sum_ptr = <double*>malloc((max_g+1)*width*sizeof(double))
cdef long* bin_count_ptr = <long*>malloc((max_g+1)*sizeof(long))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment