Matrix element assignment?

S

stuart macgregor

I have just completed a little first ruby job (oo wrapper lib for
(some aspects of) the nec2 EM simulator) - a very nice tool :)

One thing puzzled me: the built in Matrix class - how do you assign values
to individual elements? operator []=(i,j) seems not to have been defined?
I suppose it is either obvious and I missed it, or left out for some very
good reason? Perhaps one should use Array and convert to/from Matrix
for the occasional matrix/vector equation?

I ended up using a mixture of Array and NArray.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,821
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top