Re: arrays vs. vectors



H. wrote:
In Scheme, since the purpose is to teach you how to implement stuff,
it only defines the minimalissimum make-vector, and if you want more
dimensions, you do it yourself.

Let me make sure I understand this correctly. If I want to implement something in Scheme based on nested for loops with i,j notation, I have to go though all of what you did above?

It is easier to usean existing library:

    <http://srfi.schemers.org/srfi-63/srfi-63.html>

or

    <http://www.math.purdue.edu/~lucier/WWW/array-code>

--
Jens Axel Søgaard
.



Relevant Pages

  • Re: Extracting matrix elements
    ... Essentially what I have is a "single precession float" matrix which is 5D ... I need just the last dimensions in a 2D ... Each iteration of the three outer loops, this overwrites xwith the ... That's just the default display format. ...
    (comp.soft-sys.matlab)
  • Re: Extracting matrix elements
    ... Essentially what I have is a "single precession float" matrix which is 5D ... I need just the last dimensions in a 2D ... Each iteration of the three outer loops, this overwrites xwith the ... That's just the default display format. ...
    (comp.soft-sys.matlab)
  • Re: Which part of scheme do you like most?
    ... > what are you using scheme for. ... When I started learning a programming language ... I started writing terrible loops with the /when/ ... language I use because scheme is a very tidy language. ...
    (comp.lang.scheme)
  • Re: Bounds checked arrays
    ... >> n is, in general, unknown in functions that have arrays passed ... This presents serious problems to your scheme. ... > function the dimensions are known. ... Halfway improvements are probably even more dangerous than no ...
    (comp.lang.c)
  • Re: Problem with reading data from files?
    ... Blocked reallocations? ... Not using an array at all is another. ... which is the use of infinite DO loops. ... All I saw was the "pick a large number" scheme, ...
    (comp.lang.fortran)