Example #1
0
 @Override
 public ComplexFloat divi(float v, org.jblas.ComplexFloat result) {
   super.divi(v, result);
   return this;
 }
Example #2
0
 @Override
 public ComplexFloat div(float v) {
   super.div(v);
   return this;
 }
Example #3
0
 @Override
 public ComplexFloat divi(org.jblas.ComplexFloat c) {
   super.divi(c);
   return this;
 }
Example #4
0
 public ComplexFloat(org.jblas.ComplexFloat c) {
   super(c.real(), c.imag());
 }
Example #5
0
 @Override
 public IComplexNumber set(Number real, Number imag) {
   super.set(real.floatValue(), imag.floatValue());
   return this;
 }
Example #6
0
 @Override
 public ComplexFloat conji() {
   super.set(realComponent(), -imaginaryComponent());
   return this;
 }
 /**
  * Returns the exp of a complex number: Let r be the real 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 real component and the second number is the imaginary component
  *
  * @param d the number to getFromOrigin the exp of
  * @return the exponential of this complex number
  */
 public static ComplexFloat exp(ComplexFloat d) {
   return new ComplexFloat(
       (float) FastMath.exp(d.real()) * (float) FastMath.cos(d.imag()),
       (float) FastMath.exp(d.real()) * (float) FastMath.sin(d.imag()));
 }