Weighted covariance, how to compute?

Thx, but i need algebraic formula (to large matrix for this way). Somebody can help ?
Paul