diff options
author | Daniel Llorens <daniel.llorens@bluewin.ch> | 2015-02-11 16:44:21 +0100 |
---|---|---|
committer | Daniel Llorens <daniel.llorens@bluewin.ch> | 2016-11-23 13:04:26 +0100 |
commit | d1435ea6bdaa3c56d7f025f13d1e7d78c4d9b748 (patch) | |
tree | aeed800637c41e2e8800c4aebe92fe9326c10317 /libguile/arrays.h | |
parent | 7b6d854cf1b9e4bc5c85497fc0709210978e5a32 (diff) | |
download | guile-d1435ea6bdaa3c56d7f025f13d1e7d78c4d9b748.tar.gz |
New functions array-from, array-from*, array-amend!
* libguile/arrays.h (scm_array_from, scm_array_from_s,
scm_array_amend_x): New declarations.
* libguile/arrays.c (scm_array_from, scm_array_from_s,
scm_array_amend_x): New functions, export as array-from, array-from*,
array-amend!.
* test-suite/tests/arrays.test: Tests for array-from, array-from*,
array-amend!. Replace with-test-prefix/c&e with with-test-prefix where
the array read syntax isn't used.
Diffstat (limited to 'libguile/arrays.h')
-rw-r--r-- | libguile/arrays.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libguile/arrays.h b/libguile/arrays.h index a5cd43dc2..977d30760 100644 --- a/libguile/arrays.h +++ b/libguile/arrays.h @@ -43,12 +43,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_amend_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); |