On Nov 16, 3:03 pm, The Neurochild <[EMAIL PROTECTED]> wrote:
> Can the arrays be as many dimensions as I want? Because I took a look
> on how to make the vector and matrices and it looks complicated. No
> offense. Is there and example where I can do such a thing with arrays?
>

Personally I would save the matrix and vector classes for actually
doing matrix math.
I think your specification of the problem so far is not concrete
enough for me to be able to volunteer a solution, but you can
certainly have something like

x = [[[1,2,3], [4,5,6]],[[7,8,9],[10,11,12]]]
x[0][1][2] #=> 6
At this point this isn't really a rails question any more - you may
find more opinions on the ruby-talk list.

Fred
> Later...
>
> The Neurochild
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to