Functions

sqrtm.cc File Reference

#include <float.h>
#include "CmplxSCHUR.h"
#include "fCmplxSCHUR.h"
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "oct-norm.h"
#include "defun-dld.h"
#include "error.h"
#include "gripes.h"
#include "utils.h"
#include "xnorm.h"
Include dependency graph for sqrtm.cc:

Go to the source code of this file.

Functions

 DEFUN_DLD (sqrtm, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {@var{s} =} sqrtm (@var{A})\n\ @deftypefnx {Loadable Function} {[@var{s}, @var{error_estimate}] =} sqrtm (@var{A})\n\ Compute the matrix square root of the square matrix @var{A}.\n\ \n\ Ref: N.J. Higham. @cite{A New sqrtm for @sc{matlab}}. Numerical\n\ Analysis Report No. 336, Manchester @nospell{Centre} for Computational\n\ Mathematics, Manchester, England, January 1999.\n\ @seealso{expm, logm}\n\ @end deftypefn")
template<class Matrix , class ComplexMatrix , class ComplexSCHUR >
static octave_value do_sqrtm (const octave_value &arg)
template<class Matrix >
static void sqrtm_utri_inplace (Matrix &T)

Function Documentation

DEFUN_DLD ( sqrtm  ,
args  ,
nargout   
)
template<class Matrix , class ComplexMatrix , class ComplexSCHUR >
static octave_value do_sqrtm ( const octave_value arg  )  [static]
template<class Matrix >
static void sqrtm_utri_inplace ( Matrix T  )  [static]

Definition at line 44 of file sqrtm.cc.

References Array< T >::fortran_vec(), Array< T >::rows(), singular(), and warning_with_id().

Referenced by do_sqrtm().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines