Code covered by the BSD License  

Highlights from
Statistical Learning Toolbox

from Statistical Learning Toolbox by Dahua Lin
Functions for statistical learning, pattern recognition and computer vision, covering many topics.

sltensor_dot(T1, T2)
function d = sltensor_dot(T1, T2)
%SLTENSOR_DOT Computes the dot product between two tensors
%
% $ Syntax $
%   - d = sltensor_dot(T1, T2)
%
% $ Description $
%   - d = sltensor_dot(T1, T2) Computes the dot product between two tensors
%   T1 and T2.
%
% $ History $
%   - Created by Dahua Lin on June 6th, 2005
%

d = sum(T1(:) .* T2(:));

Contact us at files@mathworks.com