コード例 #1
0
ファイル: miarray.py プロジェクト: GRSEB9S/MeteoInfoLab
 def __rdiv__(self, other):
     r = None
     if isinstance(other, MIArray):
         r = MIArray(ArrayMath.div(other.array, self.array))
     else:
         r = MIArray(ArrayMath.div(other, self.array))
     return r
コード例 #2
0
ファイル: miarray.py プロジェクト: ccnasyq/MeteoInfoLab
 def __rdiv__(self, other):
     r = None
     if isinstance(other, MIArray):      
         r = MIArray(ArrayMath.div(other.array, self.array))
     else:
         r = MIArray(ArrayMath.div(other, self.array))
     return r
コード例 #3
0
ファイル: miarray.py プロジェクト: lileipku00/MeteoInfoLab
 def __rdiv__(self, other):
     if isinstance(other, MIArray):
         r = ArrayMath.div(other.array, self.array)
     else:
         r = ArrayMath.div(other, self.array)
     if r is None:
         raise ValueError('Dimension missmatch, can not broadcast!')
     return MIArray(r)
コード例 #4
0
 def __rdiv__(self, other):
     other = MIArray.__value_other(self, other)
     r = ArrayMath.div(other, self.array)
     if r is None:
         raise ValueError('Dimension missmatch, can not broadcast!')
     return MIArray(r)
コード例 #5
0
ファイル: miarray.py プロジェクト: meteoinfo/MeteoInfoLab
 def __rdiv__(self, other):
     other = MIArray.__value_other(self, other)
     r = ArrayMath.div(other, self.array)        
     if r is None:
         raise ValueError('Dimension missmatch, can not broadcast!')
     return MIArray(r)