summaryrefslogtreecommitdiff
path: root/src/spires_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/spires_interface.h')
-rw-r--r--src/spires_interface.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/spires_interface.h b/src/spires_interface.h
new file mode 100644
index 0000000..0a8aa8c
--- /dev/null
+++ b/src/spires_interface.h
@@ -0,0 +1,24 @@
+#ifndef SPIRES_BACKEND_H
+#define SPIRES_BACKEND_H
+
+#include <stddef.h>
+#include <spires.h>
+
+typedef struct {
+ size_t num_samples;
+ size_t num_features;
+ double *states;
+} Reservoir_State_Matrix;
+
+int collect_reservoir_states(
+ const spires_reservoir *reservoir,
+ const double *input_series,
+ size_t series_length,
+ Reservoir_State_Matrix *result
+);
+
+void free_reservoir_state_matrix(
+ Reservoir_State_Matrix *matrix
+);
+
+#endif