HilbertSchmidt

Note

This is not a standard BLAS routine, but it is BLAS-like.

The Hilbert-Schmidt inner-product of two \(m \times n\) matrices \(A\) and \(B\) is \(\mbox{tr}(A^H B)\).

C++ API

F HilbertSchmidt(const Matrix<F> &A, const Matrix<F> &B)
F HilbertSchmidt(const AbstractDistMatrix<F> &A, const AbstractDistMatrix<F> &B)

C API

ElError ElHilbertSchmidt_i(ElConstMatrix_i A, ElConstMatrix_i B, ElInt* prod)
ElError ElHilbertSchmidt_s(ElConstMatrix_s A, ElConstMatrix_s B, float* prod)
ElError ElHilbertSchmidt_d(ElConstMatrix_d A, ElConstMatrix_d B, double* prod)
ElError ElHilbertSchmidt_c(ElConstMatrix_c A, ElConstMatrix_c B, complex_float* prod)
ElError ElHilbertSchmidt_z(ElConstMatrix_z A, ElConstMatrix_z B, complex_double* prod)
ElError ElHilbertSchmidtDist_i(ElConstDistMatrix_i A, ElConstDistMatrix_i B, ElInt* prod)
ElError ElHilbertSchmidtDist_s(ElConstDistMatrix_s A, ElConstDistMatrix_s B, float* prod)
ElError ElHilbertSchmidtDist_d(ElConstDistMatrix_d A, ElConstDistMatrix_d B, double* prod)
ElError ElHilbertSchmidtDist_c(ElConstDistMatrix_c A, ElConstDistMatrix_c B, complex_float* prod)
ElError ElHilbertSchmidtDist_z(ElConstDistMatrix_z A, ElConstDistMatrix_z B, complex_double* prod)