Computation of the following matrix-product: *\mathbf{XDX}'*
Where *\mathbf{D}* is a diagonal matrix, which is being passed to the function as a vector.

1 |

`X` |
matrix |

`D` |
numeric vector, will be used as a weighting diagonal matrix of dimension ncol(X). If omitted an identity matrix will be assigned. |

Square matrix of dimension nrow(X)

1 2 3 4 5 6 7 8 9 10 11 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.