[Scilab-users] vector product (hyper)matrix and vector
Adelson
adelson.oliveira at gmail.com
Sat May 27 17:12:37 CEST 2017
Hello,
How to obtain the product of a one dimensional array and a hypermatrix in a
vector way?
I mean, an array a(1:N) times a hypermatrix H(1:M,1:N,1:P,....), for all
m,p,q,... indices:
for m=1:M
for p=1:P
for q=.....
....
R(m,:,p,q,....) =H(m,:,p,q,...) .* a(:);
....
end
end
end
in a vectorized form?
As an example, in FORTRAN one could simply write in a vectorized form,
FORALL(m=1:M,p=1:P,q=...,...); R(m,:,p,q,...)=H(m,:,p,q,....)*a(:);
And, it seems that in MATLAB one could do something similar using the comand
DOT.
Thanks
--
View this message in context: http://mailinglists.scilab.org/vector-product-hyper-matrix-and-vector-tp4036460.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list