Mercurial > octave-nkf
view examples/addtwomatrices.cc @ 14203:81ee6b12adbc stable
Disable the PS Level 3 shading feature in gl2ps.
* gl2ps-renderer.cc: Add GL2PS_NO_PS3_SHADING to the list of options
passed to gl2psBeginPage (). Bug # 35259.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Thu, 12 Jan 2012 17:32:29 -0500 |
parents | 4295d634797d |
children | be41c30bcb44 |
line wrap: on
line source
#include <octave/oct.h> DEFUN_DLD (addtwomatrices, args, , "Add A to B") { int nargin = args.length (); if (nargin != 2) print_usage (); else { NDArray A = args(0).array_value (); NDArray B = args(1).array_value (); if (! error_state) return octave_value (A + B); } return octave_value_list (); }