Hi all,
suppose the following code:
a = [2, 3, 4]
z = [5, 7, 9]
b = a .+ 1
c = (a .+ 1)'
d = a' .+ 1
s = (a' .+ 1) * z
t = (a .+ 1)' * z
u = b' * z
v = c * z
w = d * z
The last five lines all calculate the dot product. The value always is 88. But
-
s
andw
are of type Vector -
t
,u
andv
are scalars
I suppose that these different resulting types are intended. Is there an easy explanation for this behavior?
Espacially it was confusing for me, that the types of s
and t
differ. From the math point of view, they should not - or am I mistakening?
Thanks for explanation and best regards
Torsten