Mercurial > octave-nkf
view examples/addtwomatrices.cc @ 15875:c18692212b90
configure.ac: Simplify test for math library.
configure.ac: AC_CHECK_LIB test for math lib no longer requires
explicitly including libc as it did on 1/20/1999 when this
part of configure.ac was written.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 02 Jan 2013 17:15:57 -0800 |
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 (); }