mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
More of:
(Shared Arrays): New section.
This commit is contained in:
parent
b4b78f5d7d
commit
d8c3fde933
1 changed files with 14 additions and 14 deletions
|
@ -1968,20 +1968,6 @@ same type, and have corresponding elements which are either
|
||||||
@var{array-equal?} but not @var{equal?} to a vector or uniform vector.
|
@var{array-equal?} but not @var{equal?} to a vector or uniform vector.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@deffn {Scheme Procedure} array-contents array [strict]
|
|
||||||
@deffnx {C Function} scm_array_contents (array, strict)
|
|
||||||
If @var{array} may be @dfn{unrolled} into a one dimensional shared array
|
|
||||||
without changing their order (last subscript changing fastest), then
|
|
||||||
@code{array-contents} returns that shared array, otherwise it returns
|
|
||||||
@code{#f}. All arrays made by @code{make-array} and
|
|
||||||
@code{make-generalized-array} may be unrolled, some arrays made by
|
|
||||||
@code{make-shared-array} may not be.
|
|
||||||
|
|
||||||
If the optional argument @var{strict} is provided, a shared array will
|
|
||||||
be returned only if its elements are stored internally contiguous in
|
|
||||||
memory.
|
|
||||||
@end deffn
|
|
||||||
|
|
||||||
@c FIXME: array-map! accepts no source arrays at all, and in that
|
@c FIXME: array-map! accepts no source arrays at all, and in that
|
||||||
@c case makes calls "(proc)". Is that meant to be a documented
|
@c case makes calls "(proc)". Is that meant to be a documented
|
||||||
@c feature?
|
@c feature?
|
||||||
|
@ -2208,6 +2194,20 @@ Return the root vector index of the first element in the array.
|
||||||
Return the root vector of a shared array.
|
Return the root vector of a shared array.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
|
@deffn {Scheme Procedure} array-contents array [strict]
|
||||||
|
@deffnx {C Function} scm_array_contents (array, strict)
|
||||||
|
If @var{array} may be @dfn{unrolled} into a one dimensional shared array
|
||||||
|
without changing their order (last subscript changing fastest), then
|
||||||
|
@code{array-contents} returns that shared array, otherwise it returns
|
||||||
|
@code{#f}. All arrays made by @code{make-array} and
|
||||||
|
@code{make-generalized-array} may be unrolled, some arrays made by
|
||||||
|
@code{make-shared-array} may not be.
|
||||||
|
|
||||||
|
If the optional argument @var{strict} is provided, a shared array will
|
||||||
|
be returned only if its elements are stored internally contiguous in
|
||||||
|
memory.
|
||||||
|
@end deffn
|
||||||
|
|
||||||
@deffn {Scheme Procedure} transpose-array array dim1 @dots{}
|
@deffn {Scheme Procedure} transpose-array array dim1 @dots{}
|
||||||
@deffnx {C Function} scm_transpose_array (array, dimlist)
|
@deffnx {C Function} scm_transpose_array (array, dimlist)
|
||||||
Return an array sharing contents with @var{array}, but with
|
Return an array sharing contents with @var{array}, but with
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue