| 1 |
#!r6rs |
| 2 |
;; Copyright 2009 Derick Eddington. My MIT-style license is in the file named |
| 3 |
;; LICENSE from the original collection this file is distributed with. |
| 4 |
|
| 5 |
(library (srfi :25 multi-dimensional-arrays all) |
| 6 |
(export |
| 7 |
array:make |
| 8 |
array:array? |
| 9 |
array:vector |
| 10 |
array:index |
| 11 |
array:shape |
| 12 |
array-ref |
| 13 |
array-set! |
| 14 |
array:opt-args |
| 15 |
array:optimize |
| 16 |
array:optimize-empty |
| 17 |
array:coefficients |
| 18 |
array:vector-index |
| 19 |
array:shape-index |
| 20 |
array:empty-shape-index |
| 21 |
array:shape-vector-index |
| 22 |
array:actor-index |
| 23 |
array:0 |
| 24 |
array:1 |
| 25 |
array:2 |
| 26 |
array:3 |
| 27 |
array:n |
| 28 |
array:maker |
| 29 |
array:indexer/vector |
| 30 |
array:indexer/array |
| 31 |
array:applier-to-vector |
| 32 |
array:applier-to-actor |
| 33 |
array:applier-to-backing-vector |
| 34 |
array:index/vector |
| 35 |
array:index/array |
| 36 |
array:apply-to-vector |
| 37 |
array:apply-to-actor |
| 38 |
array? |
| 39 |
make-array |
| 40 |
array:make-array |
| 41 |
shape |
| 42 |
array |
| 43 |
array-rank |
| 44 |
array-start |
| 45 |
array-end |
| 46 |
share-array |
| 47 |
array:share/index! |
| 48 |
array:optimize/vector |
| 49 |
array:optimize/actor |
| 50 |
array:shape->vector |
| 51 |
array:size |
| 52 |
array:make-index |
| 53 |
array:good-shape? |
| 54 |
array:good-share? |
| 55 |
array:unchecked-share-depth? |
| 56 |
array:check-indices |
| 57 |
array:check-indices.o |
| 58 |
array:check-index-vector |
| 59 |
array:check-index-actor |
| 60 |
array:good-indices? |
| 61 |
array:good-indices.o? |
| 62 |
array:good-index-vector? |
| 63 |
array:good-index-actor? |
| 64 |
array:good-index? |
| 65 |
array:not-in |
| 66 |
array:list->string |
| 67 |
array:shape-vector->string |
| 68 |
array:thing->string |
| 69 |
array:index-ref |
| 70 |
array:index-set! |
| 71 |
array:index-length |
| 72 |
array:map->string |
| 73 |
array:map-column->string |
| 74 |
array:grok/arguments |
| 75 |
array:grok/index!) |
| 76 |
(import |
| 77 |
(rnrs) |
| 78 |
(rnrs mutable-pairs) |
| 79 |
(rnrs r5rs) |
| 80 |
(srfi :23 error tricks) |
| 81 |
(srfi private include)) |
| 82 |
|
| 83 |
(define-record-type (array-type array:make array:array?) |
| 84 |
(fields (immutable vec array:vector) |
| 85 |
(immutable ind array:index) |
| 86 |
(immutable shp array:shape))) |
| 87 |
|
| 88 |
(SRFI-23-error->R6RS "(library (srfi :25 multi-dimensional-arrays))" |
| 89 |
(include/resolve ("srfi" "%3a25") "ix-ctor.scm") |
| 90 |
(include/resolve ("srfi" "%3a25") "op-ctor.scm") |
| 91 |
(include/resolve ("srfi" "%3a25") "array.scm")) |
| 92 |
) |