summaryrefslogtreecommitdiff
path: root/libguile/arrays.h
diff options
context:
space:
mode:
authorDaniel Llorens <daniel.llorens@bluewin.ch>2015-02-11 16:44:21 +0100
committerDaniel Llorens <daniel.llorens@bluewin.ch>2016-07-11 09:11:50 +0200
commit7d7ada39d09e718cda8002a7b46584c62e99adc1 (patch)
tree54e1502332b387e549a745e0c0cd21aa047f4e77 /libguile/arrays.h
parent839dec6325f1ec9acb72ead9e4aef87c9395264e (diff)
downloadguile-7d7ada39d09e718cda8002a7b46584c62e99adc1.tar.gz
New functions array-from, array-from*, array-set-from!
* libguile/arrays.h (scm_array_from, scm_array_from_s, scm_array_set_from_x): new declarations. * libguile/arrays.c (scm_array_from, scm_array_from_s, scm_array_set_from_x): new functions, export as array-from, array-from*, array-set-from!.
Diffstat (limited to 'libguile/arrays.h')
-rw-r--r--libguile/arrays.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libguile/arrays.h b/libguile/arrays.h
index 4baa51eb4..6399333f9 100644
--- a/libguile/arrays.h
+++ b/libguile/arrays.h
@@ -41,12 +41,18 @@ SCM_API SCM scm_make_typed_array (SCM type, SCM fill, SCM bounds);
SCM_API SCM scm_from_contiguous_typed_array (SCM type, SCM bounds,
const void *bytes,
size_t byte_len);
+
SCM_API SCM scm_shared_array_root (SCM ra);
SCM_API SCM scm_shared_array_offset (SCM ra);
SCM_API SCM scm_shared_array_increments (SCM ra);
+
SCM_API SCM scm_make_shared_array (SCM oldra, SCM mapfunc, SCM dims);
SCM_API SCM scm_transpose_array (SCM ra, SCM args);
SCM_API SCM scm_array_contents (SCM ra, SCM strict);
+SCM_API SCM scm_array_from_s (SCM ra, SCM indices);
+SCM_API SCM scm_array_from (SCM ra, SCM indices);
+SCM_API SCM scm_array_set_from_x (SCM ra, SCM b, SCM indices);
+
SCM_API SCM scm_list_to_array (SCM ndim, SCM lst);
SCM_API SCM scm_list_to_typed_array (SCM type, SCM ndim, SCM lst);