octave-maintainers
[Top][All Lists]
Advanced

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

Re: __plt__.m redundancies


From: Daniel J Sebald
Subject: Re: __plt__.m redundancies
Date: Thu, 27 Jun 2013 12:31:59 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 06/27/2013 11:44 AM, Rik wrote:
6/27/13

All,

I happened to be looking in scripts/plot/private/__plt__.m and found that
there is a dispatch table in the subfunction __plt2__ which checks whether
the x input is a scalar, vector, or matrix and whether the y input is a
scalar, vector, or matrix and then calls the appropriate subfunction such
as __plt2sv__ for scalar/vector plotting.

I checked in each of the 6 subfunctions and they check the number of input
arguments with nargin as well as re-checking that each of the inputs is a
scalar, vector, or matrix.  This is redundant and probably arose as the
code evolved in time.  Does anyone know why the input checks in the leaf
functions cannot be deleted in favor of the earlier checks?

--Rik

I'm not seeing this redundancy.  What line numbers or code hunks?

Dan


reply via email to

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