18 assert(! A.is_zero());
60 assert(tmpN ==
int(
N));
64 for (
unsigned int i=0;i<
N;i++)
65 for (
unsigned int j=0;j<
N;j++)
66 R(i,j) = std::conj(
R(i,j) );
73 std::cerr << __FILE__
": info = " << info << std::endl
74 << __FILE__
": " << (-info) <<
"th argument has illegal value\n";
78 std::cerr << __FILE__
": info = " << info << std::endl
79 << __FILE__
": QR algorithm failed to compute all eigenvalues.\n";
vnl_complex_eigensystem(vnl_matrix< double > const &A_real, vnl_matrix< double > const &A_imag, bool right=true, bool left=false)
Print matrices and vectors in nice MATLAB format.
Functions to create complex vectors and matrices from real ones.
vnl_matrix< std::complex< double > > R
void compute(vnl_matrix< std::complex< double > > const &, bool, bool)
T const * data_block() const
Access the contiguous block storing the elements in the vector. O(1).
iterator begin()
Iterator pointing to start of data.
vnl_matrix< std::complex< double > > L
Calculates eigenvalues and eigenvectors of a square complex matrix.
VNL_EXPORT std::ostream & vnl_matlab_print(std::ostream &, T const *array, unsigned length, vnl_matlab_print_format=vnl_matlab_print_format_default)
print a 1D array.
An ordinary mathematical matrix.
Declare in a central place the list of symbols from netlib.
void assert_size(unsigned VXL_USED_IN_DEBUG(r), unsigned VXL_USED_IN_DEBUG(c)) const
abort if size is not as expected.
Mathematical vector class, templated by type of element.
T const * data_block() const
Access the contiguous block storing the elements in the matrix row-wise. O(1).
void vnl_complexify(T const *src, std::complex< T > *dst, unsigned n)
Overwrite complex array C (sz n) with complexified version of real array R.
unsigned int size() const
Return the total number of elements stored by the matrix.
bool set_size(unsigned r, unsigned c)
Resize to r rows by c columns. Old data lost.
vnl_vector< std::complex< double > > W