Hi,
Let a be n-dimensional vector, B n-by-n dimensional matrix, f(a, b) – binary function that operates on two vectors, and returns scalar as a result. Is there fast way (no-loops) to implement application of this function to vector a and every column of matrix B? More precisely forall_j r(j) = f(a, B(:, j))?
Best Answer