% P2
% Test script for Rank1SeqProd

randn('seed',0)
m = 6;
p = 4;
V = tril(randn(m,p));
clc
format short
Q = Rank1SeqProd(V)

% Include a comment in your implementation of Rank1SeqProd
% that indicates the number of flops it requires as a function 
% of m and p. It should have the form __ m^2*p + __ m*p^2 + __ p^3

% Recall that 1   + 2   + ... + n   is about n^2/2.
% Recall that 1^2 + 2^2 + ... + n^2 is about n^3/3.

