merged eigen dense and sparse backend