update array, vector, matrix output format