fn dmatrix_to_rvalue(mat: &DMatrix<f64>) -> RValue
Convert a nalgebra DMatrix back to an RValue matrix.