Home
last modified time | relevance | path

Searched refs:norm_type (Results 1 – 25 of 357) sorted by relevance

12345678910>>...15

/dports/graphics/opencv/opencv-4.5.3/modules/python/test/
H A Dtest_norm.py86 def get_element_types(norm_type): argument
87 if norm_type in (cv.NORM_HAMMING, cv.NORM_HAMMING2):
109 element_types = get_element_types(norm_type)
113 actual = cv.norm(array, norm_type)
124 element_types = get_element_types(norm_type)
129 actual = cv.norm(first, second, norm_type)
134 norm_name[norm_type]
147 for norm_type in norm_type_under_test:
155 for norm_type in norm_type_under_test:
163 for norm_type in norm_type_under_test:
[all …]
/dports/math/armadillo/armadillo-10.7.1/include/armadillo_bits/
H A Dop_var_meat.hpp40 const uword norm_type = in.aux_uword_a; in apply() local
83 out_mem[row] = op_var::direct_var( dat_mem, X_n_cols, norm_type ); in apply()
102 return op_var::direct_var(U.M.memptr(), U.M.n_elem, norm_type); in var_vec()
110 op_var::var_vec(const subview_col<eT>& X, const uword norm_type) in var_vec() argument
116 return op_var::direct_var(X.colptr(0), X.n_rows, norm_type); in var_vec()
125 op_var::var_vec(const subview_row<eT>& X, const uword norm_type) in var_vec() argument
146 return op_var::direct_var(tmp.memptr(), tmp.n_elem, norm_type); in var_vec()
190 const eT norm_val = (norm_type == 0) ? eT(n_elem-1) : eT(n_elem); in direct_var()
226 return (norm_type == 0) ? r_var : (eT(n_elem-1)/eT(n_elem)) * r_var; in direct_var_robust()
261 const T norm_val = (norm_type == 0) ? T(n_elem-1) : T(n_elem); in direct_var()
[all …]
H A Dfn_var.hpp33 var(const T1& X, const uword norm_type = 0) in var() argument
37 return op_var::var_vec(X, norm_type); in var()
51 var(const T1& X, const uword norm_type = 0) in var() argument
55 return mtOp<typename T1::pod_type, T1, op_var>(X, norm_type, 0); in var()
69 var(const T1& X, const uword norm_type, const uword dim) in var() argument
73 return mtOp<typename T1::pod_type, T1, op_var>(X, norm_type, dim); in var()
98 var(const T1& X, const uword norm_type = 0) in var() argument
102 return spop_var::var_vec(X, norm_type); in var()
116 var(const T1& X, const uword norm_type = 0) in var() argument
120 return mtSpOp<typename T1::pod_type, T1, spop_var>(X, norm_type, 0); in var()
[all …]
H A Dspop_var_meat.hpp34 const uword norm_type = in.aux_uword_a; in apply() local
44 spop_var::apply_noalias(out, p, norm_type, dim); in apply()
50 spop_var::apply_noalias(tmp, p, norm_type, dim); in apply()
65 const uword norm_type, in apply_noalias() argument
108 norm_type in apply_noalias()
144 const uword norm_type in var_vec() argument
168 const uword norm_type in direct_var() argument
242 const uword norm_type in direct_var() argument
268 const T norm_val = (norm_type == 0) ? T(N - 1) : T(N); in direct_var()
302 const uword norm_type, in iterator_var() argument
[all …]
H A Dop_var_bones.hpp37 …tic typename get_pod_type<eT>::result var_vec(const subview_col<eT>& X, const uword norm_type = 0);
40 …tic typename get_pod_type<eT>::result var_vec(const subview_row<eT>& X, const uword norm_type = 0);
43 …ypename T1::pod_type var_vec(const Base<typename T1::elem_type, T1>& X, const uword norm_type = 0);
49 inline static eT direct_var(const eT* const X, const uword N, const uword norm_type = 0);
52 inline static eT direct_var_robust(const eT* const X, const uword N, const uword norm_type = 0);
58 …inline static T direct_var(const std::complex<T>* const X, const uword N, const uword norm_type =…
61 …tic T direct_var_robust(const std::complex<T>* const X, const uword N, const uword norm_type = 0);
H A Dfn_cov.hpp28 cov(const Base<typename T1::elem_type,T1>& X, const uword norm_type = 0) in cov() argument
32 arma_debug_check( (norm_type > 1), "cov(): parameter 'norm_type' must be 0 or 1" ); in cov()
34 return Op<T1, op_cov>(X.get_ref(), norm_type, 0); in cov()
43 …typename T1::elem_type,T1>& A, const Base<typename T1::elem_type,T2>& B, const uword norm_type = 0) in cov() argument
47 arma_debug_check( (norm_type > 1), "cov(): parameter 'norm_type' must be 0 or 1" ); in cov()
49 return Glue<T1, T2, glue_cov>(A.get_ref(), B.get_ref(), norm_type); in cov()
H A Dfn_cor.hpp28 cor(const Base<typename T1::elem_type,T1>& X, const uword norm_type = 0) in cor() argument
32 arma_debug_check( (norm_type > 1), "cor(): parameter 'norm_type' must be 0 or 1" ); in cor()
34 return Op<T1, op_cor>(X.get_ref(), norm_type, 0); in cor()
43 …typename T1::elem_type,T1>& A, const Base<typename T1::elem_type,T2>& B, const uword norm_type = 0) in cor() argument
47 arma_debug_check( (norm_type > 1), "cor(): parameter 'norm_type' must be 0 or 1" ); in cor()
49 return Glue<T1, T2, glue_cor>(A.get_ref(), B.get_ref(), norm_type); in cor()
H A Dfn_stddev.hpp33 stddev(const T1& X, const uword norm_type = 0) in stddev() argument
37 return std::sqrt( op_var::var_vec(X, norm_type) ); in stddev()
51 stddev(const T1& X, const uword norm_type = 0) in stddev() argument
55 return mtOp<typename T1::pod_type, T1, op_stddev>(X, norm_type, 0); in stddev()
69 stddev(const T1& X, const uword norm_type, const uword dim) in stddev() argument
73 return mtOp<typename T1::pod_type, T1, op_stddev>(X, norm_type, dim); in stddev()
H A Dspop_var_bones.hpp34 …as(SpMat<typename T1::pod_type>& out, const SpProxy<T1>& p, const uword norm_type, const uword dim…
38 inline static typename T1::pod_type var_vec(const T1& X, const uword norm_type = 0);
44 …tic eT direct_var(const eT* const X, const uword length, const uword N, const uword norm_type = 0);
49 …_var(const std::complex<T>* const X, const uword length, const uword N, const uword norm_type = 0);
53 …inline static eT iterator_var(T1& it, const T1& end, const uword n_zero, const uword norm_type, co…
57 …ult iterator_var(T1& it, const T1& end, const uword n_zero, const uword norm_type, const eT junk1,…
/dports/math/R-cran-RcppArmadillo/RcppArmadillo/inst/include/armadillo_bits/
H A Dop_var_meat.hpp40 const uword norm_type = in.aux_uword_a; in apply() local
83 out_mem[row] = op_var::direct_var( dat_mem, X_n_cols, norm_type ); in apply()
102 return op_var::direct_var(U.M.memptr(), U.M.n_elem, norm_type); in var_vec()
110 op_var::var_vec(const subview_col<eT>& X, const uword norm_type) in var_vec() argument
116 return op_var::direct_var(X.colptr(0), X.n_rows, norm_type); in var_vec()
125 op_var::var_vec(const subview_row<eT>& X, const uword norm_type) in var_vec() argument
146 return op_var::direct_var(tmp.memptr(), tmp.n_elem, norm_type); in var_vec()
190 const eT norm_val = (norm_type == 0) ? eT(n_elem-1) : eT(n_elem); in direct_var()
226 return (norm_type == 0) ? r_var : (eT(n_elem-1)/eT(n_elem)) * r_var; in direct_var_robust()
261 const T norm_val = (norm_type == 0) ? T(n_elem-1) : T(n_elem); in direct_var()
[all …]
H A Dfn_var.hpp33 var(const T1& X, const uword norm_type = 0) in var() argument
37 return op_var::var_vec(X, norm_type); in var()
51 var(const T1& X, const uword norm_type = 0) in var() argument
55 return mtOp<typename T1::pod_type, T1, op_var>(X, norm_type, 0); in var()
69 var(const T1& X, const uword norm_type, const uword dim) in var() argument
73 return mtOp<typename T1::pod_type, T1, op_var>(X, norm_type, dim); in var()
98 var(const T1& X, const uword norm_type = 0) in var() argument
102 return spop_var::var_vec(X, norm_type); in var()
116 var(const T1& X, const uword norm_type = 0) in var() argument
120 return mtSpOp<typename T1::pod_type, T1, spop_var>(X, norm_type, 0); in var()
[all …]
H A Dspop_var_meat.hpp34 const uword norm_type = in.aux_uword_a; in apply() local
44 spop_var::apply_noalias(out, p, norm_type, dim); in apply()
50 spop_var::apply_noalias(tmp, p, norm_type, dim); in apply()
65 const uword norm_type, in apply_noalias() argument
108 norm_type in apply_noalias()
144 const uword norm_type in var_vec() argument
168 const uword norm_type in direct_var() argument
242 const uword norm_type in direct_var() argument
268 const T norm_val = (norm_type == 0) ? T(N - 1) : T(N); in direct_var()
302 const uword norm_type, in iterator_var() argument
[all …]
H A Dop_var_bones.hpp37 …tic typename get_pod_type<eT>::result var_vec(const subview_col<eT>& X, const uword norm_type = 0);
40 …tic typename get_pod_type<eT>::result var_vec(const subview_row<eT>& X, const uword norm_type = 0);
43 …ypename T1::pod_type var_vec(const Base<typename T1::elem_type, T1>& X, const uword norm_type = 0);
49 inline static eT direct_var(const eT* const X, const uword N, const uword norm_type = 0);
52 inline static eT direct_var_robust(const eT* const X, const uword N, const uword norm_type = 0);
58 …inline static T direct_var(const std::complex<T>* const X, const uword N, const uword norm_type =…
61 …tic T direct_var_robust(const std::complex<T>* const X, const uword N, const uword norm_type = 0);
H A Dfn_cor.hpp28 cor(const Base<typename T1::elem_type,T1>& X, const uword norm_type = 0) in cor() argument
32 arma_debug_check( (norm_type > 1), "cor(): parameter 'norm_type' must be 0 or 1" ); in cor()
34 return Op<T1, op_cor>(X.get_ref(), norm_type, 0); in cor()
43 …typename T1::elem_type,T1>& A, const Base<typename T1::elem_type,T2>& B, const uword norm_type = 0) in cor() argument
47 arma_debug_check( (norm_type > 1), "cor(): parameter 'norm_type' must be 0 or 1" ); in cor()
49 return Glue<T1, T2, glue_cor>(A.get_ref(), B.get_ref(), norm_type); in cor()
H A Dfn_cov.hpp28 cov(const Base<typename T1::elem_type,T1>& X, const uword norm_type = 0) in cov() argument
32 arma_debug_check( (norm_type > 1), "cov(): parameter 'norm_type' must be 0 or 1" ); in cov()
34 return Op<T1, op_cov>(X.get_ref(), norm_type, 0); in cov()
43 …typename T1::elem_type,T1>& A, const Base<typename T1::elem_type,T2>& B, const uword norm_type = 0) in cov() argument
47 arma_debug_check( (norm_type > 1), "cov(): parameter 'norm_type' must be 0 or 1" ); in cov()
49 return Glue<T1, T2, glue_cov>(A.get_ref(), B.get_ref(), norm_type); in cov()
H A Dfn_stddev.hpp33 stddev(const T1& X, const uword norm_type = 0) in stddev() argument
37 return std::sqrt( op_var::var_vec(X, norm_type) ); in stddev()
51 stddev(const T1& X, const uword norm_type = 0) in stddev() argument
55 return mtOp<typename T1::pod_type, T1, op_stddev>(X, norm_type, 0); in stddev()
69 stddev(const T1& X, const uword norm_type, const uword dim) in stddev() argument
73 return mtOp<typename T1::pod_type, T1, op_stddev>(X, norm_type, dim); in stddev()
H A Dspop_var_bones.hpp34 …as(SpMat<typename T1::pod_type>& out, const SpProxy<T1>& p, const uword norm_type, const uword dim…
38 inline static typename T1::pod_type var_vec(const T1& X, const uword norm_type = 0);
44 …tic eT direct_var(const eT* const X, const uword length, const uword N, const uword norm_type = 0);
49 …_var(const std::complex<T>* const X, const uword length, const uword N, const uword norm_type = 0);
53 …inline static eT iterator_var(T1& it, const T1& end, const uword n_zero, const uword norm_type, co…
57 …ult iterator_var(T1& it, const T1& end, const uword n_zero, const uword norm_type, const eT junk1,…
/dports/misc/ncnn/ncnn-20211208/tools/pnnx/tests/
H A Dtest_F_lp_pool2d.py24 x = F.lp_pool2d(x, norm_type=2, kernel_size=3)
25 x = F.lp_pool2d(x, norm_type=2, kernel_size=4, stride=2)
26 x = F.lp_pool2d(x, norm_type=1, kernel_size=(1,3), stride=1, ceil_mode=False)
27 x = F.lp_pool2d(x, norm_type=1, kernel_size=(4,5), stride=(1,2), ceil_mode=True)
28 x = F.lp_pool2d(x, norm_type=1.2, kernel_size=(5,3), stride=(2,1), ceil_mode=False)
29 x = F.lp_pool2d(x, norm_type=0.5, kernel_size=2, stride=1, ceil_mode=True)
30 x = F.lp_pool2d(x, norm_type=0.1, kernel_size=(5,4), stride=1, ceil_mode=False)
H A Dtest_F_lp_pool1d.py24 x = F.lp_pool1d(x, norm_type=2, kernel_size=3)
25 x = F.lp_pool1d(x, norm_type=2, kernel_size=4, stride=2)
26 x = F.lp_pool1d(x, norm_type=1, kernel_size=3, stride=1, ceil_mode=False)
27 x = F.lp_pool1d(x, norm_type=1, kernel_size=5, stride=1, ceil_mode=True)
28 x = F.lp_pool1d(x, norm_type=1.2, kernel_size=3, stride=2, ceil_mode=False)
29 x = F.lp_pool1d(x, norm_type=0.5, kernel_size=2, stride=1, ceil_mode=True)
30 x = F.lp_pool1d(x, norm_type=0.1, kernel_size=4, stride=1, ceil_mode=False)
H A Dtest_nn_LPPool1d.py23 self.pool_0 = nn.LPPool1d(norm_type=2, kernel_size=3)
24 self.pool_1 = nn.LPPool1d(norm_type=2, kernel_size=4, stride=2)
25 self.pool_2 = nn.LPPool1d(norm_type=1, kernel_size=3, stride=1, ceil_mode=False)
26 self.pool_3 = nn.LPPool1d(norm_type=1, kernel_size=5, stride=1, ceil_mode=True)
27 self.pool_4 = nn.LPPool1d(norm_type=1.2, kernel_size=3, stride=2, ceil_mode=False)
28 self.pool_5 = nn.LPPool1d(norm_type=0.5, kernel_size=2, stride=1, ceil_mode=True)
29 self.pool_6 = nn.LPPool1d(norm_type=0.1, kernel_size=4, stride=1, ceil_mode=False)
H A Dtest_nn_LPPool2d.py23 self.pool_0 = nn.LPPool2d(norm_type=2, kernel_size=3)
24 self.pool_1 = nn.LPPool2d(norm_type=2, kernel_size=4, stride=2)
25 self.pool_2 = nn.LPPool2d(norm_type=1, kernel_size=(1,3), stride=1, ceil_mode=False)
26 self.pool_3 = nn.LPPool2d(norm_type=1, kernel_size=(4,5), stride=(1,2), ceil_mode=True)
27 self.pool_4 = nn.LPPool2d(norm_type=1.2, kernel_size=(5,3), stride=(2,1), ceil_mode=False)
28 self.pool_5 = nn.LPPool2d(norm_type=0.5, kernel_size=2, stride=1, ceil_mode=True)
29 self.pool_6 = nn.LPPool2d(norm_type=0.1, kernel_size=(5,4), stride=1, ceil_mode=False)
/dports/misc/orange3/orange3-3.29.1/Orange/tests/
H A Dtest_normalize.py40 norm_type=Normalize.NormalizeBySD,
50 norm_type=Normalize.NormalizeBySD,
60 norm_type=Normalize.NormalizeBySpan,
70 norm_type=Normalize.NormalizeBySpan,
80 norm_type=Normalize.NormalizeBySpan,
90 norm_type=Normalize.NormalizeBySpan,
138 norm_type=Normalize.NormalizeBySD,
151 Normalize(norm_type=Normalize.NormalizeBySD)(
154 Normalize(norm_type=Normalize.NormalizeBySpan)(
/dports/math/octave-forge-bim/bim/inst/
H A Dbim1c_norm.m25 ## bim1c_norm(@var{mesh},@var{u},@var{norm_type})
27 ## Compute the @var{norm_type}-norm of function @var{u} on the domain described
33 ## The string parameter @var{norm_type} can be one among 'L2', 'H1' and 'inf'.
42 function [norm_u] = bim1c_norm (m, u, norm_type)
65 if (! (strcmp (norm_type, 'L2')
66 || strcmp (norm_type, 'inf')
67 || strcmp (norm_type, 'H1')))
71 if (strcmp (norm_type,'inf'))
78 if (strcmp (norm_type, 'H1'))
87 if (strcmp (norm_type, 'H1'))
H A Dbim2c_norm.m25 ## bim2c_norm(@var{mesh},@var{u},@var{norm_type})
27 ## Compute the @var{norm_type}-norm of function @var{u} on the domain described
33 ## The string parameter @var{norm_type} can be one among 'L2', 'H1' and 'inf'.
45 function [norm_u] = bim2c_norm (m, u, norm_type)
67 if (! (strcmp (norm_type,'L2')
68 || strcmp (norm_type,'inf')
69 || strcmp (norm_type,'H1')))
73 if (strcmp (norm_type,'inf'))
80 if (strcmp (norm_type, 'H1'))
89 if (strcmp (norm_type, 'H1'))
/dports/math/libmesh/libmesh-1.6.2/src/systems/
H A Dsystem.C1403 if (norm_type == DISCRETE_L1) in discrete_var_norm()
1405 if (norm_type == DISCRETE_L2) in discrete_var_norm()
1429 norms[var] = norm_type; in calculate_norm()
1507 if ((norm_type==H1) || in calculate_norm()
1508 (norm_type==H2) || in calculate_norm()
1509 (norm_type==L2) || in calculate_norm()
1578 if (norm_type == H1 || in calculate_norm()
1579 norm_type == H2 || in calculate_norm()
1580 norm_type == L2 || in calculate_norm()
1581 norm_type == L1 || in calculate_norm()
[all …]

12345678910>>...15