add density eval and matrix distribution