Function operator class to calculate the partial cost function of the final optimization process.
More...
#include <N_Qubit_Decomposition_Cost_Function.h>
|
| functor_cost_fnc (Matrix matrix_in, tbb::combinable< double > *partial_cost_functions_in) |
| Constructor of the class. More...
|
|
void | operator() (tbb::blocked_range< int > r) const |
| Operator to calculate the partial cost function derived from the row of the matrix labeled by row_idx. More...
|
|
void | print (const std::stringstream &sstream, int verbose_level=1) const |
| Call to print output messages in the function of the verbosity level. More...
|
|
void | set_debugfile (std::string debugfile) |
| Call to set the debugfile name. More...
|
|
void | set_verbose (int verbose_in) |
| Call to set the verbose attribute. More...
|
|
Function operator class to calculate the partial cost function of the final optimization process.
Definition at line 103 of file N_Qubit_Decomposition_Cost_Function.h.
◆ functor_cost_fnc()
functor_cost_fnc::functor_cost_fnc |
( |
Matrix |
matrix_in, |
|
|
tbb::combinable< double > * |
partial_cost_functions_in |
|
) |
| |
Constructor of the class.
- Parameters
-
matrix_in | Arry containing the input matrix |
partial_cost_functions_in | Preallocated array storing the calculated partial cost functions. |
- Returns
- Returns with the instance of the class.
- Parameters
-
matrix_in | Arry containing the input matrix |
matrix_size_in | The number rows in the matrix. |
partial_cost_functions_in | Preallocated array storing the calculated partial cost functions. |
partial_cost_fnc_num_in | The number of partial cost function values (equal to the number of distinct submatrix products.) |
- Returns
- Returns with the instance of the class.
Definition at line 498 of file N_Qubit_Decomposition_Cost_Function.cpp.
◆ operator()()
void functor_cost_fnc::operator() |
( |
tbb::blocked_range< int > |
r | ) |
const |
Operator to calculate the partial cost function derived from the row of the matrix labeled by row_idx.
- Parameters
-
r | A TBB range labeling the partial cost function to be calculated. |
Definition at line 509 of file N_Qubit_Decomposition_Cost_Function.cpp.
◆ print()
void logging::print |
( |
const std::stringstream & |
sstream, |
|
|
int |
verbose_level = 1 |
|
) |
| const |
|
inherited |
Call to print output messages in the function of the verbosity level.
- Parameters
-
sstream | The stringstream input to store the output messages. |
verbose_level | Integer input. High level means write more to the standart output, 0 means write nothing. The default value is set to 1. |
Definition at line 55 of file logging.cpp.
◆ set_debugfile()
void logging::set_debugfile |
( |
std::string |
debugfile | ) |
|
|
inherited |
Call to set the debugfile name.
- Parameters
-
debugfile | String variable. Set the debugfile name. |
Definition at line 95 of file logging.cpp.
◆ set_verbose()
void logging::set_verbose |
( |
int |
verbose_in | ) |
|
|
inherited |
Call to set the verbose attribute.
- Parameters
-
verbose_in | Integer variable. Set the number to specify the verbosity level for output messages. |
Definition at line 85 of file logging.cpp.
◆ data
◆ debug
Logical variable. Set true to write output messages to the 'debug.txt' file.
Definition at line 53 of file logging.h.
◆ debugfile_name
std::string logging::debugfile_name |
|
inherited |
String variable. Set the debug file name.
Definition at line 56 of file logging.h.
◆ matrix
Matrix functor_cost_fnc::matrix |
|
protected |
◆ partial_cost_functions
tbb::combinable<double>* functor_cost_fnc::partial_cost_functions |
|
protected |
◆ verbose
Set the verbosity level of the output messages.
Definition at line 50 of file logging.h.
The documentation for this class was generated from the following files: