matrix_A def