summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/texture_synthesis/src/matlab/innerProd.m
blob: 9252c707aef89010d9320e3831db734e7355da85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
% RES = innerProd(MTX)
%
% Compute (MTX' * MTX) efficiently (i.e., without copying the matrix)

function res = innerProd(mtx)

%fprintf(1,['WARNING: You should compile the MEX version of' ...
%	   ' "innerProd.c",\n         found in the MEX subdirectory' ...
%	   ' of matlabPyrTools, and put it in your matlab path.' ...
%	   ' It is MUCH faster and requires less memory.\n']);

res = mtx' * mtx;