10#include "MantidCurveFitting/DllConfig.h"
23namespace CurveFitting {
40 EigenMatrix(std::initializer_list<std::initializer_list<double>> ilist);
65 void resize(
const size_t nx,
const size_t ny);
72 void set(
size_t i,
size_t j,
double value);
74 double get(
size_t i,
size_t j)
const;
76 double operator()(
size_t i,
size_t j)
const;
78 double &operator()(
size_t i,
size_t j);
126 EigenMatrix(std::vector<double> &&data,
size_t nx,
size_t ny);
136 std::ios::fmtflags fflags(ostr.flags());
137 ostr << std::scientific << std::setprecision(6);
138 for (
size_t i = 0; i <
m.size1(); ++i) {
139 for (
size_t j = 0; j <
m.size2(); ++j) {
140 ostr << std::setw(13) <<
m.get(i, j) <<
' ';
const std::vector< double > & rhs
double value
The value of the point.
A wrapper around Eigen::Matrix.
EigenMatrix_View m_view
The pointer to the vector.
EigenMatrix()=default
Constructor.
map_type copy_view() const
Get a copy of the Eigen matrix.
std::vector< double > m_data
Default element storage.
map_type & mutator()
Get the map to Eigen matrix.
double operator()(size_t i, size_t j) const
The "index" operator.
const map_type inspector() const
Get a const copy of the 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.
Eigen::Map< Eigen::MatrixXd, 0, dynamic_stride > map_type
Helper class which provides the Collimation Length for SANS instruments.