C# Class DSPUtil.Complex

Implementation of a double-precision (64-bit float) complex number
Show file Open project: hughpyle/inguz-DSPUtil Class Usage Examples

Public Properties

Property Type Description
Im double
Re double

Public Methods

Method Description
Complex ( Complex c ) : System
Complex ( double phase ) : System
Complex ( double real, double imaginary ) : System
Equals ( object obj ) : bool
GetHashCode ( ) : int
Pow ( Complex y ) : void

Raises to a power

Set ( double re, double im ) : void

Set value

ToString ( ) : string
div ( Complex c ) : void

In-place divide: this=this/arg

idiv ( Complex c ) : void

In-place inverted divide: this = arg/this

mul ( Complex c ) : void

In-place multiply

mul ( double d ) : void

In-place multiply

operator ( ) : Complex

Operator multiply

operator ( ) : bool

Operator negative equalitytest

Method Details

Complex() public method

public Complex ( Complex c ) : System
c Complex
return System

Complex() public method

public Complex ( double phase ) : System
phase double
return System

Complex() public method

public Complex ( double real, double imaginary ) : System
real double
imaginary double
return System

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Pow() public method

Raises to a power
public Pow ( Complex y ) : void
y Complex
return void

Set() public method

Set value
public Set ( double re, double im ) : void
re double Real
im double Imaginary
return void

ToString() public method

public ToString ( ) : string
return string

div() public method

In-place divide: this=this/arg
public div ( Complex c ) : void
c Complex Complex
return void

idiv() public method

In-place inverted divide: this = arg/this
public idiv ( Complex c ) : void
c Complex Complex
return void

mul() public method

In-place multiply
public mul ( Complex c ) : void
c Complex Complex
return void

mul() public method

In-place multiply
public mul ( double d ) : void
d double double
return void

operator() public static method

Operator multiply
public static operator ( ) : Complex
return Complex

operator() public static method

Operator negative equalitytest
public static operator ( ) : bool
return bool

Property Details

Im public property

public double Im
return double

Re public property

public double Re
return double