Re: Behaviour of write_matrix

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed, 01 Jul 2009 16:22:59 -0600

A work around

     x(N)

     write_matrix( onedtond( x,(/1,N/)) , "...", opt)

Lunde, Bruce N CIV NAVOCEANO, NP1 wrote:
> A comment:
>
> The procedure write_matrix() does not
> like it when the first argument is a
> 1D vector (not a 2D matrix).
>
> It would be nice to add an attribute
> to "opt" to tell write_matrix whether
> to print 1D vectors as row or column
> matrices (and also to have there be
> a default behaviour, which would
> probably be to consider a 1D vector
> to be a column vector as is assumed
> in linear algebra when writing "x",
> where "x^T" is a row vector).
>
> Thanks, Bruce
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jul 01 2009 - 16:22:59 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 02 2009 - 11:39:38 MDT