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 multiplyC(double g) {
    return new MathArrayComplex1D(ArrayMath.multiplyC(f, new Complex(g)), getType(), getnDims());
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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