struct Complex

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]

Defined in:

patches/complex.cr

Instance Method Summary

Instance Method Detail

def %(other : MultiIndexable(U)) forall U #

Invokes #% element-wise between self and other, returning an NArray that contains the results.


[View source]
def &(other : MultiIndexable(U)) forall U #

Invokes #& element-wise between self and other, returning an NArray that contains the results.


[View source]
def &**(other : MultiIndexable(U)) forall U #

Invokes #&** element-wise between self and other, returning an NArray that contains the results.


[View source]
def &+(other : MultiIndexable(U)) forall U #

Invokes #&+ element-wise between self and other, returning an NArray that contains the results.


[View source]
def &-(other : MultiIndexable(U)) forall U #

Invokes #&- element-wise between self and other, returning an NArray that contains the results.


[View source]
def *(other : MultiIndexable(U)) forall U #

Invokes #* element-wise between self and other, returning an NArray that contains the results.


[View source]
def **(other : MultiIndexable(U)) forall U #

Invokes #** element-wise between self and other, returning an NArray that contains the results.


[View source]
def +(other : MultiIndexable(U)) forall U #

Invokes #+ element-wise between self and other, returning an NArray that contains the results.


[View source]
def -(other : MultiIndexable(U)) forall U #

Invokes #- element-wise between self and other, returning an NArray that contains the results.


[View source]
def /(other : MultiIndexable(U)) forall U #

Invokes #/ element-wise between self and other, returning an NArray that contains the results.


[View source]
def //(other : MultiIndexable(U)) forall U #

Invokes #// element-wise between self and other, returning an NArray that contains the results.


[View source]
def <(other : MultiIndexable(U)) forall U #

Invokes #< element-wise between self and other, returning an NArray that contains the results.


[View source]
def <=(other : MultiIndexable(U)) forall U #

Invokes #<= element-wise between self and other, returning an NArray that contains the results.


[View source]
def >(other : MultiIndexable(U)) forall U #

Invokes #> element-wise between self and other, returning an NArray that contains the results.


[View source]
def >=(other : MultiIndexable(U)) forall U #

Invokes #>= element-wise between self and other, returning an NArray that contains the results.


[View source]
def ^(other : MultiIndexable(U)) forall U #

Invokes #^ element-wise between self and other, returning an NArray that contains the results.


[View source]
def |(other : MultiIndexable(U)) forall U #

Invokes #| element-wise between self and other, returning an NArray that contains the results.


[View source]
def eq(other : MultiIndexable(U)) : MultiIndexable(Bool) forall U #

[View source]