mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 05:43:40 +01:00
Modify det_manip to access determinant x_values and y_values
This commit is contained in:
parent
e93adc0b84
commit
d8e79056bf
@ -239,13 +239,19 @@ namespace triqs { namespace det_manip {
|
|||||||
//----------------------- READ ACCESS TO DATA ----------------------------------
|
//----------------------- READ ACCESS TO DATA ----------------------------------
|
||||||
|
|
||||||
/// Current size of the matrix
|
/// Current size of the matrix
|
||||||
size_t size() const { return N;}
|
size_t size() const { return N; }
|
||||||
|
|
||||||
/// Returns the i-th values of x
|
/// Returns the i-th values of x
|
||||||
xy_type const & get_x(size_t i) const { return x_values[row_num[i]];}
|
xy_type const & get_x(size_t i) const { return x_values[row_num[i]]; }
|
||||||
|
|
||||||
|
/// Returns the vector of x values
|
||||||
|
std::vector<xy_type> const & get_x_values() const { return x_values; }
|
||||||
|
|
||||||
/// Returns the j-th values of y
|
/// Returns the j-th values of y
|
||||||
xy_type const & get_y(size_t j) const { return y_values[col_num[j]];}
|
xy_type const & get_y(size_t j) const { return y_values[col_num[j]]; }
|
||||||
|
|
||||||
|
/// Returns the vector of y values
|
||||||
|
std::vector<xy_type> const & get_y_values() const { return y_values; }
|
||||||
|
|
||||||
/** det M of the current state of the matrix. */
|
/** det M of the current state of the matrix. */
|
||||||
value_type determinant() const {return sign*det;}
|
value_type determinant() const {return sign*det;}
|
||||||
@ -807,7 +813,7 @@ namespace triqs { namespace det_manip {
|
|||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
enum RollDirection {None,Up, Down,Left,Right};
|
enum RollDirection {None,Up,Down,Left,Right};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* "Cyclic Rolling" of the determinant.
|
* "Cyclic Rolling" of the determinant.
|
||||||
|
Loading…
Reference in New Issue
Block a user