Mercurial > octave
view test/bug-55758/class_bug_55758.m @ 31198:863730dd0f83 stable
nextpow2: Fix for input between 0.5 and 1 (bug #62947).
* scripts/general/nextpow2.m: Switch to a naïve implementation using log2 with
a single output argument and ceil.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Wed, 24 Aug 2022 17:15:34 +0200 |
parents | ab9520ef3895 |
children |
line wrap: on
line source
classdef class_bug_55758 < handle properties value endproperties methods function self = class_bug_55758 (val) if (nargin < 1) val = 0; endif self.value = val; endfunction function delete (self) global class_bug_55758_dtor_called; class_bug_55758_dtor_called = true; endfunction function ret = subsref (self, idx) ret = self.value; endfunction endmethods endclassdef