MCPcopy Create free account
hub / github.com/SZAILAB/MaterialDFT-Demo / write_column_block

Function write_column_block

cpp_core/src/davidson.cpp:1774–1787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1772}
1773
1774void write_column_block(
1775 const std::vector<Complex>& src,
1776 int n_pw,
1777 int dst_offset,
1778 int n_cols,
1779 std::vector<Complex>* dst
1780) {
1781 for (int j = 0; j < n_cols; ++j) {
1782 for (int i = 0; i < n_pw; ++i) {
1783 (*dst)[static_cast<std::size_t>(i + n_pw * (dst_offset + j))] =
1784 src[static_cast<std::size_t>(i + n_pw * j)];
1785 }
1786 }
1787}
1788
1789std::vector<int> make_block_depth_limits(
1790 int block_start,

Calls

no outgoing calls

Tested by

no test coverage detected