Skip to content

Commit d33ddb0

Browse files
Avoid redundant PPCG Gram initialization
1 parent 1995a0a commit d33ddb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/source_hsolver/ppcg/diago_ppcg_ops.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ void DiagoPPCG<T, Device>::gram(const T* a, const T* b,
119119
std::vector<T>& out,
120120
int ld_out) const
121121
{
122-
out.assign(ld_out * ncol_b, T(0));
122+
out.resize(ld_out * ncol_b);
123123
const T one = T(1);
124124
const T zero = T(0);
125125
ModuleBase::gemm_op<T, Device>()('C',

0 commit comments

Comments
 (0)