def rmatmul(self, rhs):
 if isinstance(rhs, variable.Variable):
  return MatMulVarVar()(rhs, self)
 _check_constant_type(rhs)
 return MatMulConstVar(rhs)(self)

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