9#include "MantidCurveFitting/DllConfig.h"
25namespace CurveFitting {
54 inline Eigen::MatrixXcd &
eigen() {
return m_matrix; }
56 inline const Eigen::MatrixXcd
eigen()
const {
return m_matrix; }
61 void resize(
const size_t nx,
const size_t ny);
69 ComplexType get(
const size_t i,
const size_t j)
const;
71 ComplexType operator()(
const size_t i,
const size_t j)
const;
73 ComplexType &operator()(
const size_t i,
const size_t j);
99 void sortColumns(
const std::vector<size_t> &indices);
119 std::vector<double> packToStdVector()
const;
122 void unpackFromStdVector(
const std::vector<double> &v);
131 std::ios::fmtflags fflags(ostr.flags());
132 ostr << std::scientific << std::setprecision(6);
133 for (
size_t i = 0; i <
m.size1(); ++i) {
134 for (
size_t j = 0; j <
m.size2(); ++j) {
136 ostr << std::setw(28) << std::setprecision(13) <<
value.real() <<
"+" <<
value.imag() <<
"j ";
const std::vector< double > & rhs
Eigen::Map< const Eigen::VectorXcd, 0, Mantid::CurveFitting::dynamic_stride > complex_vector_map_type
Eigen::Map< const Eigen::MatrixXcd, 0, Mantid::CurveFitting::dynamic_stride > complex_matrix_map_type
double value
The value of the point.
A complex-valued matrix for linear algebra computations.
Eigen::MatrixXcd m_matrix
The pointer to the complex Eigen matrix.
Eigen::MatrixXcd & eigen()
Get the reference to the eigen matrix.
const Eigen::MatrixXcd eigen() const
Get the const pointer to the GSL matrix.
A complex-valued vector for linear algebra computations.
A wrapper around Eigen::Matrix.
A wrapper around Eigen::Vector.
MatrixWorkspace_sptr MANTID_API_DLL operator*(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Multiply two workspaces.
MatrixWorkspace_sptr MANTID_API_DLL operator+=(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Adds two workspaces.
MatrixWorkspace_sptr MANTID_API_DLL operator-=(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Subtracts two workspaces.
MANTID_API_DLL std::ostream & operator<<(std::ostream &, const AlgorithmHistory &)
Prints a text representation.
MatrixWorkspace_sptr MANTID_API_DLL operator*=(const MatrixWorkspace_sptr &lhs, const MatrixWorkspace_sptr &rhs)
Multiply two workspaces.
std::complex< double > ComplexType
Helper class which provides the Collimation Length for SANS instruments.