output for bigintmat, matrix, intmat