Examples of clone()


Examples of mikera.arrayz.INDArray.clone()

 
  @Override
  public INDArray broadcastCloneLike(INDArray target) {
    INDArray r=this;
    if (target.dimensionality()>2) r=r.broadcastLike(target);
    return r.clone();
  }

  /**
   * Returns true if the matrix is the zero matrix (all components zero)
   */
 
View Full Code Here

Examples of mikera.matrixx.Matrix33.clone()

 
  public void timeMatrix33Clone(int runs) {
    Matrix33 m=new Matrix33(1,2,3,4,5,6,7,8,9);
   
    for (int i=0; i<runs; i++) {
      m=m.clone();
    }
  }
 
  public void timeMatrix33Determinant(int runs) {
    Matrix33 m=new Matrix33(1,2,3,4,5,6,7,8,9);
View Full Code Here

Examples of mikera.vectorz.Vector.clone()

    assertEquals(2.0, j.get(10),0.0)
  }
 
  @Test public void testJoinedVectorAdd() {
    Vector v=Vector.of(0,1,2,3,4,5,6,7,8,9);
    AVector j=v.clone().join(v.exactClone());
   
    j.add(5,v);
   
    assertEquals(4.0,j.get(4),0.0);
    assertEquals(13.0,j.get(9),0.0);
View Full Code Here

Examples of model.A.clone()

    a.setTax("tax");
    a.setTotal("total");
    List<A> list = new ArrayList<A>();
    list.add(a);
    for (int i = 0; i < 30; i++) {
      list.add(a.clone());
    }

    grid.setId("2");
    grid.setRows(list);
    grid.setPage("1");
View Full Code Here

Examples of net.asfun.jangod.tree.Node.clone()

    String[] vals = new String[]{};// TODO resolve from helpers and macro's helpers
    for (int i=0; i<args.length; i++ ) {
      TagNode tn = new TagNode(new TagToken("{%set "+args[i] + " " + vals[i] + " just %}"));
      rebuilder.nodeInsertBefore(current, tn);
    }
    rebuilder.nodeReplace(current, defineNode.clone().children());
  }

  @Override
  public String getName() {
    return MACRONAME;
View Full Code Here

Examples of net.aufdemrand.denizen.objects.dLocation.clone()

        // Go through all the entities and spawn them or teleport them,
        // then set their targets if applicable

        for (dEntity entity : entities) {
            Location loc = location.clone();
            if (spread != null) {
                loc.add(CoreUtilities.getRandom().nextInt(spread.asInt() * 2) - spread.asInt(),
                        0,
                        CoreUtilities.getRandom().nextInt(spread.asInt() * 2) - spread.asInt());
            }
View Full Code Here

Examples of net.datacrow.core.objects.DcObject.clone()

            SwingUtilities.invokeLater(
                    new Thread(new Runnable() {
                        @Override
                        public void run() {
                            try {
                                list.update(dco.getID(), o.clone());
                                table.update(dco.getID(), o.clone());
                            } catch (Exception e) {
                                logger.debug(e, e);
                            }
                        }
View Full Code Here

Examples of net.infopeers.restrant.commons.populate.Populator.clone()

    TestClass1 test1 = new TestClass1();
    test1.setIntValue(111);

    Populator populator = createPopulator();

    TestClass2 test2 = (TestClass2) populator
        .clone(TestClass2.class, test1);

    assertEquals(111, test2.getIntValue());
  }
View Full Code Here

Examples of net.ishchenko.idea.nginx.configurator.NginxServerDescriptor.clone()

        PlatformDependentTools pdt = ApplicationManager.getApplication().getComponent(PlatformDependentTools.class);

        ProcessBuilder builder = new ProcessBuilder(pdt.getStartCommand(descriptorCopy));
        builder.directory(new File(executableVirtualFile.getParent().getPath()));
        try {
            return new NginxProcessHandler(builder.start(), StringUtil.join(pdt.getStartCommand(descriptorCopy), " "), descriptorCopy.clone());
        } catch (IOException e) {
            throw new ExecutionException(e.getMessage(), e);
        }

    }
View Full Code Here

Examples of net.lucidviews.geoalgo.limb.data.Options.clone()

    Options options;
   
    Options defaultOptions = this.defaultOptions.get( request.getAlgorithm() );
    if (defaultOptions != null)
    {
      options = defaultOptions.clone();
     
      if (request.getOptions() != null)
      {
        options.apply( request.getOptions() );
      }
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.