Guile Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile numerical work and uniform arrays



Valentin Kamyshenko <val@kamysh.materials.kiev.ua> writes:

> 
> Thus, after application of ARRAY-CONTENTS you get uniform-vector.
> Of course, you can get a pointer to the first element of it
> (by the way, I do not know a politically correct way to do this - I
> use 
> 	gh_cdr(uve)
> although I'm sure there must be better way).

Not only not politically correct, but not safe as well.  The result
of ARRAY-CONTENTS may be an array, if the array can't be used to
access all the elements of its underlying contents vector.

There should be a gh_ function to access this pointer.

Guile Home | Main Index | Thread Index