def matmul(self, rhs):
 if isinstance(rhs, variable.Variable):
  return MatMulVarVar()(self, rhs)
 _check_constant_type(rhs)
 return MatMulVarConst(rhs)(self)

def matmul ( self , rhs ) : if isinstance ( rhs , variable . Variable ) : return MatMulVarVar ( ) ( self , rhs ) _check_constant_type ( rhs ) return MatMulVarConst ( rhs ) ( self )
matrix multiplication .