Mercurial > hg > octave-lyh
comparison scripts/sparse/bicg.m @ 17182:c3c1ebfaa7dc
maint: Use common indentation for switch statement.
* scripts/general/interp1.m, scripts/geometry/delaunay.m,
scripts/help/__unimplemented__.m, scripts/image/cmunique.m,
scripts/miscellaneous/edit.m, scripts/optimization/fzero.m,
scripts/optimization/sqp.m, scripts/plot/__gnuplot_drawnow__.m,
scripts/plot/hidden.m, scripts/plot/legend.m, scripts/plot/print.m,
scripts/plot/printd.m, scripts/plot/private/__contour__.m,
scripts/plot/private/__fltk_print__.m,
scripts/plot/private/__gnuplot_print__.m,
scripts/plot/private/__go_draw_axes__.m,
scripts/plot/private/__print_parse_opts__.m, scripts/signal/periodogram.m,
scripts/sparse/bicg.m, test/slice.tst, test/switch.tst:
Use common indentation for switch statement.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 04 Aug 2013 15:11:34 -0700 |
parents | e39f00a32dc7 |
children |
comparison
equal
deleted
inserted
replaced
17181:3a23cbde59d5 | 17182:c3c1ebfaa7dc |
---|---|
232 %! [x, flag, relres, iter, resvec] = bicg (A, b, tol, maxit, M1, M2); | 232 %! [x, flag, relres, iter, resvec] = bicg (A, b, tol, maxit, M1, M2); |
233 %! assert (x, ones (size (b)), 1e-7); | 233 %! assert (x, ones (size (b)), 1e-7); |
234 | 234 |
235 %!function y = afun (x, t, a) | 235 %!function y = afun (x, t, a) |
236 %! switch (t) | 236 %! switch (t) |
237 %! case "notransp" | 237 %! case "notransp" |
238 %! y = a * x; | 238 %! y = a * x; |
239 %! case "transp" | 239 %! case "transp" |
240 %! y = a' * x; | 240 %! y = a' * x; |
241 %! endswitch | 241 %! endswitch |
242 %!endfunction | 242 %!endfunction |
243 %! | 243 %! |
244 %!test | 244 %!test |
245 %! n = 100; | 245 %! n = 100; |