35 #ifndef OPENMS_DATASTRUCTURES_UTILS_MATRIXUTILS_H 36 #define OPENMS_DATASTRUCTURES_UTILS_MATRIXUTILS_H 42 #include <boost/shared_ptr.hpp> 53 static EigenMatrixXdPtr
56 MutableEigenMatrixXdPtr em (
new Eigen::MatrixXd(m.
rows(), m.
cols()) );
57 for (
unsigned i=0; i<m.
rows(); ++i)
59 for (
unsigned j=0; j<m.
cols(); ++j)
76 if ((i == j && channel_frequency(i, j) != 1.0) || channel_frequency(i, j) != 0.0)
boost::shared_ptr< Eigen::MatrixXd > MutableEigenMatrixXdPtr
Definition: MatrixUtils.h:51
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
static EigenMatrixXdPtr convertOpenMSMatrix2EigenMatrixXd(const Matrix< double > &m)
Definition: MatrixUtils.h:54
static bool matrixIsIdentityMatrix(const Matrix< double > &channel_frequency)
Definition: MatrixUtils.h:68
boost::shared_ptr< const Eigen::MatrixXd > EigenMatrixXdPtr
Definition: MatrixUtils.h:50
SizeType cols() const
Number of columns.
Definition: Matrix.h:265
SizeType rows() const
Number of rows.
Definition: Matrix.h:259