Complex

object Complex extends ComplexInstances
Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any
Complex.type

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def fromInt[@specialized(Float, Double) T](n: Int)(implicit f: CommutativeRing[T]): Complex[T]
def i[@specialized(Float, Double) T](implicit T: CommutativeRing[T]): Complex[T]
def one[@specialized(Float, Double) T](implicit T: CommutativeRing[T]): Complex[T]
def polar[@specialized(Float, Double) T : Trig](magnitude: T, angle: T): Complex[T]
def rootOfUnity[@specialized(Float, Double) T](n: Int, x: Int)(implicit f: Field[T], t: Trig[T]): Complex[T]
def rootsOfUnity[@specialized(Float, Double) T](n: Int)(implicit f: Field[T], t: Trig[T]): Array[Complex[T]]
def zero[@specialized(Float, Double) T](implicit T: CommutativeRing[T]): Complex[T]

Implicits

Implicits

implicit def floatToComplex(n: Float): Complex[Float]
implicit def intToComplex(n: Int): Complex[Double]
implicit def longToComplex(n: Long): Complex[Double]

Inherited implicits

implicit def ComplexEq[A : Eq]: Eq[Complex[A]]
Inherited from:
ComplexInstances
implicit def ComplexOnCRing[A : Signed]: ComplexOnCRing[A]
Inherited from:
ComplexInstances0
implicit def ComplexOnField[A : Signed]: ComplexOnField[A]
Inherited from:
ComplexInstances1
implicit def ComplexOnTrig[@specialized(Float, Double) A : Signed]: ComplexOnTrigImpl[A]
Inherited from:
ComplexInstances