search for: vectoron

Displaying 1 result from an estimated 1 matches for "vectoron".

Did you mean: vectorone
2010 Mar 17
3
Vector multiplication
Hi, this may sound stupid (and it probably is), but I can't seem to find out how to multiply each element of a vector with each element of another vector where the result would be a matrix of dim[length(vectorOne),length(vectorTwo)] without using loops. example: if a -> c(1,2,3) b -> c(4,5,6) i'm looking for the operation that would yield: [,1] [,2] [,3] [1,] 4 8 12 [2,] 5 10 15 [3,] 6 12 18 any hints are greatly appreciated, kaspar ------------------------------...