Examples of copy()


Examples of aima.core.logic.fol.parsing.ast.Term.copy()

      Term st = substitution.get(v);
      if (null != st) {
        if (st instanceof Variable) {
          // Only if it is a variable to I replace it, otherwise
          // I drop it.
          variables.add((Variable) st.copy());
        }
      } else {
        // No substitution for the quantified variable, so
        // keep it.
        variables.add(v.copy());
View Full Code Here

Examples of aima.core.util.math.Matrix.copy()

    Matrix activationTranspose = previousLayerActivationOrInput.transpose();
    Matrix momentumLessUpdate = layerSensitivity.getSensitivityMatrix()
        .times(activationTranspose).times(alpha).times(-1.0);
    Matrix updateWithMomentum = layer.getLastWeightUpdateMatrix()
        .times(momentum).plus(momentumLessUpdate.times(1.0 - momentum));
    layer.acceptNewWeightUpdate(updateWithMomentum.copy());
    return updateWithMomentum;
  }

  public static Matrix calculateWeightUpdates(
      LayerSensitivity layerSensitivity,
View Full Code Here

Examples of anvil.core.Any.copy()

    Any value = _namespace.get(Any.create(name));
    if (value == null) {
      value = Any.UNDEFINED;
    }
    if (_copyonget) {
      value = value.copy();
    }
    return value;
  }

View Full Code Here

Examples of appeng.api.storage.data.IAEItemStack.copy()

      {
        for (int x = 0; x < list.length; x++)
        {
          IAEItemStack part = list[x];
          if ( part != null )
            nodes.put( new CraftingTreeNode( cc, job, part.copy(), this, x, depth + 1 ), part.getStackSize() );
        }
      }
      else
      {
        // this is minorly different then below, this slot uses the pattern, but kinda fudges it.
View Full Code Here

Examples of ariba.util.fieldvalue.OrderedList.copy()

            Object      array = source;
            int         len = listProto.size(array);

            switch (((DynamicSubscript)index).getFlag()) {
                case DynamicSubscript.ALL:
                    return listProto.copy(array);
                case DynamicSubscript.FIRST:
                    index = new Integer((len > 0) ? 0 : -1);
                    break;
                case DynamicSubscript.MID:
                    index = new Integer((len > 0) ? (len / 2) : -1);
View Full Code Here

Examples of bytecodeparser.analysis.stack.StackElement.copy()

    }
    if(op.as(MethodInvocationOpcode.class).isInstanceMethod())
      stack.pop();
    if(returnTypeLength != null) {
      if(returnTypeLength == DOUBLE)
        stack.push2(isAutoboxing ? se.copy() : new Whatever());
      else stack.push(isAutoboxing ? se.copy() : new Whatever());
    }
  }
 
  /**
 
View Full Code Here

Examples of cern.colt.matrix.DoubleMatrix2D.copy()

      W.assign (F.mult(cPade[4]));           // W <-- W*cPade[4]
      W.assign (T, F.plusMult(cPade[2]));    // W <-- W + T*cPade[2]
      W.assign (B0, F.plusMult(cPade[0]));   // W <-- W + B0*cPade[0]
      V.assign (W, F.plus);                  // V <-- V + W

      W = V.copy();
      W.assign(U, F.plus);                   // W = V + U, Padé numerator
      T = V.copy();
      T.assign(U, F.minus);                  // T = V - U, Padé denominator

      // Compute Padé approximant for exponential = W / T
View Full Code Here

Examples of ch.qos.logback.core.util.FileUtil.copy()

  public void renameByCopying(String src, String target)
          throws RolloverFailure {

    FileUtil fileUtil = new FileUtil(getContext());
    fileUtil.copy(src, target);

    File srcFile = new File(src);
   if (!srcFile.delete()) {
      addWarn("Could not delete " + src);
    }
View Full Code Here

Examples of client.net.sf.saxon.ce.om.NodeInfo.copy()

            out.comment(source.getStringValueCS());
            break;

        case Type.NAMESPACE:
            try {
                source.copy(out, 0);
            } catch (NoOpenStartTagException err) {
                dynamicError(err.getMessage(), err.getErrorCodeLocalPart(), context);
            }
            break;
View Full Code Here

Examples of clips.delegate.contract.ContractLocal.copy()

    private void btCopyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btCopyActionPerformed
      if (tabContractList.getSelectedRowCount() > 0) {
          try {
              ContractLocal cl = contractList.get(tabContractList.getSelectedRowSorted());
              cl = cl.copy();
              PanelContractInfo panel = new PanelContractInfo(getContainer(), cl);
              PageGeneric page = getContainer().addNewPage(panel, this);
              getContainer().activatePage(page);
          } catch (ClipsException ex) {
              MessageBox.showException(ex);
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.