octave-maintainers
[Top][All Lists]
Advanced

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

Re: Archetype for C++ function


From: John W. Eaton
Subject: Re: Archetype for C++ function
Date: Mon, 07 Dec 2015 19:36:45 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

On 12/06/2015 11:07 PM, Rik wrote:
12/6/15

jwe,

The switch to exceptions in the core is making the code a lot clearer, in
my mind anyways.  I want to propose a new archetype for C++ functions, and
if you like it, we can possibly have it as one of the code sprint topics.

While we are at it, what do you think about writing things like

  retval = ovl (DiagMatrix (nr, nr, 1.0),
                Matrix (nr, nc),
                DiagMatrix (nc, nc, 1.0));

instead of

  retval(2) = DiagMatrix (nc, nc, 1.0);
  retval(1) = Matrix (nr, nc);
  retval(0) = DiagMatrix (nr, nr, 1.0);

?

jwe







reply via email to

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