view test/classes/@Pork/get.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 v = get (s, propName)

  switch propName
    case 'gurk'
      v = s.gurk;
    otherwise
      v = get (s.Spork, propName);
  end

end