Re: initializer for array of array

  • From: Alex <initrd.gz@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 7 Mar 2014 09:34:43 -0500

This works for me:

ffi.new("float[3][2]", {{1, 2}, {3, 4}, {5,6}})


On Fri, Mar 7, 2014 at 4:41 AM, Victor Bombi <sonoro@xxxxxxxxxxxxxx> wrote:

> Hello,
>
> I know it must be a trivial question but could not find in the help how to
> initialize an array of arrays
> ffi.new("float[3][6]",.....
>
> Best
> victor bombi
>
>


-- 
Sincerely,
Alex Parrill

Other related posts: