Examples of toComplexArray()


Examples of org.jamesii.core.math.complex.ComplexArray1D.toComplexArray()

   */
  public void testToComplexArray() {
    Complex[] a =
        new Complex[] { new Complex(1, 2), new Complex(3, 4), new Complex(5, 6) };
    ComplexArray1D b = new ComplexArray1D(a);
    Complex[] c = b.toComplexArray();

    for (int i = 0; i < a.length; i++) {
      assertTrue(a[i].equals(c[i]));
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.