Multiply two vectors in Calc element-wise

3

1

2:  [0.5, 0.25, 0.125, 0.125]
1:  [1, 2, 3, 4]

Suppose, this is how the stack looks like, what I'd like to be the result of multiplication:

[1 * 0.5, 2 * 0.25, 3 * 0.125, 4 * 0.125]

Instead, Calc translates every value on its axis and then finds the distance (I don't need the last step, only the multiplication). How would I do that?

wvxvw

Posted 2014-05-09T16:45:56.823

Reputation: 803

Answers

3

The Vector Map command applies operations to vectors element-wise.

In your example, typing V M * will apply a multiplication to each element of the input vectors.

Documentation here.

Juancho

Posted 2014-05-09T16:45:56.823

Reputation: 2 187