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

Method testCMul

JSAT/test/jsat/math/ComplexTest.java:189–201  ·  view source on GitHub ↗

Test of cMul method, of class Complex.

()

Source from the content-addressed store, hash-verified

187 * Test of cMul method, of class Complex.
188 */
189 @Test
190 public void testCMul()
191 {
192 System.out.println("cMul");
193 double r0 = a.getReal();
194 double i0 = a.getImag();
195 double r1 = b.getReal();
196 double i1 = b.getImag();
197 double[] results = new double[2];
198 Complex.cMul(r0, i0, r1, i1, results);
199 assertEquals(-1.0, results[0], 0.0);
200 assertEquals(17.0, results[1], 0.0);
201 }
202
203 /**
204 * Test of mutableMultiply method, of class Complex.

Callers

nothing calls this directly

Calls 3

cMulMethod · 0.95
getRealMethod · 0.80
getImagMethod · 0.80

Tested by

no test coverage detected