I don't know of a vect_norm function. Representing a vector with a list (non-ideal, I think), something like
vector_norm(l,p) := if p = 'inf then lmax(map('abs,l)) else xreduce("+",map(lambda([s], abs(s)^p),l))^(1/p);
might work. If you would like to treat a single row/column matrix as a vector, that could be handled with a
few more lines of code, I think.
--Barton
-----Kostas Oikonomou <ko at research.att.com> wrote: -----
>Hmm,?you're?right?of?course.??I?was?unconsciously?assuming?
>that?a?single?row/column?matrix?would?be?treated?like?a?
>vector.??Is?there?something?like?vect_norm()?that?I'm?missing?
>
>???? ???? ???? ???? ???? Kostas
>