this
* that
this
* that
this
* that
this
* that
this
+ that
this
+ that
this
+ that
this
+ that
this
- that
this
- that
this
- that
this
- that
this
/ that
this
/ that
this
/ that
this
/ that
Helper for equals.
Helper for equals.
Get the complex conjugate of this.
Get the complex conjugate of this.
Test this
and other
for deep equality.
Test this
and other
for deep equality.
e ^ this
e ^ this
Get the data in the tensor, flattened to a linear array.
Get the data in the tensor, flattened to a linear array.
Required because of overriding equals.
Required because of overriding equals.
The length of the complex number.
The length of the complex number.
The norm of the complex number.
The norm of the complex number.
The phase (angle) in radians.
The phase (angle) in radians.
This is a number in the range (-Pi, Pi].
this ^ exponent
this ^ exponent
Print out a complex number for debugging.
Print out a complex number for debugging.
1/this
1/this
Format the complex number as a String.
Format the complex number as a String.
-this
-this
A stick tensor in 2 dimensions, encoded as a complex number.
Because orientation extends only from 0 to Pi while phase of a complex number extends from 0 to 2 Pi, we *define* orientation to be half the phase of the complex number. This means when creating the stick tensor from a given orientation and magnitude, the orientation must be doubled.
A stick tensor, represented as a complex number.