diff options
-rw-r--r-- | doc/ref/api-utility.texi | 3 | ||||
-rw-r--r-- | doc/ref/new-docstrings.texi | 44 | ||||
-rw-r--r-- | doc/ref/srfi-modules.texi | 2 |
3 files changed, 47 insertions, 2 deletions
diff --git a/doc/ref/api-utility.texi b/doc/ref/api-utility.texi index 5d09e8396..1305a9259 100644 --- a/doc/ref/api-utility.texi +++ b/doc/ref/api-utility.texi @@ -420,7 +420,8 @@ This is a stable sort. @deffn {Scheme Procedure} restricted-vector-sort! vec less startpos endpos @deffnx {C Function} scm_restricted_vector_sort_x (vec, less, startpos, endpos) Sort the vector @var{vec}, using @var{less} for comparing -the vector elements. @var{startpos} and @var{endpos} delimit +the vector elements. @var{startpos} (inclusively) and +@var{endpos} (exclusively) delimit the range of the vector which gets sorted. The return value is not specified. @end deffn diff --git a/doc/ref/new-docstrings.texi b/doc/ref/new-docstrings.texi index f3ea72758..0f134df9d 100644 --- a/doc/ref/new-docstrings.texi +++ b/doc/ref/new-docstrings.texi @@ -11,3 +11,47 @@ or @samp{-inf.0}, @code{#f} otherwise. + + + +@deffn {Scheme Procedure} uniform-vector? obj +@deffnx {C Function} scm_uniform_vector_p (obj) +Return @code{#t} if @var{obj} is a uniform vector. +@end deffn + +@deffn {Scheme Procedure} uniform-vector-set! v idx val +@deffnx {C Function} scm_uniform_vector_set_x (v, idx, val) +Set the element at index @var{idx} of the +homogenous numeric vector @var{v} to @var{val}. +@end deffn + +@deffn {Scheme Procedure} uniform-vector->list uvec +@deffnx {C Function} scm_uniform_vector_to_list (uvec) +Convert the homogeneous numeric vector @var{uvec} to a list. +@end deffn + +@deffn {Scheme Procedure} make-u8vector len [fill] +@deffnx {C Function} scm_make_u8vector (len, fill) +Return a newly allocated homogeneous numeric vector which can +hold @var{len} elements. If @var{fill} is given, it is used to +initialize the elements, otherwise the contents of the vector +is unspecified. +@end deffn + +@deffn {Scheme Procedure} u8vector . l +@deffnx {C Function} scm_u8vector (l) +Return a newly allocated homogeneous numeric vector containing +all argument values. +@end deffn + +@deffn {Scheme Procedure} list->u8vector l +@deffnx {C Function} scm_list_to_u8vector (l) +Convert the list @var{l} to a numeric homogeneous vector. +@end deffn + +@deffn {Scheme Procedure} any->u8vector obj +@deffnx {C Function} scm_any_to_u8vector (obj) +Convert @var{obj}, which can be a list, vector, or +homogenous vector, to a numeric homogenous vector of +type u8. +@end deffn diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi index bee7794d8..316124e43 100644 --- a/doc/ref/srfi-modules.texi +++ b/doc/ref/srfi-modules.texi @@ -950,7 +950,7 @@ from separate @code{and} and @code{let*}, or from @code{cond} with @cindex SRFI-4 The SRFI-4 procedures and data types are always available, @xref{Uniform -Vectors}. +Numeric Vectors}. @node SRFI-6 @subsection SRFI-6 - Basic String Ports |