#include "defun-dld.h"
#include "error.h"
#include "gripes.h"
#include "oct-obj.h"
#include "utils.h"
Go to the source code of this file.
Functions | |
DEFUN_DLD (syl, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{x} =} syl (@var{A}, @var{B}, @var{C})\n\ Solve the Sylvester equation\n\ @tex\n\ $$\n\ A X + X B + C = 0\n\ $$\n\ @end tex\n\ @ifnottex\n\ \n\ @example\n\ A X + X B + C = 0\n\ @end example\n\ \n\ @end ifnottex\n\ using standard @sc{lapack} subroutines. For example:\n\ \n\ @example\n\ @group\n\ syl ([1, 2; 3, 4], [5, 6; 7, 8], [9, 10; 11, 12])\n\ @result{} [ -0.50000, -0.66667; -0.66667, -0.50000 ]\n\ @end group\n\ @end example\n\ @end deftypefn") |
DEFUN_DLD | ( | syl | , | |
args | , | |||
nargout | ||||
) |
Definition at line 35 of file syl.cc.
References octave_value::columns(), octave_value::complex_matrix_value(), empty_arg(), error_state, octave_value::float_complex_matrix_value(), octave_value::float_matrix_value(), gripe_nonconformant(), gripe_square_matrix_required(), octave_value::is_complex_type(), octave_value::is_single_type(), octave_value::matrix_value(), octave_value(), print_usage(), octave_value::rows(), and Sylvester().