tidy expression output
re-use compiled functions for irregular sparsity patterns