help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Convert octave_value_list to RowVector


From: John Swensen
Subject: Convert octave_value_list to RowVector
Date: Wed, 24 Oct 2007 11:31:11 -0400
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

Is there a quick and easy way to convert an Octave value list to a RowVector? I have searched through the src and liboctave directories and can't find an example. For now, the only way I can figure out how to do it is

RowVector rv;
octave_value_list ovl;

for ( int i = 0 ; i < ovl.length() ; i++ )
 rv(i) = ovl(i).matrix_value ()(0);

There has got to be a better way.  Any suggestions?

John Swensen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]