m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
277 B

6 months ago
  1. from sympy.tensor.array.ndim_array import NDimArray
  2. class MutableNDimArray(NDimArray):
  3. def as_immutable(self):
  4. raise NotImplementedError("abstract method")
  5. def as_mutable(self):
  6. return self
  7. def _sympy_(self):
  8. return self.as_immutable()