From: Amitha Perera <amithaperera@us...>  20071004 00:27:29

On Wed 03 Oct 2007, Jim Green wrote: > I have been using vnl_matrix and vnl_vector like in: > > vnl_matrix<double> C(2,2); > vnl_vector<double> x(n_elements); > > and a number of variations on the above. Now I need to create a > vnl_vector of vnl_matrix elements. Are you sure you don't want an array of matrices (a vcl_vector of matrices)? > It's not clear how one would do > this and define the size of the matrix and the size of the vector at > the same time. vnl_matrix has a dynamically allocated size. If you want a statically allocated matrix, use vnl_matrix_fixed. vcl_vector< vnl_matrix<double> > v; v.push_back( vnl_matrix<double>(3,3) ); v[0](1,1) = 5.0; Amitha. 