Example usage for org.apache.commons.math4.complex Complex Complex

List of usage examples for org.apache.commons.math4.complex Complex Complex

Introduction

In this page you can find the example usage for org.apache.commons.math4.complex Complex Complex.

Prototype

public Complex(double real) 

Source Link

Document

Create a complex number given only the real part.

Usage

From source file:com.ericbarnhill.arrayMath.MathArrayComplex1D.java

protected MathArrayComplex1D add(double g) {
    return new MathArrayComplex1D(ArrayMath.add(f, new Complex(g)), getType(), getnDims());
}

From source file:com.ericbarnhill.arrayMath.MathArrayComplex2D.java

protected MathArrayComplex2D add(double g) {
    return new MathArrayComplex2D(ArrayMath.add(f, new Complex(g)), getType(), getnDims());
}

From source file:com.ericbarnhill.arrayMath.MathArrayComplex3D.java

protected MathArrayComplex3D add(double g) {
    return new MathArrayComplex3D(ArrayMath.add(f, new Complex(g)), getType(), getnDims());
}

From source file:com.ericbarnhill.arrayMath.MathArrayComplex1D.java

protected MathArrayComplex1D add(float g) {
    return new MathArrayComplex1D(ArrayMath.add(f, new Complex(g)), getType(), getnDims());
}

From source file:com.ericbarnhill.arrayMath.MathArrayComplex2D.java

protected MathArrayComplex2D add(float g) {
    return new MathArrayComplex2D(ArrayMath.add(f, new Complex(g)), getType(), getnDims());
}

From source file:com.ericbarnhill.arrayMath.MathArrayComplex3D.java

protected MathArrayComplex3D add(float g) {
    return new MathArrayComplex3D(ArrayMath.add(f, new Complex(g)), getType(), getnDims());
}

From source file:com.ericbarnhill.arrayMath.MathArrayComplex1D.java

protected MathArrayComplex1D addC(double g) {
    return new MathArrayComplex1D(ArrayMath.addC(f, new Complex(g)), getType(), getnDims());
}

From source file:com.ericbarnhill.arrayMath.MathArrayComplex2D.java

protected MathArrayComplex2D addC(double g) {
    return new MathArrayComplex2D(ArrayMath.addC(f, new Complex(g)), getType(), getnDims());
}

From source file:com.ericbarnhill.arrayMath.MathArrayComplex3D.java

protected MathArrayComplex3D addC(double g) {
    return new MathArrayComplex3D(ArrayMath.addC(f, new Complex(g)), getType(), getnDims());
}

From source file:com.ericbarnhill.arrayMath.MathArrayComplex1D.java

protected MathArrayComplex1D addC(float g) {
    return new MathArrayComplex1D(ArrayMath.addC(f, new Complex(g)), getType(), getnDims());
}