unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* random:solid-sphere! vs new vectors
@ 2005-01-14 23:49 Kevin Ryde
  2005-01-17 17:29 ` Marius Vollmer
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Ryde @ 2005-01-14 23:49 UTC (permalink / raw)


More possible trouble with the new vectors,

	(random:solid-sphere! (make-vector 3))
	=> Wrong type (expecting uniform array): #(0.402854919971486 -0.66019561824329 -0.346041556106454)


I applied a doc fix for random:solid-sphere! too, it was described as
returning the sum of the squares, but in fact it's SCM_UNSPECIFIED.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: random:solid-sphere! vs new vectors
  2005-01-14 23:49 random:solid-sphere! vs new vectors Kevin Ryde
@ 2005-01-17 17:29 ` Marius Vollmer
  0 siblings, 0 replies; 2+ messages in thread
From: Marius Vollmer @ 2005-01-17 17:29 UTC (permalink / raw)


Kevin Ryde <user42@zip.com.au> writes:

> More possible trouble with the new vectors,
>
> 	(random:solid-sphere! (make-vector 3))
> 	=> Wrong type (expecting uniform array): #(0.402854919971486 -0.66019561824329 -0.346041556106454)

Yep, I fixed this, thanks!

2005-01-17  Marius Vollmer  <marius.vollmer@uni-dortmund.de>

	* random.c (scm_random_solid_sphere_x): Use
	scm_c_generalized_vector_length instead of
	scm_uniform_vector_length.

> I applied a doc fix for random:solid-sphere! too, it was described as
> returning the sum of the squares, but in fact it's SCM_UNSPECIFIED.

Thanks!


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-17 17:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-14 23:49 random:solid-sphere! vs new vectors Kevin Ryde
2005-01-17 17:29 ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).