|
xerus
a general purpose tensor library
|
Class used to represent a single point measurments. More...
#include <measurments.h>

Public Member Functions | |
| SinglePointMeasurementSet ()=default | |
| SinglePointMeasurementSet (const SinglePointMeasurementSet &_other)=default | |
| SinglePointMeasurementSet (SinglePointMeasurementSet &&_other)=default | |
| void | add (std::vector< size_t > _position, const value_t _measuredValue) |
| size_t | degree () const |
| value_t | frob_norm () const |
| void | measure (const Tensor &_solution) |
| void | measure (const TensorNetwork &_solution) |
| void | measure (std::function< value_t(const std::vector< size_t > &)> _callback) |
| SinglePointMeasurementSet & | operator= (const SinglePointMeasurementSet &_other)=default |
| SinglePointMeasurementSet & | operator= (SinglePointMeasurementSet &&_other)=default |
| size_t | size () const |
| void | sort (const bool _positionsOnly=false) |
| double | test (const Tensor &_solution) const |
| double | test (const TensorNetwork &_solution) const |
| double | test (std::function< value_t(const std::vector< size_t > &)> _callback) const |
Static Public Member Functions | |
| static SinglePointMeasurementSet | random (const size_t _numMeasurements, const std::vector< size_t > &_dimensions) |
| static SinglePointMeasurementSet | random (const size_t _numMeasurements, const Tensor &_solution) |
| static SinglePointMeasurementSet | random (const size_t _numMeasurements, const TensorNetwork &_solution) |
| static SinglePointMeasurementSet | random (const size_t _numMeasurements, const std::vector< size_t > &_dimensions, std::function< value_t(const std::vector< size_t > &)> _callback) |
Public Attributes | |
| std::vector< value_t > | measuredValues |
| std::vector< std::vector< size_t > > | positions |
Class used to represent a single point measurments.
Definition at line 43 of file measurments.h.
|
default |
|
default |
|
default |
| void xerus::SinglePointMeasurementSet::add | ( | std::vector< size_t > | _position, |
| const value_t | _measuredValue | ||
| ) |
Definition at line 83 of file measurments.cpp.
| size_t xerus::SinglePointMeasurementSet::degree | ( | ) | const |
Definition at line 78 of file measurments.cpp.
| value_t xerus::SinglePointMeasurementSet::frob_norm | ( | ) | const |
Definition at line 108 of file measurments.cpp.
| void xerus::SinglePointMeasurementSet::measure | ( | const Tensor & | _solution | ) |
Definition at line 118 of file measurments.cpp.
| void xerus::SinglePointMeasurementSet::measure | ( | const TensorNetwork & | _solution | ) |
Definition at line 125 of file measurments.cpp.
| void xerus::SinglePointMeasurementSet::measure | ( | std::function< value_t(const std::vector< size_t > &)> | _callback | ) |
Definition at line 156 of file measurments.cpp.
|
default |
|
default |
|
static |
Definition at line 42 of file measurments.cpp.
|
static |
Definition at line 50 of file measurments.cpp.
|
static |
Definition at line 57 of file measurments.cpp.
|
static |
Definition at line 64 of file measurments.cpp.
| size_t xerus::SinglePointMeasurementSet::size | ( | ) | const |
Definition at line 72 of file measurments.cpp.
| void xerus::SinglePointMeasurementSet::sort | ( | const bool | _positionsOnly = false | ) |
Definition at line 89 of file measurments.cpp.
| double xerus::SinglePointMeasurementSet::test | ( | const Tensor & | _solution | ) | const |
Definition at line 164 of file measurments.cpp.
| double xerus::SinglePointMeasurementSet::test | ( | const TensorNetwork & | _solution | ) | const |
Definition at line 175 of file measurments.cpp.
| double xerus::SinglePointMeasurementSet::test | ( | std::function< value_t(const std::vector< size_t > &)> | _callback | ) | const |
Definition at line 210 of file measurments.cpp.
| std::vector<value_t> xerus::SinglePointMeasurementSet::measuredValues |
Definition at line 46 of file measurments.h.
| std::vector<std::vector<size_t> > xerus::SinglePointMeasurementSet::positions |
Definition at line 45 of file measurments.h.