Recent updates---some simplifications, optimizations, and better documentation
Bradley Lucier 24 Nov 2021 03:10 UTC
There have been several changes to the code and documentation in
https://github.com/gambiteer/srfi-179-followup/
Perhaps the most important change is an informal grouping and
description of some of the major routines in the SRFI.
Additionally, there have been a number of optimizations added to the
code, especially when copying array data, where, e.g., copying data from
a u8-storage-class to a s16-storage-class no longer requires type checks.
This is the summary of recent changes:
If the first argument to array-copy is a specialized array, then
omitted arguments are taken from the argument array and do not default
to generic-storage-class, (specialized-array-default-mutable?), and
(specialized-array-default-safe?). Thus, by default, array-copy makes a
true copy of a specialized array.
Procedures that generate useful permutations have been added:
index-rotate, index-first, and index-last.
interval-rotate and array-rotate have been removed; use
(array-permute A (index-rotate (array-dimension A) k)) instead of
(array-rotate A k).
Introduced new routines array-inner-product, array-stack, and
array-append.
A new set of "Introductory remarks" surveys some of the more
important procedures in this SRFI.
Brad