element-wise matrix operations

element-wise matrix operations - Messages

#1 Posted: 10/21/2010 9:20:56 PM
iveyj1

iveyj1

0 likes in 2 posts.

Group: User

Folks,
Is there a way to cause matrix operations to be performed
element by element? For example if two matrices are
multiplied, the top-left element of the multiplicand
would be multiplied by the top-left element of the multiplier
and placed in the top-left element of the product, and
so on. In mathcad this can be done by pressing -
(vectorize).

Thanks,
Jack
#2 Posted: 10/22/2010 2:00:06 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello,

No, there is no element-wise matrix operations in Smath (like vectorize in Mathcad). You just have to use loops (for, while) to perform such operations.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Posted: 10/22/2010 9:19:06 PM
iveyj1

iveyj1

0 likes in 2 posts.

Group: User

Ok, thanks for the quick response.

Is it possible to add operators via the plugin
mechanism or would that require a change to the core?

The reason I am interested in this functionality
is that I use it heavily in Mathcad to perform
similar calculations on a set of variables. The for
loop provides a similar functionality, but
the visual presentation is much more awkward,
unless I am missing something.

By the way, this is one of the best and most needed free
software I have come across.

Thanks,
Jack
  • New Posts New Posts
  • No New Posts No New Posts