aboutsummaryrefslogtreecommitdiff
path: root/src/lib/src/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/src/matrix.c')
-rw-r--r--src/lib/src/matrix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/src/matrix.c b/src/lib/src/matrix.c
index d98c8bb..d5c3fcc 100644
--- a/src/lib/src/matrix.c
+++ b/src/lib/src/matrix.c
@@ -26,6 +26,12 @@ void nnMatrixDel(nnMatrix* matrix) {
26 } 26 }
27} 27}
28 28
29nnMatrix nnMatrixFromArray(int rows, int cols, const R values[]) {
30 nnMatrix m = nnMatrixMake(rows, cols);
31 nnMatrixInit(&m, values);
32 return m;
33}
34
29void nnMatrixMove(nnMatrix* in, nnMatrix* out) { 35void nnMatrixMove(nnMatrix* in, nnMatrix* out) {
30 assert(in); 36 assert(in);
31 assert(out); 37 assert(out);