octave-maintainers
[Top][All Lists]
Advanced

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

Re: Ensuring class of output == class of input in statistical functions


From: Michael D Godfrey
Subject: Re: Ensuring class of output == class of input in statistical functions
Date: Mon, 02 May 2011 19:43:52 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10

On 05/02/2011 07:39 PM, Rik wrote:
My guess is 'single' in every case, although the answer is 'double' in
every case for Octave.

--Rik
Right:
>> class (poisspdf (single(0), 2))

ans =

single

>> class (poisspdf (0, single(2)))

ans =

single

>> class (poisspdf (single(0), single(2)))

ans =

single

>> version

ans =

7.9.0.529 (R2009b)

>>


reply via email to

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