abstract struct Number
- Number
- Value
- Object
Overview
this patch makes it possible to operate elementwise on a Number and an NArray (in that order)
e.g.
5 + NArray.new([1,2,3]) #=> [6,7,8]
Included Modules
- Comparable(BigFloat)
- Comparable(Number)
- Steppable
Defined in:
patches/number.crInstance Method Summary
-
#%(other : MultiIndexable(U)) forall U
Invokes
#%element-wise betweenselfand other, returning anNArraythat contains the results. -
#&(other : MultiIndexable(U)) forall U
Invokes
#&element-wise betweenselfand other, returning anNArraythat contains the results. -
#&**(other : MultiIndexable(U)) forall U
Invokes
#&**element-wise betweenselfand other, returning anNArraythat contains the results. -
#&+(other : MultiIndexable(U)) forall U
Invokes
#&+element-wise betweenselfand other, returning anNArraythat contains the results. -
#&-(other : MultiIndexable(U)) forall U
Invokes
#&-element-wise betweenselfand other, returning anNArraythat contains the results. -
#*(other : MultiIndexable(U)) forall U
Invokes
#*element-wise betweenselfand other, returning anNArraythat contains the results. -
#**(other : MultiIndexable(U)) forall U
Invokes
#**element-wise betweenselfand other, returning anNArraythat contains the results. -
#+(other : MultiIndexable(U)) forall U
Invokes
#+element-wise betweenselfand other, returning anNArraythat contains the results. -
#-(other : MultiIndexable(U)) forall U
Invokes
#-element-wise betweenselfand other, returning anNArraythat contains the results. -
#/(other : MultiIndexable(U)) forall U
Invokes
#/element-wise betweenselfand other, returning anNArraythat contains the results. -
#//(other : MultiIndexable(U)) forall U
Invokes
#//element-wise betweenselfand other, returning anNArraythat contains the results. -
#<(other : MultiIndexable(U)) forall U
Invokes
#<element-wise betweenselfand other, returning anNArraythat contains the results. -
#<=(other : MultiIndexable(U)) forall U
Invokes
#<=element-wise betweenselfand other, returning anNArraythat contains the results. -
#>(other : MultiIndexable(U)) forall U
Invokes
#>element-wise betweenselfand other, returning anNArraythat contains the results. -
#>=(other : MultiIndexable(U)) forall U
Invokes
#>=element-wise betweenselfand other, returning anNArraythat contains the results. -
#^(other : MultiIndexable(U)) forall U
Invokes
#^element-wise betweenselfand other, returning anNArraythat contains the results. -
#|(other : MultiIndexable(U)) forall U
Invokes
#|element-wise betweenselfand other, returning anNArraythat contains the results. - #eq(other : MultiIndexable(U)) : MultiIndexable(Bool) forall U
Instance Method Detail
Invokes #% element-wise between self and other, returning
an NArray that contains the results.
Invokes #& element-wise between self and other, returning
an NArray that contains the results.
Invokes #&** element-wise between self and other, returning
an NArray that contains the results.
Invokes #&+ element-wise between self and other, returning
an NArray that contains the results.
Invokes #&- element-wise between self and other, returning
an NArray that contains the results.
Invokes #* element-wise between self and other, returning
an NArray that contains the results.
Invokes #** element-wise between self and other, returning
an NArray that contains the results.
Invokes #+ element-wise between self and other, returning
an NArray that contains the results.
Invokes #- element-wise between self and other, returning
an NArray that contains the results.
Invokes #/ element-wise between self and other, returning
an NArray that contains the results.
Invokes #// element-wise between self and other, returning
an NArray that contains the results.
Invokes #< element-wise between self and other, returning
an NArray that contains the results.
Invokes #<= element-wise between self and other, returning
an NArray that contains the results.
Invokes #> element-wise between self and other, returning
an NArray that contains the results.
Invokes #>= element-wise between self and other, returning
an NArray that contains the results.
Invokes #^ element-wise between self and other, returning
an NArray that contains the results.