added support for dgCMatrix in csolve