Package stallone.complex

Examples of stallone.complex.ComplexNumber


        return identityMatrix;
    }

    public IComplexNumber complexScalar(final double real, final double imaginary)
    {
        return new ComplexNumber(real, imaginary);
    }
View Full Code Here


        return new ComplexNumber(real, imaginary);
    }

    public IComplexNumber complexScalar()
    {
        return new ComplexNumber(0.0d, 0.0d);
    }
View Full Code Here

        return (vdot.innerProduct(v1, v2, w, target));
    }

    public IComplexNumber dotComplexWeighted(final IComplexArray v1, final IComplexArray v2, final IDoubleArray w)
    {
        IComplexNumber target = new ComplexNumber(0, 0);
        vdot.innerProduct(v1, v2, w, target);
        return target;
    }
View Full Code Here

        for (IComplexIterator it = arr.nonzeroComplexIterator(); it.hasNext(); it.advance())
        {
            re += it.getRe();
            im += it.getIm();
        }
        return (new ComplexNumber(re, im));
    }
View Full Code Here

        return scaleToNew(s, v, v.copy());
    }

    public IComplexArray scaleToNew( final double s, final IComplexArray v)
    {
        return scaleToNew(new ComplexNumber(s, 0), v, v.copy());
    }
View Full Code Here

        vscale.scale(v, s);
    }

    public void scale(double s, IComplexArray v)
    {
        vscale.scale(v, new ComplexNumber(s, 0));
    }
View Full Code Here

    }

    //@Override
    public IComplexNumber getEigenvalue(final int i)
    {
        return new ComplexNumber(eigenvalues.getRe(i), eigenvalues.getIm(i));
    }
View Full Code Here

    }

    @Override
    public IComplexNumber getEval(int i)
    {
        return new ComplexNumber(eval.getRe(order.get(i)), eval.getIm(order.get(i)));
    }
View Full Code Here

            if (f == j)
            { // either first of complex conjugate pair or real

                if (isComplex[f])
                {
                    return new ComplexNumber(data[idx], data[idx + n]);
                }
                else
                {
                    return new ComplexNumber(data[idx], 0.0d);
                }
            }
            else
            {
                return new ComplexNumber(data[idx], -data[idx + n]);
            }
        }
View Full Code Here

TOP

Related Classes of stallone.complex.ComplexNumber

Copyright © 2018 www.massapicom. 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.