1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00

(make-array, list->array): Removed.

(uniform-vector-fill!): Prepared to be deprecated.
This commit is contained in:
Marius Vollmer 2004-12-29 18:33:33 +00:00
parent d7f6cbd955
commit a50a53f89a

View file

@ -18,18 +18,14 @@
;;;; Boston, MA 02111-1307 USA
;;;;
(define uniform-vector-fill! array-fill!)
(define (make-array fill . args)
(dimensions->uniform-array args make-vector fill))
(define (list->array ndim lst)
(list->uniform-array ndim make-vector lst))
(define (array-shape a)
(map (lambda (ind) (if (number? ind) (list 0 (+ -1 ind)) ind))
(array-dimensions a)))
;; deprecated
(define uniform-vector-fill! array-fill!)
(define make-uniform-vector dimensions->uniform-array)
(define (make-uniform-array prot . args)