octave-maintainers
[Top][All Lists]
Advanced

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

Re: Audio playback and classes


From: Michael Goffioul
Subject: Re: Audio playback and classes
Date: Mon, 1 Jul 2013 17:32:52 -0400

On Mon, Jul 1, 2013 at 5:24 PM, Vytautas Jancauskas <address@hidden> wrote:
> Maybe I misunderstood your question, but octave supports intXX and uintXX
> types and you can get that type through the "class" function, like the
> following:
>
> octave-cli:2> class(int8(rand(1,10)*256))
> ans = int8
>
> Michael.
>

Maybe I am doing something wrong, but y.is_int8_value() fails if y is
an octave_value that was created with int8(something) in octave.

Probably. There's no "is_int8_value" method, maybe you mean "is_int8_type"? And AFAICS, the latter will return true for octave_int8_matrix and octave_int8_scalar classes.

Michael.


reply via email to

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