aboutsummaryrefslogtreecommitdiff
path: root/ndarray.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-04-02 11:05:36 +0200
committerAnton Khirnov <anton@khirnov.net>2019-04-02 11:09:53 +0200
commit2e03749bb901494f857547cc518ad58eea76a098 (patch)
treec56c4d4b94f679394c980a9311e981a962415bbe /ndarray.h
parent140ea5d85e4711f95065b440f64f647f5511f5e9 (diff)
mg2d: add API for interpolating an initial guess from a provided grid
Diffstat (limited to 'ndarray.h')
-rw-r--r--ndarray.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ndarray.h b/ndarray.h
index c0d964b..9e1b8ba 100644
--- a/ndarray.h
+++ b/ndarray.h
@@ -57,6 +57,10 @@ int mg2di_ndarray_alloc(NDArray **result, unsigned int dims,
const size_t * const size, unsigned int flags);
void mg2di_ndarray_free(NDArray **a);
+int mg2di_ndarray_wrap(NDArray **result, unsigned int dims,
+ const size_t * const size, double *data,
+ const ptrdiff_t * const strides);
+
int mg2di_ndarray_slice(NDArray **result, NDArray *src,
const Slice * const slice);