Home
last modified time | relevance | path

Searched +refs:shrink +refs:vector (Results 1 – 25 of 4458) sorted by relevance

12345678910>>...179

/dports/math/amgcl/amgcl-1.4.2/amgcl/mpi/partition/
H A Dparmetis.hpp54 bool shrink; member
59 shrink(false), min_per_proc(10000), shrink_ratio(8) in params()
64 : AMGCL_PARAMS_IMPORT_VALUE(p, shrink), in params()
76 AMGCL_PARAMS_EXPORT_VALUE(p, path, shrink); in get()
86 if (!prm.shrink) return false; in is_needed()
113 int shrink = prm.shrink ? prm.shrink_ratio : 1; in operator ()() local
115 idx_t npart = std::max(1, active_ranks / shrink); in operator ()()
121 std::vector<ptrdiff_t> perm(n); in operator ()()
171 std::vector<idx_t> ptr; in partition()
172 std::vector<idx_t> col; in partition()
[all …]
H A Dptscotch.hpp54 bool shrink; member
64 : AMGCL_PARAMS_IMPORT_VALUE(p, shrink), in params()
76 AMGCL_PARAMS_EXPORT_VALUE(p, path, shrink); in get()
86 if (!prm.shrink) return false; in is_needed()
90 std::vector<ptrdiff_t> row_dom = comm.exclusive_sum(n); in is_needed()
113 int shrink = prm.shrink ? prm.shrink_ratio : 1; in operator ()() local
120 std::vector<ptrdiff_t> perm(n); in operator ()()
144 std::vector<ptrdiff_t> perm_pw(np); in operator ()()
174 std::vector<SCOTCH_Num> ptr; in partition()
175 std::vector<SCOTCH_Num> col; in partition()
[all …]
/dports/biology/ncbi-cxx-toolkit/ncbi_cxx--25_2_0/include/algo/structure/bma_refine/
H A DBlockBoundaryAlgorithm.hpp86 …BlockBoundaryAlgorithm(const ColumnScorer* scorer, double ext, double shrink, BlockBoundaryAlgorit…
97 virtual void AddScorer(const ColumnScorer* scorer, double ext, double shrink = kMax_Double);
119 vector<const ColumnScorer*> m_columnScorers;
120vector<double> m_extensionThresholds; // minimal column score needed in order to extend a colu…
121vector<double> m_shrinkageThresholds; // minimal column score for a column to be kept in a block
155 …undaryShrinker(const ColumnScorer* scorer, double shrink) : BlockBoundaryAlgorithm(scorer, 0.0, sh… in SimpleBoundaryShrinker() argument
193 …hrinker(bool extendFirst, const ColumnScorer* scorer, double ext, double shrink, const ColumnScore…
200 virtual void AddScorer(const ColumnScorer* scorer, double ext, double shrink = kMax_Double);
207 vector<const ColumnScorer*> m_secondColumnScorers;
208 vector<double> m_secondExtensionThresholds;
[all …]
/dports/textproc/libcss/libcss-0.9.1/src/parse/properties/
H A Dflex.c32 const parserutils_vector *vector, int *ctx, in css__parse_flex() argument
40 bool shrink = true; in css__parse_flex() local
50 token = parserutils_vector_peek(vector, *ctx); in css__parse_flex()
70 parserutils_vector_iterate(vector, ctx); in css__parse_flex()
99 parserutils_vector_iterate(vector, ctx); in css__parse_flex()
107 parserutils_vector_iterate(vector, ctx); in css__parse_flex()
129 } else if ((shrink) && in css__parse_flex()
132 shrink = false; in css__parse_flex()
136 consumeWhitespace(vector, ctx); in css__parse_flex()
157 if (shrink) { in css__parse_flex()
[all …]
/dports/devel/hs-hoogle/hoogle-5.0.18.2/_cabal_deps/ListLike-4.7.3/testsrc/
H A DTestInfrastructure.hs58 arblist <- vector n
64 do arblist <- vector n
89 do arblist <- vector n
100 do arblist <- vector n
110 do arblist <- vector n
120 do arblist <- vector n
130 do arblist <- vector n
140 do arblist <- vector n
150 do arblist <- vector n
160 do arblist <- vector n
[all …]
/dports/devel/rapidcheck/rapidcheck-7bc7d30/test/gen/detail/
H A DExecRawTests.cpp24 std::vector<int> values; in testExecGen()
88 auto shrink = *shrinks.next(); in __anone15b6ef70602() local
89 auto actual = shrink.value().first; in __anone15b6ef70602()
98 acceptedShrinkable = shrink; in __anone15b6ef70602()
99 shrinks = shrink.shrinks(); in __anone15b6ef70602()
116 const auto shrink = *seq::at(shrinkable.shrinks(), i); in __anone15b6ef70702() local
117 const auto value = shrink.value().first; in __anone15b6ef70702()
120 RC_ASSERT(seq::length(shrink.shrinks()) <= maxShrinks); in __anone15b6ef70702()
129 std::vector<int> sizes; in __anone15b6ef70802()
172 std::vector<Random> randoms; in __anone15b6ef70f02()
[all …]
/dports/science/py-dlib/dlib-19.22/dlib/test/
H A Dobject_detector.cpp216 std::vector<std::vector<rectangle> >& object_locations in make_simple_test_data()
295 const int shrink = 0; in make_simple_test_data() local
381 std::vector<std::vector<rectangle> > object_locations; in test_fhog_pyramid()
445 std::vector<std::vector<rectangle> > object_locations; in test_1()
488 std::vector<std::vector<rectangle> > object_locations; in test_1_boxes()
578 std::vector<std::vector<rectangle> > object_locations; in test_1_fine_hog()
621 std::vector<std::vector<rectangle> > object_locations; in test_1_poly()
713 std::vector<std::vector<rectangle> > object_locations; in test_1_poly_nn()
759 std::vector<std::vector<rectangle> > object_locations; in test_1_poly_nn_boxes()
804 std::vector<std::vector<rectangle> > object_locations; in test_2()
[all …]
/dports/science/dlib-cpp/dlib-19.22/dlib/test/
H A Dobject_detector.cpp216 std::vector<std::vector<rectangle> >& object_locations in make_simple_test_data()
295 const int shrink = 0; in make_simple_test_data() local
381 std::vector<std::vector<rectangle> > object_locations; in test_fhog_pyramid()
445 std::vector<std::vector<rectangle> > object_locations; in test_1()
488 std::vector<std::vector<rectangle> > object_locations; in test_1_boxes()
578 std::vector<std::vector<rectangle> > object_locations; in test_1_fine_hog()
621 std::vector<std::vector<rectangle> > object_locations; in test_1_poly()
713 std::vector<std::vector<rectangle> > object_locations; in test_1_poly_nn()
759 std::vector<std::vector<rectangle> > object_locations; in test_1_poly_nn_boxes()
804 std::vector<std::vector<rectangle> > object_locations; in test_2()
[all …]
/dports/misc/vxl/vxl-3.3.2/contrib/gel/gevd/
H A Dgevd_region_proc.cxx130 gevd_bufferxy* shrink = nullptr; in set_image() local
131 gevd_float_operators::ShrinkBy2(*fbuf, shrink, burt_adelson_factor_); in set_image()
132 gevd_float_operators::TruncateToPositive(*shrink); in set_image()
133 buf_ = this->put_float_buffer(shrink); in set_image()
136 delete shrink; in set_image()
175 std::vector<vtol_edge_2d_sptr> * edgels = detector.GetEdges(); in extract_regions()
183 std::vector<vtol_edge_2d_sptr>::iterator eit; = edgels.begin(); in extract_regions()
191 std::vector<vtol_edge_2d_sptr> broken_edgels; in extract_regions()
196 std::vector<vtol_edge_2d_sptr> clean_edgels; in extract_regions()
208 std::vector<vtol_intensity_face_sptr> faces; in extract_regions()
[all …]
/dports/math/py-z3-solver/z3-z3-4.8.10/src/math/lp/
H A Dincremental_vector.h25 vector<unsigned> m_stack_of_vector_sizes;
26 vector<B> m_vector;
45 void pop_tail(vector<T> & v, unsigned k) { in pop_tail()
47 v.shrink(v.size() - k); in pop_tail()
51 void resize(vector<T> & v, unsigned new_size) { in resize()
58 m_vector.shrink(peek_size(k)); in pop_scope()
60 m_stack_of_vector_sizes.shrink(new_st_size); in pop_scope()
/dports/math/z3/z3-z3-4.8.13/src/math/lp/
H A Dincremental_vector.h25 vector<unsigned> m_stack_of_vector_sizes;
26 vector<B> m_vector;
45 void pop_tail(vector<T> & v, unsigned k) { in pop_tail()
47 v.shrink(v.size() - k); in pop_tail()
51 void resize(vector<T> & v, unsigned new_size) { in resize()
58 m_vector.shrink(peek_size(k)); in pop_scope()
60 m_stack_of_vector_sizes.shrink(new_st_size); in pop_scope()
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/ximgproc/src/
H A Dstructured_edge_detection.cpp104 std::vector <float> kernelXY(2*rad + 1); in imsmooth()
143 std::vector <float> lTable(1024); in rgb2luv()
374 std::vector <cv::Mat> featureArray; in getFeatures()
397 std::vector <int> fromTo; in getFeatures()
477 std::vector <int> currentTree; in StructuredEdgeDetectionImpl()
496 std::vector <float> fcurrentTree; in StructuredEdgeDetectionImpl()
694 std::vector <int> offsetI(/**/ CV_SQR(pSize/shrink)*nchannels, 0); in predictEdges()
698 int y = ( i % CV_SQR(pSize/shrink) )/(pSize/shrink); in predictEdges()
699 int x = ( i % CV_SQR(pSize/shrink) )%(pSize/shrink); in predictEdges()
721 std::vector <int> gridPositions; in predictEdges()
[all …]
/dports/science/crf++/crfpp-1dc92a606f874a4fe52603803364cc1d90f952fb/
H A Dencoder.cpp78 std::vector<double> expected;
103 std::vector<unsigned char> shrink(x.size()); in runMIRA() local
104 std::vector<float> upper_bound(x.size()); in runMIRA()
108 std::fill(shrink.begin(), shrink.end(), 0); in runMIRA()
124 if (shrink[i] >= shrinking_size) { in runMIRA()
138 ++shrink[i]; in runMIRA()
140 shrink[i] = 0; in runMIRA()
180 std::fill(shrink.begin(), shrink.end(), 0); in runMIRA()
328 std::vector<TaggerImpl* > x; in learn()
354 if (!_x->read(&ifs) || !_x->shrink()) { in learn()
[all …]
/dports/lang/racket/racket-8.3/share/pkgs/games/paint-by-numbers/raw-problems/
H A Dbuild-final.rkt15 ;; shrink-file : string -> string
16 (define (shrink-file filename)
26 ;; shrink-set sexp[set] -> sexp[set]
27 (define (shrink-set set)
38 (define problems (list ,@(map shrink-problem problems))))]))
40 ;; shrink-problem : sexp[problem] -> sexp[problem]
41 (define (shrink-problem problem)
44 `(make-problem ,name ,rows ,cols ',(shrink-solution solution))]))
49 (define (shrink-solution soln)
57 (vector->list line))))
[all …]
/dports/games/golly/golly-3.3-src/cmdline/
H A DRuleTableToTree.cpp22 vector<int> vals ;
35 vector<ndd> seq ;
62 int addndd(const vector<vector<state> > &inputs, const state output, in addndd()
75 void shrink() ;
76 void addndd(const vector<vector<state> > &inputs, const state output) { in addndd()
84 shrink() ; in addndd()
119 void shrink() { in shrink() function
121 vector<ndd> oseq = seq ; in shrink()
130 shrink() ; in write_ndd()
185 vector<vector<state> > in ; in buildndd()
[all …]
/dports/finance/R-cran-PerformanceAnalytics/PerformanceAnalytics/man/
H A DShrinkageMoments.Rd5 \alias{M2.shrink}
6 \alias{M3.shrink}
7 \alias{M4.shrink}
10 M2.shrink(R, targets = 1, f = NULL)
17 \item{R}{an xts, vector, matrix, data frame, timeSeries or zoo object of
20 \item{targets}{vector of integers selecting the target matrices to shrink to. The first four
24 \item{f}{vector or matrix with observations of the factor, to be used with target 3. See Details.}
30 the vector with the unique elements (the latter is advised for speed), default
52 The first four target matrices of the 'M2.shrink', 'M3.shrink' and 'M4.shrink'
75 m3 <- M3.shrink(edhec, targets, f)$M3sh
[all …]
/dports/devel/hyperscan/boost_1_75_0/libs/histogram/test/
H A Dalgorithm_reduce_test.cpp85 BOOST_TEST_EQ(reduce(h, shrink(-1, 5)).axis(), ID(0, 3)); in run_tests()
86 BOOST_TEST_EQ(reduce(h, shrink(0, 3)).axis(), ID(0, 3)); in run_tests()
87 BOOST_TEST_EQ(reduce(h, shrink(1, 3)).axis(), ID(1, 3)); in run_tests()
90 BOOST_TEST_EQ(reduce(h, shrink(2, 3)).axis(), ID(2, 3)); in run_tests()
93 BOOST_TEST_EQ(reduce(h, shrink(0, 2)).axis(), ID(0, 2)); in run_tests()
109 auto h = make_s(Tag(), std::vector<int>(), R(4, 1, 5, "1"), R(3, -1, 2, "2")); in run_tests()
127 auto hr = reduce(h, shrink(1, -1, 2), rebin(0, 1)); in run_tests()
139 hr = reduce(h, shrink(0, 2, 4)); in run_tests()
175 std::vector<reduce_command> opts{{shrink(0, 2, 5), rebin(0, 2), rebin(1, 3)}}; in run_tests()
189 auto h = make_s(Tag(), std::vector<int>(), R(4, 1, 5), R(3, 1, 4)); in run_tests()
[all …]
/dports/biology/ncbi-cxx-toolkit/ncbi_cxx--25_2_0/src/algo/structure/bma_refine/
H A DBlockBoundaryAlgorithm.cpp48 AddScorer(scorer, ext, shrink); in BlockBoundaryAlgorithm()
62 m_shrinkageThresholds.push_back((shrink == kMax_Double) ? ext : shrink); in AddScorer()
82 vector<double> rowScoreCache; in PassAllTests()
157 vector<double> rowScoreCache; in PassAllTests()
237 m_secondShrinkageThresholds.push_back((secondScorer) ? shrink2 : shrink); in SimpleBoundaryExtenderAndShrinker()
253 AddFirstScorer(scorer, ext, shrink); in AddScorer()
254 AddSecondScorer(scorer, ext, shrink); in AddScorer()
262 m_shrinkageThresholds.push_back((shrink == kMax_Double) ? ext : shrink); in AddFirstScorer()
347 vector< TMap > columnScores; in GetNewBoundaries()
350 vector< double > rowScoreCache; in GetNewBoundaries()
[all …]
/dports/devel/rapidcheck/rapidcheck-7bc7d30/test/shrink/
H A DShrinkTests.cpp66 T shrink; in exec() local
67 shrink.reserve(size - (right - left)); in exec()
68 shrink.insert(end(shrink), begin(elements), begin(elements) + left); in exec()
69 shrink.insert(end(shrink), begin(elements) + right, end(elements)); in exec()
71 RC_ASSERT(seq::contains(shrink::removeChunks(elements), shrink)); in exec()
86 forEachType<RemoveChunksProperties, std::vector<char>, std::string>();
98 auto seq = shrink::eachElement( in exec()
118 forEachType<EachElementProperties, std::vector<char>, std::string>();
174 REQUIRE(!shrink::integral<T>(0).next()); in exec()
202 REQUIRE(!shrink::integral<T>(0).next()); in exec()
[all …]
/dports/devel/R-cran-gbm/gbm/man/
H A Dshrink.gbm.pred.Rd1 \name{shrink.gbm.pred}
2 \alias{shrink.gbm.pred}
9 shrink.gbm.pred(object,
20 …\item{lambda}{ a vector with length equal to the number of variables containing the shrinkage para…
25 A vector with length equal to the number of observations in newdata containing the predictions
32 \seealso{ \code{\link{shrink.gbm}}, \code{\link{gbm}} }
/dports/devel/boost-docs/boost_1_72_0/libs/histogram/test/
H A Dalgorithm_reduce_test.cpp45 BOOST_TEST_THROWS((void)reduce(h, shrink(1, 0, 2), shrink(1, 0, 2)), in run_tests()
75 BOOST_TEST_EQ(reduce(h, shrink(0, 3)).axis(), ID(0, 3)); in run_tests()
76 BOOST_TEST_EQ(reduce(h, shrink(1, 3)).axis(), ID(1, 3)); in run_tests()
79 BOOST_TEST_EQ(reduce(h, shrink(2, 3)).axis(), ID(2, 3)); in run_tests()
82 BOOST_TEST_EQ(reduce(h, shrink(0, 2)).axis(), ID(0, 2)); in run_tests()
87 auto h = make_s(Tag(), std::vector<int>(), R(4, 1, 5), R(3, -1, 2)); in run_tests()
105 auto hr = reduce(h, shrink(1, -1, 2), rebin(0, 1)); in run_tests()
115 hr = reduce(h, shrink(0, 2, 4)); in run_tests()
155 std::vector<reduce_option> opts{{shrink(0, 2, 5), rebin(0, 2), rebin(1, 3)}}; in run_tests()
169 auto hr = algorithm::reduce(h, shrink(0, 0.2, 0.7)); in run_tests()
[all …]
/dports/devel/boost-python-libs/boost_1_72_0/libs/histogram/test/
H A Dalgorithm_reduce_test.cpp45 BOOST_TEST_THROWS((void)reduce(h, shrink(1, 0, 2), shrink(1, 0, 2)), in run_tests()
75 BOOST_TEST_EQ(reduce(h, shrink(0, 3)).axis(), ID(0, 3)); in run_tests()
76 BOOST_TEST_EQ(reduce(h, shrink(1, 3)).axis(), ID(1, 3)); in run_tests()
79 BOOST_TEST_EQ(reduce(h, shrink(2, 3)).axis(), ID(2, 3)); in run_tests()
82 BOOST_TEST_EQ(reduce(h, shrink(0, 2)).axis(), ID(0, 2)); in run_tests()
87 auto h = make_s(Tag(), std::vector<int>(), R(4, 1, 5), R(3, -1, 2)); in run_tests()
105 auto hr = reduce(h, shrink(1, -1, 2), rebin(0, 1)); in run_tests()
115 hr = reduce(h, shrink(0, 2, 4)); in run_tests()
155 std::vector<reduce_option> opts{{shrink(0, 2, 5), rebin(0, 2), rebin(1, 3)}}; in run_tests()
169 auto hr = algorithm::reduce(h, shrink(0, 0.2, 0.7)); in run_tests()
[all …]
/dports/devel/boost-libs/boost_1_72_0/libs/histogram/test/
H A Dalgorithm_reduce_test.cpp45 BOOST_TEST_THROWS((void)reduce(h, shrink(1, 0, 2), shrink(1, 0, 2)), in run_tests()
75 BOOST_TEST_EQ(reduce(h, shrink(0, 3)).axis(), ID(0, 3)); in run_tests()
76 BOOST_TEST_EQ(reduce(h, shrink(1, 3)).axis(), ID(1, 3)); in run_tests()
79 BOOST_TEST_EQ(reduce(h, shrink(2, 3)).axis(), ID(2, 3)); in run_tests()
82 BOOST_TEST_EQ(reduce(h, shrink(0, 2)).axis(), ID(0, 2)); in run_tests()
87 auto h = make_s(Tag(), std::vector<int>(), R(4, 1, 5), R(3, -1, 2)); in run_tests()
105 auto hr = reduce(h, shrink(1, -1, 2), rebin(0, 1)); in run_tests()
115 hr = reduce(h, shrink(0, 2, 4)); in run_tests()
155 std::vector<reduce_option> opts{{shrink(0, 2, 5), rebin(0, 2), rebin(1, 3)}}; in run_tests()
169 auto hr = algorithm::reduce(h, shrink(0, 0.2, 0.7)); in run_tests()
[all …]
/dports/math/gfan/gfan0.6.2/src/
H A Dtraverser_resultantfanspecialization.cpp32 IntegerVector shrink(IntegerVector const &a)const in shrink() function in Shrinking
40 IntegerVectorList shrink(IntegerVectorList const &l)const in shrink() function in Shrinking
44 ret.push_back(shrink(*i)); in shrink()
47 PolyhedralCone shrink(PolyhedralCone const &c)const in shrink() function in Shrinking
49 return PolyhedralCone(shrink(c.getHalfSpaces()),shrink(c.getEquations()),newCount); in shrink()
86 vector<pair<int,int> > shrinkIntervals(vector<pair<int, int> >const &intervals) in shrinkIntervals()
88 vector<pair<int,int> > ret; in shrinkIntervals()
134 IntegerVector isSpecial2=s.shrink(isSpecial); in nonTrivialVectorInSpecializedResultant()
275 …for(vector<pair<int,int> >::const_iterator i=intervals.begin();i!=intervals.end();i++)newCayley.ap… in perturbationSequenceRek()
280 IntegerVector newOmega=s.shrink(omega); in perturbationSequenceRek()
[all …]
/dports/math/gfanlib/gfan0.6.2/src/
H A Dtraverser_resultantfanspecialization.cpp32 IntegerVector shrink(IntegerVector const &a)const in shrink() function in Shrinking
40 IntegerVectorList shrink(IntegerVectorList const &l)const in shrink() function in Shrinking
44 ret.push_back(shrink(*i)); in shrink()
47 PolyhedralCone shrink(PolyhedralCone const &c)const in shrink() function in Shrinking
49 return PolyhedralCone(shrink(c.getHalfSpaces()),shrink(c.getEquations()),newCount); in shrink()
86 vector<pair<int,int> > shrinkIntervals(vector<pair<int, int> >const &intervals) in shrinkIntervals()
88 vector<pair<int,int> > ret; in shrinkIntervals()
134 IntegerVector isSpecial2=s.shrink(isSpecial); in nonTrivialVectorInSpecializedResultant()
275 …for(vector<pair<int,int> >::const_iterator i=intervals.begin();i!=intervals.end();i++)newCayley.ap… in perturbationSequenceRek()
280 IntegerVector newOmega=s.shrink(omega); in perturbationSequenceRek()
[all …]

12345678910>>...179