Package gnu.trove.set.hash

Examples of gnu.trove.set.hash.TIntHashSet.toArray()


                for (i = 0; i < typeData.length; ++i)
                    factorIndices[position++] = indicesSpace[b][--totalIndicesCounts[b]];
            }

            descriptor = ApplyIndexMapping.applyIndexMapping(descriptor,
                    new Mapping(descriptor.getIndices().getFree().getAllIndices().copy(), factorIndices), forbidden.toArray());
            descriptor = ApplyIndexMapping.renameDummy(descriptor, forbidden.toArray());
            forbidden.addAll(TensorUtils.getAllIndicesNamesT(descriptor));

            pb.put(descriptor);
        }
View Full Code Here


                    factorIndices[position++] = indicesSpace[b][--totalIndicesCounts[b]];
            }

            descriptor = ApplyIndexMapping.applyIndexMapping(descriptor,
                    new Mapping(descriptor.getIndices().getFree().getAllIndices().copy(), factorIndices), forbidden.toArray());
            descriptor = ApplyIndexMapping.renameDummy(descriptor, forbidden.toArray());
            forbidden.addAll(TensorUtils.getAllIndicesNamesT(descriptor));

            pb.put(descriptor);
        }
View Full Code Here

            resolvedVars = vars.clone();
            for (int i = 0; i < vars.length; ++i)
                if (!forbidden.isEmpty() && resolvedVars[i].getIndices().size() != 0) {
                    if (resolvedVars[i].getIndices().size() != resolvedVars[i].getIndices().getFree().size())
                        resolvedVars[i] = (SimpleTensor) renameDummy(resolvedVars[i], forbidden.toArray());
                    forbidden.addAll(getIndicesNames(resolvedVars[i].getIndices()));
                }
            tensor = renameDummy(tensor, TensorUtils.getAllIndicesNamesT(resolvedVars).toArray(), forbidden);
            tensor = renameIndicesOfFieldsArguments(tensor, forbidden);
        }
View Full Code Here

            if (indicator.is(scalars[i])) {
                if (scalars[i] instanceof SimpleTensor)   //simple symbolic factor
                    factorOut.add(Tensors.pow(scalars[i], exponent));
                else
                    for (j = 0; j < exponent; ++j) {
                        temp = ApplyIndexMapping.renameDummy(scalars[i], allForbidden.toArray());
                        allForbidden.addAll(TensorUtils.getAllIndicesNamesT(temp));
                        factorOut.add(temp);
                    }
            } else leave.add(scalars[i]);
        }
View Full Code Here

        {
          result.add(id);
        }
      }
    }
    return result.toArray();
  }
 
  /**
   * Method addSkills.
   * @param partsCount int
View Full Code Here

      if (e.getEffectType() == type)
      {
        skillIds.add(e.getSkill().getId());
      }
    }
    for (int skillId : skillIds.toArray())
    {
      stopEffect(skillId);
    }
  }
}
View Full Code Here

    final List<SkillLearn> l = SkillAcquireHolder.getInstance().getAllNormalSkillTreeWithForgottenScrolls();
    for (SkillLearn learn : l)
    {
      list.add(learn.getItemId());
    }
    _itemIds = list.toArray();
  }
 
  /**
   * Method useItem.
   * @param playable Playable
View Full Code Here

        {
          set.add(template.getItemId());
        }
      }
    }
    _itemIds = set.toArray();
  }
 
  /**
   * Method useItem.
   * @param playable Playable
View Full Code Here

      if (template.isEquipable())
      {
        set.add(template.getItemId());
      }
    }
    _itemIds = set.toArray();
  }
 
  /**
   * Method useItem.
   * @param playable Playable
View Full Code Here

    for (SoulCrystal crystal : SoulCrystalHolder.getInstance().getCrystals())
    {
      set.add(crystal.getItemId());
      set.add(crystal.getNextItemId());
    }
    _itemIds = set.toArray();
  }
 
  /**
   * Method useItem.
   * @param playable Playable
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.