Re: reshare array

"Arthur Lemmens" <[email protected]>
Newsgroups gmane.lisp.cmucl.general
Organization Kikashi Software
Message-ID <[email protected]>
Tamas K Papp wrote:

> Consider an n-dimensional simple array, eg
>
> (setf a (make-array '(2 3 4) :element-type 'double-float))
>
> If I understand correctly, a simple boxed array is just a vector of
> numbers (in this case, 12 zeros), and information on the dimension (2
> 3 4).  Is it possible to "reshape" the array by changing only the
> latter?

Have a look at ADJUST-ARRAY.  Maybe it does what you need.

http://www.lispworks.com/documentation/HyperSpec/Body/f_adjust.htm

Arthur Lemmens
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.