Mercurial > octave-nkf
view examples/addtwomatrices.cc @ 19536:97c9ba013ed1
configure.ac: Add --without-portaudio and --without-sndfile options
* configure.ac: Add --without-portaudio and --without-sndfile options to
bypass checking for audio library dependencies.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Wed, 02 Oct 2013 00:14:09 -0400 |
parents | be41c30bcb44 |
children |
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 (); }