@@ -30,21 +30,19 @@ class DiagoDavid : public DiagH<T, Device>
3030
3131 // declare type of matrix-blockvector functions.
3232 // the function type is defined as a std::function object.
33- // notice that hpsi and spsi functions require
34- // !different! order of input and output blockvectors.
3533 /* *
3634 * @brief A function type representing the HX function.
3735 *
3836 * This function type is used to define a matrix-blockvector operator H.
3937 * For eigenvalue problem HX = λX or generalized eigenvalue problem HX = λSX,
4038 * this function computes the product of the Hamiltonian matrix H and a blockvector X.
4139 *
42- * @param[out] X Pointer to input blockvector of type `T*`.
43- * @param[in] HX Pointer to output blockvector of type `T*`.
44- * @param[in] neig Number of eigebpairs required .
45- * @param[in] dim Dimension of matrix.
46- * @param[in] id_start Start index of blockvector.
47- * @param[in] id_end End index of blockvector.
40+ * @param[out] X Pointer to input blockvector of type `T*`.
41+ * @param[in] HX Pointer to output blockvector of type `T*`.
42+ * @param[in] nvec Number of eigebpairs, i.e. number of vectors in a block .
43+ * @param[in] dim Dimension of matrix.
44+ * @param[in] id_start Start index of blockvector.
45+ * @param[in] id_end End index of blockvector.
4846 */
4947 using HPsiFunc = std::function<void (T*, T*, const int , const int , const int , const int )>;
5048
@@ -60,6 +58,8 @@ class DiagoDavid : public DiagH<T, Device>
6058 * @param[in] nrow Dimension of SX: nbands * nrow.
6159 * @param[in] npw Number of plane waves.
6260 * @param[in] nbands Number of bands.
61+ *
62+ * @note called as spsi(in, out, dim, dim, 1)
6363 */
6464 using SPsiFunc = std::function<void (T*, T*, const int , const int , const int )>;
6565
0 commit comments