function [targflow] = targ_flow(n)

% TARG_FLOW produces an asymmetric proximity matrix of size $n \times n$
% containing zeros below the main diagonal and ones above the main
% diagonal.  When compared (through a cross-product) against another matrix,
% the sum of the above-main-diagonal entries is taken.
%
% syntax: [targflow] = targ_flow(n)

targflow = zeros(n,n);

for i = 1:n
    for j = 1:n
        
        if (i < j)
            
            targflow(i,j) = 1;
            
        end
    end
end