#NEWLINE# def check_type_forward( self , in_types ) : #NEWLINE# #INDENT# type_check . expect ( ( in_types . size ( ) == 2 ) ) #NEWLINE# ( x_type , t_type ) = in_types #NEWLINE# type_check . expect ( ( x_type . dtype . kind == 'f' ) , ( t_type . dtype . kind == 'i' ) , ( x_type . ndim == 2 ) , ( t_type . ndim == 1 ) , ( x_type . shape [ 0 ] == t_type . shape [ 0 ] ) )