Robert Dailey wrote:
> The
> interpreter outputs:
> "ValueError: shape mismatch: objects cannot be broadcast to a single
> shape"
You need to post your actually input and output. The above works fine
for me, just as you'd expect:
>>> A = N.array([2,3,4])
>>> B = N.array([5,6,7])
>>> S =
Robert Dailey wrote:
> Hi,
>
> I have a scalar value S. I want to perform the following math on vectors
> A and B (both of type array):
>
> A + B * S
>
> By order of operations, B * S should be done first. This is a vector
> multiplied by a real number and should be valid. However, the
> interpr
Hi,
I have a scalar value S. I want to perform the following math on vectors A
and B (both of type array):
A + B * S
By order of operations, B * S should be done first. This is a vector
multiplied by a real number and should be valid. However, the interpreter
outputs:
"ValueError: shape mism