ComplexFloat

class ComplexFloat(val re: Float, val im: Float) : Complex

Represents a single-precision 64-bit complex number.

Constructors

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

Creates a ComplexFloat where the real part is one.

Link copied to clipboard
fun ComplexFloat(re: Number)

Creates a zero ComplexFloat.

Link copied to clipboard
fun ComplexFloat(re: Float, im: Float)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun abs(): Float

Returns absolute value of complex number.

Link copied to clipboard
fun angle(): Float

Returns angle of complex number.

Link copied to clipboard
operator fun component1(): Float
Link copied to clipboard
operator fun component2(): Float
Link copied to clipboard
fun conjugate(): ComplexFloat

Returns complex conjugate value.

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

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): ComplexFloat
operator fun minus(other: Double): ComplexDouble
operator fun minus(other: Float): ComplexFloat
operator fun minus(other: Int): ComplexFloat
operator fun minus(other: Long): ComplexFloat
operator fun minus(other: Short): ComplexFloat
operator fun minus(other: ComplexDouble): ComplexDouble
operator fun minus(other: ComplexFloat): ComplexFloat

Subtracts the other value from this value.

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

Adds the other value to this value.

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

Multiplies this value by the other value.

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

Returns the negative of this value.

Link copied to clipboard
operator fun unaryPlus(): ComplexFloat

Returns this value.

Properties

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

Extensions

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