Examples of roots()


Examples of flanagan.complex.ComplexPoly.roots()

                                break;
                        case 4: temp = RealRoot.cubic(coeffWz[0],coeffWz[1],coeffWz[2], coeffWz[3]);
                                if(((String)temp.get(0)).equals("complex"))realRoots = false;
                                break;
                        default: ComplexPoly cp = new ComplexPoly(coeffWz);
                                Complex[] croots = cp.roots(polish, new Complex(estx, 0.0));
                                cdreal = new double[nCoeffWz-1];
                                int counter = 0;
                                for(int i=0; i<(nCoeffWz-1); i++){
                                    if(croots[i].getImag()/croots[i].getReal()<RealRoot.realTol){
                                        cdreal[i] = croots[i].getReal();
View Full Code Here

Examples of org.jvnet.solaris.libzfs.LibZFS.roots()

            // on systems that don't have ZFS, we don't need this monitor
            return false;

        try {
            LibZFS zfs = new LibZFS();
            List<ZFSFileSystem> roots = zfs.roots();
            if(roots.isEmpty())
                return false;       // no active ZFS pool

            // if we don't run on a ZFS file system, activate
            ZFSFileSystem hudsonZfs = zfs.getFileSystemByMountPoint(Jenkins.getInstance().getRootDir());
View Full Code Here

Examples of org.jvnet.solaris.libzfs.LibZFS.roots()

                    // no need for migration
                    out.println(home+" is already on ZFS. Doing nothing");
                    return existing.getName();
                }

                String name = computeHudsonFileSystemName(zfs, zfs.roots().get(0));
                out.println("Creating "+name);
                ZFSFileSystem hudson = zfs.create(name, ZFSFileSystem.class);

                // mount temporarily to set the owner right
                File dir = Util.createTempDir();
View Full Code Here

Examples of org.jvnet.solaris.libzfs.LibZFS.roots()

            // on systems that don't have ZFS, we don't need this monitor
            return false;

        try {
            LibZFS zfs = new LibZFS();
            List<ZFSFileSystem> roots = zfs.roots();
            if(roots.isEmpty())
                return false;       // no active ZFS pool

            // if we don't run on a ZFS file system, activate
            ZFSFileSystem hudsonZfs = zfs.getFileSystemByMountPoint(Hudson.getInstance().getRootDir());
View Full Code Here

Examples of org.jvnet.solaris.libzfs.LibZFS.roots()

                    // no need for migration
                    out.println(home+" is already on ZFS. Doing nothing");
                    return existing.getName();
                }

                String name = computeHudsonFileSystemName(zfs, zfs.roots().get(0));
                out.println("Creating "+name);
                ZFSFileSystem hudson = zfs.create(name, ZFSFileSystem.class);

                // mount temporarily to set the owner right
                File dir = Util.createTempDir();
View Full Code Here

Examples of org.tmatesoft.hg.internal.RevisionSet.roots()

    HgParentChildMap<HgChangelog> parentHelper = new HgParentChildMap<HgChangelog>(repo.getChangelog());
    parentHelper.init();
    final RevisionSet complete = new RevisionSet(allRevs);
    Nodeid[] nodes = { allRevs[0] };
    // roots
    errorCollector.assertEquals(new RevisionSet(nodes), complete.roots(parentHelper));
    Nodeid[] nodes1 = { allRevs[0], allRevs[1] };
    RevisionSet fromR2 = complete.subtract(new RevisionSet(nodes1));
    Nodeid[] nodes2 = { allRevs[0], allRevs[1], allRevs[2] };
    RevisionSet fromR3 = complete.subtract(new RevisionSet(nodes2));
    Nodeid[] nodes3 = { allRevs[2], allRevs[3] };
View Full Code Here

Examples of org.tmatesoft.hg.internal.RevisionSet.roots()

    Nodeid[] nodes2 = { allRevs[0], allRevs[1], allRevs[2] };
    RevisionSet fromR3 = complete.subtract(new RevisionSet(nodes2));
    Nodeid[] nodes3 = { allRevs[2], allRevs[3] };
    errorCollector.assertEquals(new RevisionSet(nodes3), fromR2.roots(parentHelper));
    Nodeid[] nodes4 = { allRevs[3], allRevs[4], allRevs[5] };
    errorCollector.assertEquals(new RevisionSet(nodes4), fromR3.roots(parentHelper));
    Nodeid[] nodes5 = { allRevs[9], allRevs[7] };
    // heads
    errorCollector.assertEquals(new RevisionSet(nodes5), complete.heads(parentHelper));
    Nodeid[] nodes6 = { allRevs[9], allRevs[8] };
    RevisionSet toR7 = complete.subtract(new RevisionSet(nodes6));
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.