ComplexDouble

class ComplexDouble(val re: Double, val im: Double) : Complex

Represents a double-precision 128-bit complex number.

Constructors

Link copied to clipboard
fun ComplexDouble(re: Number, im: Number)
Link copied to clipboard
fun ComplexDouble(re: Number)
Link copied to clipboard
fun ComplexDouble(re: Double, im: Double)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun abs(): Double

Returns absolute value of complex number.

Link copied to clipboard
fun angle(): Double

Returns angle of complex number.

Link copied to clipboard
operator fun component1(): Double
Link copied to clipboard
operator fun component2(): Double
Link copied to clipboard
fun conjugate(): ComplexDouble

Returns complex conjugate value.

Link copied to clipboard
operator fun div(other: Byte): ComplexDouble
operator fun div(other: Double): ComplexDouble
operator fun div(other: Float): ComplexDouble
operator fun div(other: Int): ComplexDouble
operator fun div(other: Long): ComplexDouble
operator fun div(other: Short): ComplexDouble
operator fun div(other: ComplexDouble): ComplexDouble
operator fun div(other: ComplexFloat): ComplexDouble

Divides this value by the other value.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
operator fun minus(other: Byte): ComplexDouble
operator fun minus(other: Double): ComplexDouble
operator fun minus(other: Float): ComplexDouble
operator fun minus(other: Int): ComplexDouble
operator fun minus(other: Long): ComplexDouble
operator fun minus(other: Short): ComplexDouble
operator fun minus(other: ComplexDouble): ComplexDouble
operator fun minus(other: ComplexFloat): ComplexDouble

Subtracts the other value from this value.

Link copied to clipboard
operator fun plus(other: Byte): ComplexDouble
operator fun plus(other: Double): ComplexDouble
operator fun plus(other: Float): ComplexDouble
operator fun plus(other: Int): ComplexDouble
operator fun plus(other: Long): ComplexDouble
operator fun plus(other: Short): ComplexDouble
operator fun plus(other: ComplexDouble): ComplexDouble
operator fun plus(other: ComplexFloat): ComplexDouble

Adds the other value to this value.

Link copied to clipboard
operator fun times(other: Byte): ComplexDouble
operator fun times(other: Double): ComplexDouble
operator fun times(other: Float): ComplexDouble
operator fun times(other: Int): ComplexDouble
operator fun times(other: Long): ComplexDouble
operator fun times(other: Short): ComplexDouble
operator fun times(other: ComplexDouble): ComplexDouble
operator fun times(other: ComplexFloat): ComplexDouble

Multiplies this value by the other value.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
operator fun unaryMinus(): ComplexDouble

Returns the negative of this value.

Link copied to clipboard
operator fun unaryPlus(): ComplexDouble

Returns this value.

Properties

Link copied to clipboard
val im: Double
Link copied to clipboard
val re: Double

Extensions

Link copied to clipboard
operator fun <D : Dimension> ComplexDouble.div(other: MultiArray<ComplexDouble, D>): NDArray<ComplexDouble, D>
Link copied to clipboard
operator fun <D : Dimension> ComplexDouble.minus(other: MultiArray<ComplexDouble, D>): NDArray<ComplexDouble, D>
Link copied to clipboard
operator fun <D : Dimension> ComplexDouble.plus(other: MultiArray<ComplexDouble, D>): NDArray<ComplexDouble, D>
Link copied to clipboard
operator fun <D : Dimension> ComplexDouble.times(other: MultiArray<ComplexDouble, D>): NDArray<ComplexDouble, D>