Examples of copy()


Examples of org.ejml.data.BlockMatrix64F.copy()

        // see if a matrix with smaller singular value has a worse quality
        BlockQrHouseHolderSolver solver = new BlockQrHouseHolderSolver();
        assertTrue(solver.setA(A.copy()));
        double qualityA = solver.quality();

        assertTrue(solver.setA(B.copy()));
        double qualityB = solver.quality();

        assertTrue(qualityB<qualityA);
        assertEquals(qualityB*10.0,qualityA,1e-8);
    }
View Full Code Here

Examples of org.ejml.data.DenseMatrix64F.copy()

        for( int i = 0; i < 10; i++ ) {
            for( int N = 2;  N <= 10; N++ ) {
                for( int tall = 0; tall <= 2; tall++ ) {
                    DenseMatrix64F A = RandomMatrices.createRandom(N+tall,N,rand);

                    assertTrue(decomp.decompose(A.copy()));

                    checkGeneric(A, decomp);
                }
                for( int wide = 1; wide <= 2; wide++ ) {
                    DenseMatrix64F A = RandomMatrices.createRandom(N,N+wide,rand);
View Full Code Here

Examples of org.ejml.simple.SimpleMatrix.copy()

        QRDecomposition<DenseMatrix64F> alg = createQRDecomposition();

        SimpleMatrix A = new SimpleMatrix(height,width);
        RandomMatrices.setRandom(A.getMatrix(),rand);

        assertTrue(alg.decompose(A.copy().getMatrix()));

        int minStride = Math.min(height,width);

        SimpleMatrix Q = new SimpleMatrix(height,compact ? minStride : height);
        alg.getQ(Q.getMatrix(), compact);
View Full Code Here

Examples of org.encog.ml.genetic.genome.ArrayGenome.copy()

    // handle cut section
    for (int i = 0; i < geneLength; i++) {
      if (!((i < cutpoint1) || (i > cutpoint2))) {
        offspring1.copy(father,i,i);
        offspring2.copy(mother,i,i);
      }
    }

    // handle outer sections
    for (int i = 0; i < geneLength; i++) {
View Full Code Here

Examples of org.encog.ml.genetic.genome.IntegerArrayGenome.copy()

    // handle cut section
    for (int i = 0; i < geneLength; i++) {
      if (!((i < cutpoint1) || (i > cutpoint2))) {
        offspring1.copy(father,i,i);
        offspring2.copy(mother,i,i);
        taken1.add(father.getData()[i]);
        taken2.add(mother.getData()[i]);
      }
    }
View Full Code Here

Examples of org.encog.ml.prg.EncogProgram.copy()

   */
  @Override
  public Genome factor(final Genome other) {
    final EncogProgram result = new EncogProgram(this.context,
        new EncogProgramVariables());
    result.copy(other);
    return result;
  }
}
View Full Code Here

Examples of org.encog.workbench.frames.EncogCommonFrame.copy()

  public void performEditCopy() {
    final Frame frame = EncogWorkBench.getCurrentFocus();
    if (frame instanceof EncogCommonFrame) {
      final EncogCommonFrame ecf = (EncogCommonFrame) frame;
      ecf.copy();
    }

  }

  public void performEditCut() {
View Full Code Here

Examples of org.exist.xmldb.CollectionManagementServiceImpl.copy()

            final XmldbURI resourcePath = XmldbURI.create(srcDoc.getParentCollection().getName()).append(srcDoc.getId());
            messageln("Copying resource '" + resourcePath + "' to '" + destination + "'");
            mgtService.copyResource(resourcePath, destination, destName);
        } else {
            messageln("Copying collection '" + source + "' to '" + destination + "'");
            mgtService.copy(source, destination, destName);
        }
    }
   
    private void reindex() throws XMLDBException {
        final IndexQueryService service = (IndexQueryService)
View Full Code Here

Examples of org.exolab.castor.xml.schema.SimpleContent.copy()

                      _complexType.setContentType(new SimpleContent(simpleType));
                    }
                    else {
                        ComplexType temp = (ComplexType)baseType;
                        SimpleContent simpleContent = (SimpleContent) temp.getContentType();
                        _complexType.setContentType(simpleContent.copy());
                    }
                }
                  
        }
View Full Code Here

Examples of org.fcrepo.server.security.PolicyParser.copy()

    @Test
    public void testParseGoodRootGoodContentValidationTrueWithCopy()
            throws IOException, SAXException, ValidationException {
        PolicyParser parser = new MockPolicyParser();
        parser.copy().parse(StreamUtility.getStream(POLICY_GOODENOUGH), true);
    }

    // Supports legacy test runners
    public static junit.framework.Test suite() {
        return new junit.framework.JUnit4TestAdapter(TestPolicyParser.class);
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.