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

Function copy_column

cpp_core/src/davidson.cpp:1034–1044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1032namespace {
1033
1034void copy_column(
1035 const std::vector<Complex>& src,
1036 int src_col,
1037 int n_pw,
1038 Complex* dst
1039) {
1040 const Complex* col = src.data() + static_cast<std::ptrdiff_t>(src_col) * n_pw;
1041 for (int i = 0; i < n_pw; ++i) {
1042 dst[i] = col[i];
1043 }
1044}
1045
1046void store_column(
1047 const Complex* src,

Calls

no outgoing calls

Tested by

no test coverage detected