Home
last modified time | relevance | path

Searched refs:Cluster (Results 1 – 25 of 255) sorted by relevance

1234567891011

/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/clustering/
DKMeansPlusPlusClusterer.java92 public List<Cluster<T>> cluster(final Collection<T> points, in cluster()
95 List<Cluster<T>> clusters = chooseInitialCenters(points, k, random); in cluster()
102 List<Cluster<T>> newClusters = new ArrayList<Cluster<T>>(); in cluster()
103 for (final Cluster<T> cluster : clusters) { in cluster()
126 newClusters.add(new Cluster<T>(newCenter)); in cluster()
145 assignPointsToClusters(final Collection<Cluster<T>> clusters, final Collection<T> points) { in assignPointsToClusters()
147 Cluster<T> cluster = getNearestCluster(clusters, p); in assignPointsToClusters()
161 private static <T extends Clusterable<T>> List<Cluster<T>>
165 final List<Cluster<T>> resultSet = new ArrayList<Cluster<T>>(); in chooseInitialCenters()
169 resultSet.add(new Cluster<T>(firstPoint)); in chooseInitialCenters()
[all …]
/external/tensorflow/tensorflow/core/grappler/clusters/
Dcluster.cc22 Cluster::Cluster(int timeout_s) : timeout_s_(timeout_s) { in Cluster() function in tensorflow::grappler::Cluster
26 Cluster::~Cluster() {} in ~Cluster()
28 void Cluster::AllowSoftPlacement(bool soft_placement_state) { in AllowSoftPlacement()
32 void Cluster::SetNumInterOpThreads(int num_threads) { in SetNumInterOpThreads()
40 void Cluster::SetNumWarmupSteps(int num_steps) { in SetNumWarmupSteps()
46 void Cluster::SetExecutorType(const string* executor_type) { in SetExecutorType()
50 int Cluster::NumWarmupSteps() const { in NumWarmupSteps()
54 void Cluster::DisableDetailedStats(bool disable) { in DisableDetailedStats()
64 bool Cluster::DetailedStatsEnabled() const { in DetailedStatsEnabled()
68 void Cluster::DisableOptimizer(bool disable) { in DisableOptimizer()
[all …]
/external/tensorflow/tensorflow/compiler/jit/
Dmark_for_compilation_pass.cc124 class Cluster { class in tensorflow::__anon192e81b90111::MarkForCompilationPassImpl
127 Cluster(int tf_graph_node_id, int effective_cluster_size, in Cluster() function in tensorflow::__anon192e81b90111::MarkForCompilationPassImpl::Cluster
149 void Merge(Cluster* other);
233 TF_DISALLOW_COPY_AND_ASSIGN(Cluster);
238 Node* GetOnlyNodeIn(const Cluster& cluster);
242 bool IsSinkLike(const Cluster& cluster);
246 bool IsScalarIntegerResourceOperation(const Cluster& cluster);
285 StatusOr<bool> TryToContractEdge(Cluster* from, Cluster* to);
295 StatusOr<bool> ShouldCompileClusterImpl(const Cluster& cluster);
297 StatusOr<bool> ShouldCompileCluster(const Cluster& cluster);
[all …]
/external/skia/modules/skparagraph/src/
DTextWrapper.h18 ClusterPos(Cluster* cluster, size_t pos) : fCluster(cluster), fPos(pos) {} in ClusterPos()
19 inline Cluster* cluster() const { return fCluster; } in cluster()
32 Cluster* fCluster;
38 TextStretch(Cluster* s, Cluster* e, bool forceStrut) in TextStretch()
49 inline Cluster* startCluster() const { return fStart.cluster(); } in startCluster()
50 inline Cluster* endCluster() const { return fEnd.cluster(); } in endCluster()
51 inline Cluster* breakCluster() const { return fBreak.cluster(); } in breakCluster()
73 void extend(Cluster* cluster) { in extend()
84 void extend(Cluster* cluster, size_t pos) { in extend()
91 void startFrom(Cluster* cluster, size_t pos) { in startFrom()
[all …]
DRun.cpp103 Cluster* start = nullptr; in findLimitingClusters()
104 Cluster* end = nullptr; in findLimitingClusters()
197 SkScalar Run::addSpacesAtTheEnd(SkScalar space, Cluster* cluster) { in addSpacesAtTheEnd()
212 SkScalar Run::addSpacesEvenly(SkScalar space, Cluster* cluster) { in addSpacesEvenly()
233 void Run::shift(const Cluster* cluster, SkScalar offset) { in shift()
302 void Cluster::setIsWhiteSpaces() { in setIsWhiteSpaces()
317 SkScalar Cluster::sizeToChar(TextIndex ch) const { in sizeToChar()
327 SkScalar Cluster::sizeFromChar(TextIndex ch) const { in sizeFromChar()
337 size_t Cluster::roundPos(SkScalar s) const { in roundPos()
342 SkScalar Cluster::trimmedWidth(size_t pos) const { in trimmedWidth()
[all …]
/external/libaom/libaom/third_party/libwebm/mkvparser/
Dmkvparser.h69 class Cluster; variable
82 long Parse(const Cluster*);
85 long long GetTimeCode(const Cluster*) const; // absolute, but not scaled
86 long long GetTime(const Cluster*) const; // absolute, and scaled (ns)
124 BlockEntry(Cluster*, long index);
130 const Cluster* GetCluster() const;
138 Cluster* const m_pCluster;
147 SimpleBlock(Cluster*, long index, long long start, long long size);
162 BlockGroup(Cluster*, long index,
970 class Cluster {
[all …]
Dmkvparser.cc683 Cluster** i = m_clusters; in ~Segment()
684 Cluster** j = m_clusters + count; in ~Segment()
687 Cluster* const p = *i++; in ~Segment()
1180 status = Cluster::HasBlockEntries(this, cluster_off, pos_, len_); in DoLoadCluster()
1224 Cluster* const pCluster = m_clusters[idx]; in DoLoadCluster()
1279 Cluster* const pCluster = Cluster::Create(this, idx, cluster_off); in DoLoadCluster()
1335 bool Segment::AppendCluster(Cluster* pCluster) { in AppendCluster()
1350 Cluster** const qq = new (std::nothrow) Cluster*[n]; in AppendCluster()
1354 Cluster** q = qq; in AppendCluster()
1355 Cluster** p = m_clusters; in AppendCluster()
[all …]
/external/libvpx/libvpx/third_party/libwebm/mkvparser/
Dmkvparser.h69 class Cluster; variable
82 long Parse(const Cluster*);
85 long long GetTimeCode(const Cluster*) const; // absolute, but not scaled
86 long long GetTime(const Cluster*) const; // absolute, and scaled (ns)
124 BlockEntry(Cluster*, long index);
130 const Cluster* GetCluster() const;
138 Cluster* const m_pCluster;
147 SimpleBlock(Cluster*, long index, long long start, long long size);
162 BlockGroup(Cluster*, long index,
970 class Cluster {
[all …]
Dmkvparser.cc683 Cluster** i = m_clusters; in ~Segment()
684 Cluster** j = m_clusters + count; in ~Segment()
687 Cluster* const p = *i++; in ~Segment()
1180 status = Cluster::HasBlockEntries(this, cluster_off, pos_, len_); in DoLoadCluster()
1224 Cluster* const pCluster = m_clusters[idx]; in DoLoadCluster()
1279 Cluster* const pCluster = Cluster::Create(this, idx, cluster_off); in DoLoadCluster()
1335 bool Segment::AppendCluster(Cluster* pCluster) { in AppendCluster()
1350 Cluster** const qq = new (std::nothrow) Cluster*[n]; in AppendCluster()
1354 Cluster** q = qq; in AppendCluster()
1355 Cluster** p = m_clusters; in AppendCluster()
[all …]
/external/libvpx/libwebm/mkvparser/
Dmkvparser.h69 class Cluster; variable
82 long Parse(const Cluster*);
85 long long GetTimeCode(const Cluster*) const; // absolute, but not scaled
86 long long GetTime(const Cluster*) const; // absolute, and scaled (ns)
124 BlockEntry(Cluster*, long index);
130 const Cluster* GetCluster() const;
138 Cluster* const m_pCluster;
147 SimpleBlock(Cluster*, long index, long long start, long long size);
162 BlockGroup(Cluster*, long index,
970 class Cluster {
[all …]
Dmkvparser.cc683 Cluster** i = m_clusters; in ~Segment()
684 Cluster** j = m_clusters + count; in ~Segment()
687 Cluster* const p = *i++; in ~Segment()
1180 status = Cluster::HasBlockEntries(this, cluster_off, pos_, len_); in DoLoadCluster()
1224 Cluster* const pCluster = m_clusters[idx]; in DoLoadCluster()
1279 Cluster* const pCluster = Cluster::Create(this, idx, cluster_off); in DoLoadCluster()
1335 bool Segment::AppendCluster(Cluster* pCluster) { in AppendCluster()
1350 Cluster** const qq = new (std::nothrow) Cluster*[n]; in AppendCluster()
1354 Cluster** q = qq; in AppendCluster()
1355 Cluster** p = m_clusters; in AppendCluster()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-exegesis/lib/
DClustering.h62 struct Cluster { struct
63 Cluster() = delete;
64 explicit Cluster(const ClusterId &Id) : Id(Id) {} in Cluster() argument
77 const Cluster &getCluster(ClusterId Id) const { in getCluster() argument
88 const std::vector<Cluster> &getValidClusters() const { return Clusters_; } in getValidClusters()
106 std::vector<Cluster> Clusters_;
107 Cluster NoiseCluster_;
108 Cluster ErrorCluster_;
/external/ImageMagick/MagickCore/
Dsegment.c150 } Cluster; typedef
256 for (cluster=head; cluster != (Cluster *) NULL; cluster=next_cluster) \ in Classify()
259 cluster=(Cluster *) RelinquishMagickMemory(cluster); \ in Classify()
273 Cluster in Classify()
309 cluster=(Cluster *) NULL; in Classify()
310 head=(Cluster *) NULL; in Classify()
326 if (head != (Cluster *) NULL) in Classify()
328 cluster->next=(Cluster *) AcquireMagickMemory( in Classify()
334 cluster=(Cluster *) AcquireMagickMemory(sizeof(*cluster)); in Classify()
337 if (cluster == (Cluster *) NULL) in Classify()
[all …]
/external/webrtc/webrtc/modules/remote_bitrate_estimator/
Dremote_bitrate_estimator_abs_send_time.h40 struct Cluster { struct
41 Cluster() in Cluster() argument
96 const Cluster& cluster_aggregate);
98 static void AddCluster(std::list<Cluster>* clusters, Cluster* cluster);
118 void ComputeClusters(std::list<Cluster>* clusters) const;
120 std::list<Cluster>::const_iterator FindBestProbe(
121 const std::list<Cluster>& clusters) const
Dremote_bitrate_estimator_abs_send_time.cc80 const Cluster& cluster_aggregate) { in IsWithinClusterBounds()
89 std::list<Cluster>* clusters, in AddCluster()
90 Cluster* cluster) { in AddCluster()
123 std::list<Cluster>* clusters) const { in ComputeClusters()
124 Cluster current; in ComputeClusters()
139 current = Cluster(); in ComputeClusters()
153 std::list<Cluster>::const_iterator
155 const std::list<Cluster>& clusters) const { in FindBestProbe()
157 std::list<Cluster>::const_iterator best_it = clusters.end(); in FindBestProbe()
158 for (std::list<Cluster>::const_iterator it = clusters.begin(); in FindBestProbe()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AArch64/
Darm64-ldp-cluster.ll9 ; CHECK: Cluster ld/st SU(1) - SU(2)
14 ; EXYNOSM1: Cluster ld/st SU(1) - SU(2)
29 ; CHECK: Cluster ld/st SU(1) - SU(2)
34 ; EXYNOSM1: Cluster ld/st SU(1) - SU(2)
50 ; CHECK: Cluster ld/st SU(2) - SU(1)
55 ; EXYNOSM1: Cluster ld/st SU(2) - SU(1)
70 ; CHECK: Cluster ld/st SU(3) - SU(4)
75 ; EXYNOSM1: Cluster ld/st SU(3) - SU(4)
93 ; CHECK: Cluster ld/st SU(3) - SU(4)
98 ; EXYNOSM1: Cluster ld/st SU(3) - SU(4)
[all …]
Daarch64-stp-cluster.ll6 ; CHECK:Cluster ld/st SU(4) - SU(3)
7 ; CHECK:Cluster ld/st SU(2) - SU(5)
27 ; CHECK:Cluster ld/st SU(4) - SU(3)
28 ; CHECK:Cluster ld/st SU(2) - SU(5)
48 ; CHECK:Cluster ld/st SU(5) - SU(2)
49 ; CHECK:Cluster ld/st SU(4) - SU(3)
69 ; CHECK:Cluster ld/st SU(5) - SU(2)
70 ; CHECK:Cluster ld/st SU(4) - SU(3)
90 ; CHECK:Cluster ld/st SU(3) - SU(4)
91 ; CHECK:Cluster ld/st SU(2) - SU(5)
[all …]
/external/llvm/test/CodeGen/AArch64/
Darm64-ldp-cluster.ll8 ; CHECK: Cluster ld/st SU(1) - SU(2)
13 ; EXYNOS: Cluster ld/st SU(1) - SU(2)
28 ; CHECK: Cluster ld/st SU(1) - SU(2)
33 ; EXYNOS: Cluster ld/st SU(1) - SU(2)
49 ; CHECK: Cluster ld/st SU(2) - SU(1)
54 ; EXYNOS: Cluster ld/st SU(2) - SU(1)
69 ; CHECK: Cluster ld/st SU(3) - SU(4)
74 ; EXYNOS: Cluster ld/st SU(3) - SU(4)
92 ; CHECK: Cluster ld/st SU(3) - SU(4)
97 ; EXYNOS: Cluster ld/st SU(3) - SU(4)
[all …]
Daarch64-stp-cluster.ll6 ; CHECK:Cluster ld/st SU(4) - SU(3)
7 ; CHECK:Cluster ld/st SU(2) - SU(5)
27 ; CHECK:Cluster ld/st SU(4) - SU(3)
28 ; CHECK:Cluster ld/st SU(2) - SU(5)
48 ; CHECK:Cluster ld/st SU(5) - SU(2)
49 ; CHECK:Cluster ld/st SU(4) - SU(3)
69 ; CHECK:Cluster ld/st SU(5) - SU(2)
70 ; CHECK:Cluster ld/st SU(4) - SU(3)
90 ; CHECK:Cluster ld/st SU(3) - SU(4)
91 ; CHECK:Cluster ld/st SU(2) - SU(5)
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dcluster_formation.cc48 struct Cluster { struct
70 bool CanMergeIntoCluster(const Cluster& c, Operation* to_merge) { in CanMergeIntoCluster()
130 void BuildLaunchForCluster(const Cluster& c, OpBuilder* builder) { in BuildLaunchForCluster()
182 llvm::MapVector<StringRef, Cluster> nearest_clusters; in BuildClusters()
191 nearest_clusters[device] = Cluster{{&op}, device}; in BuildClusters()
197 Cluster& nearest_cluster = it->second; in BuildClusters()
209 nearest_clusters[device] = Cluster{{&op}, device}; in BuildClusters()
/external/tensorflow/tensorflow/core/grappler/costs/
Danalytical_cost_estimator.h33 class Cluster; variable
43 AnalyticalCostEstimator(Cluster* cluster, bool use_static_shapes,
45 AnalyticalCostEstimator(Cluster* cluster,
50 AnalyticalCostEstimator(Cluster* cluster,
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dmeta_optimizer.h44 Status Optimize(Cluster* cluster, const GrapplerItem& item,
49 void Feedback(Cluster* cluster, const GrapplerItem& item,
80 Status OptimizeGraph(Cluster* cluster, const GrapplerItem& item,
99 Status RunOptimizer(GraphOptimizer* optimizer, Cluster* cluster,
115 DeviceBase* cpu_device, Cluster* cluster,
/external/skqp/src/pdf/
DSkClusterator.cpp42 SkClusterator::Cluster SkClusterator::next() { in next()
44 return Cluster{nullptr, 0, 0, 0}; in next()
47 return Cluster{nullptr, 0, fCurrentGlyphIndex++, 1}; in next()
63 return Cluster{fUtf8Text + cluster, clusterLen, clusterGlyphIndex, clusterGlyphCount}; in next()
/external/skia/src/pdf/
DSkClusterator.cpp42 SkClusterator::Cluster SkClusterator::next() { in next()
44 return Cluster{nullptr, 0, 0, 0}; in next()
47 return Cluster{nullptr, 0, fCurrentGlyphIndex++, 1}; in next()
63 return Cluster{fUtf8Text + cluster, clusterLen, clusterGlyphIndex, clusterGlyphCount}; in next()
/external/tensorflow/tensorflow/python/grappler/
Dcluster_wrapper.cc71 PYBIND11_MAKE_OPAQUE(tensorflow::grappler::Cluster);
74 py::class_<tensorflow::grappler::Cluster> grappler_cluster( in PYBIND11_MODULE()
79 bool disable_detailed_stats) -> tensorflow::grappler::Cluster* { in PYBIND11_MODULE()
86 std::unique_ptr<tensorflow::grappler::Cluster> cluster = in PYBIND11_MODULE()
98 -> tensorflow::grappler::Cluster* { in PYBIND11_MODULE()
114 std::unique_ptr<tensorflow::grappler::Cluster> cluster = in PYBIND11_MODULE()
124 m.def("TF_ShutdownCluster", [](tensorflow::grappler::Cluster* cluster) { in PYBIND11_MODULE()
131 [](tensorflow::grappler::Cluster* cluster) -> std::vector<py::bytes> { in PYBIND11_MODULE()
158 [](tensorflow::grappler::Cluster* cluster, in PYBIND11_MODULE()
256 tensorflow::grappler::Cluster* cluster, bool generate_timeline) in PYBIND11_MODULE()
[all …]

1234567891011