Skip to content

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
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