Skip to content
Snippets Groups Projects
Commit c6dac32c authored by Jakobsen, Mads Bregenholt's avatar Jakobsen, Mads Bregenholt
Browse files

blub

parent 5618340f
No related branches found
No related tags found
No related merge requests found
......@@ -6,3 +6,5 @@ void running_stats(
std::uint32_t data_size,
double* running_mean_mem,
double* nanmean_of_data);
void hello_world();
......@@ -26,6 +26,8 @@ cdef extern from "runningstats.h":
uint32_t,
double*&,
double*&)
void hello_world()
cpdef compute_stats(
np.ndarray[np.float32_t] data,
......@@ -33,13 +35,15 @@ cpdef compute_stats(
np.ndarray[np.float64_t] nanmean_of_data):
print("Hello from cython", data.size)
hello_world()
running_stats(
&data[0],
data.size,
&running_mean_mem[0],
&nanmean_of_data[0])
print("Hello from cython end")
......@@ -8,6 +8,11 @@
#include "task_thread_pool.hpp"
#include <chrono>
void hello_world()
{
std::cout << "Hello World from Stats\n";
}
void running_stats(
float* data,
std::uint32_t data_size,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment