org.nd4j.linalg.util
Class ComplexUtil
- java.lang.Object
-
- org.nd4j.linalg.util.ComplexUtil
-
public class ComplexUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description ComplexUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static IComplexNumberabs(IComplexNumber num)Return the absolute value of the given complex numberstatic IComplexDoubleexp(IComplexDouble d)Returns the exp of a complex number: Let r be the realComponent component and i be the imaginary Let ret be the complex number returned ret -> exp(r) * cos(i), exp(r) * sin(i) where the first number is the realComponent component and the second number is the imaginary componentstatic IComplexFloatexp(IComplexFloat d)Returns the exp of a complex number: Let r be the realComponent component and i be the imaginary Let ret be the complex number returned ret -> exp(r) * cos(i), exp(r) * sin(i) where the first number is the realComponent component and the second number is the imaginary componentstatic IComplexNumberexp(IComplexNumber d)Returns the exp of a complex number: Let r be the realComponent component and i be the imaginary Let ret be the complex number returned ret -> exp(r) * cos(i), exp(r) * sin(i) where the first number is the realComponent component and the second number is the imaginary componentstatic IComplexNumberfloor(IComplexNumber num)Return the log value of the given complex numberstatic IComplexNumberlog(IComplexNumber num)Return the log value of the given complex numberstatic IComplexNumberneg(IComplexNumber num)Return the log value of the given complex numberstatic IComplexNumberpow(IComplexNumber num, double power)Raise a complex number to a powerstatic IComplexNumberpow(IComplexNumber num, IComplexNumber power)Raise a complex number to a powerstatic IComplexNumberround(IComplexNumber num)static IComplexNumbersqrt(IComplexNumber num)Return the absolute value of the given complex numberstatic IComplexNumbertanh(IComplexNumber num)Return the tanh of a complex number
-
-
-
Method Detail
-
floor
public static IComplexNumber floor(IComplexNumber num)
Return the log value of the given complex number- Parameters:
num- the number to getScalar the absolute value for- Returns:
- the absolute value of this complex number
-
neg
public static IComplexNumber neg(IComplexNumber num)
Return the log value of the given complex number- Parameters:
num- the number to getScalar the absolute value for- Returns:
- the absolute value of this complex number
-
log
public static IComplexNumber log(IComplexNumber num)
Return the log value of the given complex number- Parameters:
num- the number to getScalar the absolute value for- Returns:
- the absolute value of this complex number
-
sqrt
public static IComplexNumber sqrt(IComplexNumber num)
Return the absolute value of the given complex number- Parameters:
num- the number to getScalar the absolute value for- Returns:
- the absolute value of this complex number
-
abs
public static IComplexNumber abs(IComplexNumber num)
Return the absolute value of the given complex number- Parameters:
num- the number to getScalar the absolute value for- Returns:
- the absolute value of this complex number
-
round
public static IComplexNumber round(IComplexNumber num)
-
pow
public static IComplexNumber pow(IComplexNumber num, IComplexNumber power)
Raise a complex number to a power- Parameters:
num- the number to raisepower- the power to raise to- Returns:
- the number raised to a power
-
pow
public static IComplexNumber pow(IComplexNumber num, double power)
Raise a complex number to a power- Parameters:
num- the number to raisepower- the power to raise to- Returns:
- the number raised to a power
-
tanh
public static IComplexNumber tanh(IComplexNumber num)
Return the tanh of a complex number- Parameters:
num- the tanh of a complex number- Returns:
- the tanh of a complex number
-
exp
public static IComplexNumber exp(IComplexNumber d)
Returns the exp of a complex number: Let r be the realComponent component and i be the imaginary Let ret be the complex number returned ret -> exp(r) * cos(i), exp(r) * sin(i) where the first number is the realComponent component and the second number is the imaginary component- Parameters:
d- the number to getFromOrigin the exp of- Returns:
- the exponential of this complex number
-
exp
public static IComplexDouble exp(IComplexDouble d)
Returns the exp of a complex number: Let r be the realComponent component and i be the imaginary Let ret be the complex number returned ret -> exp(r) * cos(i), exp(r) * sin(i) where the first number is the realComponent component and the second number is the imaginary component- Parameters:
d- the number to getFromOrigin the exp of- Returns:
- the exponential of this complex number
-
exp
public static IComplexFloat exp(IComplexFloat d)
Returns the exp of a complex number: Let r be the realComponent component and i be the imaginary Let ret be the complex number returned ret -> exp(r) * cos(i), exp(r) * sin(i) where the first number is the realComponent component and the second number is the imaginary component- Parameters:
d- the number to getFromOrigin the exp of- Returns:
- the exponential of this complex number
-
-
DMelt 3.0 © DataMelt by jWork.ORG