octave-maintainers
[Top][All Lists]
Advanced

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

Re: 1D NDArray -> octave_value


From: Teemu Ikonen
Subject: Re: 1D NDArray -> octave_value
Date: Thu, 14 Dec 2006 17:10:07 +0100

On 12/14/06, John W. Eaton <address@hidden> wrote:
It should not be possible to create 1-d vectors in Octave, so this may
be a bug.  Are you using the CVS sources?  Can you please post a short
example that shows precisely how a vector like this can be created?

Ok, the real code can be seen at
http://octave.cvs.sourceforge.net/octave/octave-forge/extra/xraylib/src/xraylib.cc?revision=1.1.1.1
(see the DEF_MULTIMAPPER1 macro and friends), but essentially, it does this:

DEFUN_DLD(bug, args, nargout, "bug")
{
  dim_vector dv;
  octave_value retval;

  dv = dim_vector();
  dv.resize(1);


reply via email to

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