This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
some utils
- From: Marco Vezzoli <marco dot vezzoli at st dot com>
- To: kawa <kawa at sources dot redhat dot com>
- Date: Tue, 30 Apr 2002 13:06:17 +0200
- Subject: some utils
Here are some simple definitions i often use to interface existing java
outputs (arrays) with lists.
I suggest to add them in kawa/lib/lists.scm and kawa/lib/uniform.scm
(define (array->list ary)
(invoke-static <gnu.lists.LList> 'makeList ary 0))
(define (float-array->uniform-vector ary :: <float[]>)
(make <gnu.lists.F32Vector> ary))
(define (double-array->uniform-vector ary :: <double[]>)
(make <gnu.lists.F64Vector> ary))
--
(--cafe babe--)
Marco Vezzoli marco.vezzoli@st.com
CR&D Intranet Developement STMicroelectronics
tel. +39 039 603 6852 fax. +39 039 603 5055