25 #include <n/n_diagonalize.h>
28 #include <boost/tuple/tuple.hpp>
56 ETX(kjb_c::diagonalize_symmetric(M.
get_c_matrix(), &c_eig_vectors, &c_eig_values));
71 boost::tuple<Matrix, Vector> eig(
const Matrix& M,
bool symmetric =
false)
78 return boost::make_tuple(evec, eval);
Vector & resize(int new_length, Value_type pad=Value_type(0))
Resize vector, retaining previous values.
Definition: m_vector.cpp:242
#define ETX(a)
Definition: l_exception.h:67
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
void diagonalize(const Matrix &M, Matrix &eig_vectors, Vector &eig_values, bool symmetric=false)
KJB c-style syntax for eigenvalue decomposition.
Definition: n_eig.h:39
int get_num_rows() const
Return the number of rows in the matrix.
Definition: m_matrix.h:543
Impl_type *& get_underlying_representation_with_guilt()
Get pointer to the underlying kjb_c::Matrix C struct.
Definition: m_matrix.h:591
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
Impl_type *& get_underlying_representation_with_guilt()
Get pointer to the underlying kjb_c::Vector C struct.
Definition: m_vector.h:857
int get_num_cols() const
Return the number of columns in the matrix.
Definition: m_matrix.h:554
#define KJB_THROW_2(ex, msg)
Definition: l_exception.h:48
Matrix & resize(int new_rows, int new_cols, Value_type pad=Value_type(0))
Resize this matrix, retaining previous values. Space is reused if possible. Otherwise requires a new ...
Definition: m_matrix.cpp:457
Object thrown when an argument to a function is not acceptable.
Definition: l_exception.h:377
const Impl_type * get_c_matrix() const
Get const pointer to the underlying kjb_c::Matrix C struct.
Definition: m_matrix.h:601
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
Support for error handling exception classes in libKJB.
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...