Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactored matrixreal and sigp methods #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivanbukhtiyarov
Copy link

No description provided.

src/matrix.cpp Outdated
Comment on lines 78 to 79
xt::xarray<double> DecayMatrix::get_matrix_real(Chain& chain,
const Materials& mat, std::string matrix_kind) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Передавать целую строку в качестве параметра?, если разница только в том, что в итерационном методе ты зануляешь диагональ? Может при вызове matrix_real вызвать функцию и добавить цикл для обнуления диагонали

src/matrix.cpp Outdated
@@ -169,7 +177,7 @@ xt::xarray<double> IterMatrix::matrixdev(Chain& chain,
for (size_t i = 0; i < NN; i++) {
std::copy(&this->data_[i][0], &this->data_[i][NN],
(result.begin() + i * NN));
result(i, i) = 0.0;
result(i, i) = 0.0; // ------------------
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А здесь комментарий к чему?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants