MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / mutableMultiply

Method mutableMultiply

JSAT/src/jsat/math/Complex.java:156–162  ·  view source on GitHub ↗

Alters this complex number as if a multiplication of another complex number was performed. @param c the real part of the other number @param d the imaginary part of the other number

(double c, double d)

Source from the content-addressed store, hash-verified

154 * @param d the imaginary part of the other number
155 */
156 public void mutableMultiply(double c, double d)
157 {
158 double newR = this.real*c-this.imag*d;
159 double newI = this.imag*c+this.real*d;
160 this.real = newR;
161 this.imag = newI;
162 }
163
164 /**
165 * Alters this complex number to contain the result of the multiplication of another

Callers 6

multiplyMethod · 0.95
twoLoopHpMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected