Example #1
0
 def __eq__(self, other):
     from loopy.symbolic import (is_tuple_of_expressions_equal as istoee,
                                 is_expression_equal as isee)
     return (type(self) == type(other) and self.name == other.name
             and self.dtype == other.dtype
             and istoee(self.shape, other.shape)
             and self.dim_tags == other.dim_tags
             and isee(self.offset, other.offset)
             and self.dim_names == other.dim_names
             and self.order == other.order)
Example #2
0
 def __eq__(self, other):
     from loopy.symbolic import (
             is_tuple_of_expressions_equal as istoee,
             is_expression_equal as isee)
     return (
             type(self) == type(other)
             and self.name == other.name
             and self.dtype == other.dtype
             and istoee(self.shape, other.shape)
             and self.dim_tags == other.dim_tags
             and isee(self.offset, other.offset)
             and self.dim_names == other.dim_names
             and self.order == other.order
             )