view test/bug-52851/script3.m @ 31234:a1318deb4584

sparse-xpow.cc: Improve consistency between sparse and full matrices (bug #63080) sparse-xpow.cc: Return 0x0 matrix for empty inputs of all sizes. Return early for all-zeros matrix with positive power. Add FIXME for all-zeros matrix with negative power. Add BISTs.
author Arun Giridhar <arungiridhar@gmail.com>
date Tue, 20 Sep 2022 09:00:02 -0400
parents d45d1b4bb919
children
line wrap: on
line source

1; %script identifier

if (flag)
  function r = computation ()
    r = 1;
  endfunction

  r = computation ();
else
  function r = computation ()
    r = 2;
  endfunction

  r = computation ();
endif