Functions

mgorth.cc File Reference

#include "oct-norm.h"
#include "defun-dld.h"
#include "error.h"
#include "gripes.h"
Include dependency graph for mgorth.cc:

Go to the source code of this file.

Functions

 DEFUN_DLD (mgorth, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {[@var{y}, @var{h}] =} mgorth (@var{x}, @var{v})\n\ Orthogonalize a given column vector @var{x} with respect to a given\n\ orthonormal basis @var{v} using a modified Gram-Schmidt orthogonalization. \n\ On exit, @var{y} is a unit vector such that:\n\ \n\ @example\n\ @group\n\ norm (@var{y}) = 1\n\ @var{v}' * @var{y} = 0\n\ @var{x} = @var{h}*[@var{v}, @var{y}]\n\ @end group\n\ @end example\n\ \n\ @end deftypefn")
template<class ColumnVector , class Matrix , class RowVector >
static void do_mgorth (ColumnVector &x, const Matrix &V, RowVector &h)

Function Documentation

DEFUN_DLD ( mgorth  ,
args  ,
nargout   
)
template<class ColumnVector , class Matrix , class RowVector >
static void do_mgorth ( ColumnVector x,
const Matrix V,
RowVector h 
) [static]

Definition at line 35 of file mgorth.cc.

References Matrix::column(), Array< T >::columns(), MArray< T >::hermitian(), real, and xnorm().

Referenced by DEFUN_DLD().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines