From: Amitha Perera <amithaperera@us...>  20100927 15:43:43

On 09/27/2010 11:35 AM, David Doria wrote: > I was wondering if I am interpreting correctly that VXL reshapes a > vnl_vector to be a row or column vector depending on the situation? Correct. > Is there a way to force it to be one orientation or the other? Use a vnl_matrix with one of the dimensions = 1. > I am trying to do > > x^T A x > > so should I just do > > x * A * x ? Nearly. There is no operator* for two vectors (because of ambiguity: inner or outer product?), so you'd need to do dot_product( x, A*x ) or dot_product( x*A, x ) Amitha. 