Re: Following up on SRFI 179
Alex Shinn 01 Oct 2021 00:43 UTC
On Fri, Oct 1, 2021 at 9:07 AM Bradley Lucier <xxxxxx@math.purdue.edu> wrote:
>
> But in your test suite you have:
>
> (myarray= (tensor '((4 7) (2 6) (1 0) (0 1)))
> (array-append 0
> (list->array '(4 7 2 6)
> (make-interval '#(2 2) '#(4 4)))
> (identity-array 2)))
>
> and (identity-array 2) has domain (make-interval '#(2 2)), which differs
> in dimension 1 from the domain of the other interval, which is
> (make-interval '#(2 2) '#(4 4))
It translates all input arrays to the origin, so it only requires that the
dimensions have the same size, not the same upper and lower bounds.
It's simpler and probably better to skip this and require the same domains
(modulo the appended dimension).
I also later added array-to-origin so you can manually translate if needed.
--
Alex