view test/classes/@Blork/Blork.m @ 20820:4e307c55a2b5

Use isempty () rather than any () for faster code in inverse statistical distributions. betainv.m, binoinv.m, gaminv.m, poissinv.m: Use '! isempty (k)' rather than 'any (k)' for faster code.
author Rik <rik@octave.org>
date Sun, 11 Oct 2015 21:09:41 -0700
parents b1283d4c06c2
children
line wrap: on
line source

function s = Blork (bleek)
% Test class.

  if (nargin == 1 && isa (bleek, 'Blork'))
    s = bleek;
  else
    if (nargin == 0)
      s.bleek = 1;
    else
      s.bleek = bleek;
    end
    s = class (s, 'Blork');
  end

end