You should use vector operations
C = sum( A .* B , 2 ); The .* operator multipliedmultiplies matrices value-by-value, while sum( <matrix> , 2 ) sums along the rows of a matrix inside the first parameter.
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalYou should use vector operations
C = sum( A .* B , 2 ); The .* operator multipliedmultiplies matrices value-by-value, while sum( <matrix> , 2 ) sums along the rows of a matrix inside the first parameter.
You should use vector operations
C = sum( A .* B , 2 ); The .* operator multiplied matrices value-by-value, while sum( <matrix> , 2 ) sums along the rows of a matrix inside the first parameter.
You should use vector operations
C = sum( A .* B , 2 ); The .* operator multiplies matrices value-by-value, while sum( <matrix> , 2 ) sums along the rows of a matrix inside the first parameter.