70 void add(std::vector<size_t> _position,
const value_t _measuredValue);
72 void sort(
const bool _positionsOnly =
false);
79 void measure(std::function<
value_t(
const std::vector<size_t>&)> _callback);
86 double test(std::function<
value_t(
const std::vector<size_t>&)> _callback)
const;
90 void create_random_positions(
const size_t _numMeasurements,
const std::vector<size_t>& _dimensions);
114 static RankOneMeasurementSet random(
const size_t _numMeasurements,
const std::vector<size_t>& _dimensions, std::function<
value_t(
const std::vector<Tensor>&)> _callback);
123 void add(
const std::vector<Tensor>& _position,
const value_t _measuredValue);
125 void sort(
const bool _positionsOnly);
134 void measure(std::function<
value_t(
const std::vector<Tensor>&)> _callback);
141 double test(std::function<
value_t(
const std::vector<Tensor>&)> _callback)
const;
145 void create_random_positions(
const size_t _numMeasurements,
const std::vector<size_t>& _dimensions);
Header file for some additional math functions.
void sort(const bool _positionsOnly=false)
double test(const Tensor &_solution) const
Header file for the standard contaienr support functions.
Very general class used to represent arbitary tensor networks.
Class used to represent a single point measurments.
The main namespace of xerus.
Class that handles simple (non-decomposed) tensors in a dense or sparse representation.
std::vector< value_t > measuredValues
SinglePointMeasurementSet & operator=(const SinglePointMeasurementSet &_other)=default
std::vector< std::vector< Tensor > > positions
int comp(const Tensor &_a, const Tensor &_b)
Header file for shorthand notations that are xerus specific but used throughout the library...
double value_t
The type of values to be used by xerus.
value_t frob_norm() const
std::vector< std::vector< size_t > > positions
static SinglePointMeasurementSet random(const size_t _numMeasurements, const std::vector< size_t > &_dimensions)
void measure(const Tensor &_solution)
SinglePointMeasurementSet()=default
void add(std::vector< size_t > _position, const value_t _measuredValue)
std::vector< value_t > measuredValues