/dports/math/scilab/scilab-6.1.1/scilab/modules/m2sci/tests/unit_tests/mfiles/ |
H A D | CUMPROD.m | 1 % Test file for function cumprod() 5 res1 = cumprod([]); 11 res4 = cumprod([1]); 13 res5 = cumprod([1,2,3]); 15 res6 = cumprod([1;2;3]); 35 res16 = cumprod([i]); 59 res28 = cumprod([],1); 65 res31 = cumprod([1],1); 89 res43 = cumprod([i],1); 113 res55 = cumprod([],2); [all …]
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/elementary_functions/tests/unit_tests/ |
H A D | cumprod.tst | 50 assert_checkerror("cumprod(i,1,1)", refMsg); 84 "cumprod",2,"""*"",""r"",""c"",""m"""); 89 assert_checkerror("cumprod(d,1,1)", refMsg); 96 "cumprod",2,"""*"",""r"",""c"",""m"""); 113 "cumprod",2,"""*"",""r"",""c"",""m"""); 118 assert_checkerror("cumprod(d,1,1)", refMsg); 149 "cumprod",2,"""*"",""r"",""c"",""m"""); 156 //cumprod 160 assert_checkequal(cumprod([],typ(:)), []); 277 assert_checkequal(cumprod(b,3,"native"), b); [all …]
|
H A D | cumprod.dia.ref | 40 assert_checkerror("cumprod(i,1,1)", refMsg); 67 "cumprod",2,"""*"",""r"",""c"",""m"""); 71 assert_checkerror("cumprod(d,1,1)", refMsg); 77 "cumprod",2,"""*"",""r"",""c"",""m"""); 90 "cumprod",2,"""*"",""r"",""c"",""m"""); 94 assert_checkerror("cumprod(d,1,1)", refMsg); 120 "cumprod",2,"""*"",""r"",""c"",""m"""); 125 //cumprod 129 assert_checkequal(cumprod([],typ(:)), []); 235 assert_checkequal(cumprod(b,3,"native"), b); [all …]
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/integer/tests/nonreg_tests/ |
H A D | bug_3842.dia.ref | 335 assert_checkerror("cumprod(i,1,1)", refMsg); 362 "cumprod",2,"""*"",""r"",""c"",""m"""); 372 "cumprod",2,"""*"",""r"",""c"",""m"""); 385 "cumprod",2,"""*"",""r"",""c"",""m"""); 415 "cumprod",2,"""*"",""r"",""c"",""m"""); 420 //cumprod 920 "cumprod",2,"""*"",""r"",""c"",""m"""); 930 "cumprod",2,"""*"",""r"",""c"",""m"""); 943 "cumprod",2,"""*"",""r"",""c"",""m"""); 973 "cumprod",2,"""*"",""r"",""c"",""m"""); [all …]
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/frame/ |
H A D | test_cumulative.py | 53 cumprod = datetime_frame.cumprod() 54 expected = datetime_frame.apply(Series.cumprod) 55 tm.assert_frame_equal(cumprod, expected) 58 cumprod = datetime_frame.cumprod(axis=1) 59 expected = datetime_frame.apply(Series.cumprod, axis=1) 60 tm.assert_frame_equal(cumprod, expected) 63 cumprod_xs = datetime_frame.cumprod(axis=1) 68 df.cumprod(0) 69 df.cumprod(1) 73 df.cumprod(0) [all …]
|
/dports/math/p5-Math-Matrix/Math-Matrix-0.94/t/ |
H A D | cumprod.t | 18 my $y = $x -> cumprod(); 48 my $y = $x -> cumprod(1); 78 my $y = $x -> cumprod(2); 110 my $y = $x -> cumprod(); 140 my $y = $x -> cumprod(1); 170 my $y = $x -> cumprod(2); 199 my $y = $x -> cumprod(); 220 my $y = $x -> cumprod(1); 241 my $y = $x -> cumprod(2); 264 my $y = $x -> cumprod(); [all …]
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/elementary_functions/macros/ |
H A D | %spb_cumprod.sci | 52 "cumprod",2,"""*"",""r"",""c"",""m""")) 62 error(msprintf(_("%s: Wrong type for input argument #%d: string expected.\n"),"cumprod",3)) 80 r=sparse(ij,cumprod(v,typ),dims) 82 r=sparse(ij(1:l,:),cumprod(v(1:l),typ),dims) 87 r=sparse(ij,cumprod(v,typ),dims) 89 r=sparse(ij(1:l,:),cumprod(v(1:l),typ),dims) 92 r=matrix(cumprod(matrix(a,1,-1),typ),dims) 102 v=[v;cumprod(vk,typ)]; 105 v=[v;cumprod(vk(1:l,:),typ)]; 118 v=[v;cumprod(vk,typ)] [all …]
|
H A D | %sp_cumprod.sci | 44 … error(msprintf(_("%s: Wrong size for input argument #%d: string expected.\n"),"cumprod",2)) 48 "cumprod",2,"""*"",""r"",""c"",""m""")) 65 r=sparse(ij,cumprod(v),dims) 67 r=sparse(ij(1:l,:),cumprod(v(1:l)),dims) 72 r=sparse(ij,cumprod(v),dims) 74 r=sparse(ij(1:l,:),cumprod(v(1:l)),dims) 77 r=matrix(cumprod(matrix(a,1,-1)),dims) 87 v=[v;cumprod(vk)]; 90 v=[v;cumprod(vk(1:l,:))]; 103 v=[v;cumprod(vk)] [all …]
|
/dports/graphics/wings/libigl-2.1.0/include/igl/ |
H A D | cumprod.cpp | 13 IGL_INLINE void igl::cumprod( in cumprod() function in igl 63 template void igl::cumprod<Eigen::Matrix<double, 4, 1, 0, 4, 1>, Eigen::Matrix<double, 4, 1, 0, 4, … 65 template void igl::cumprod<Eigen::Matrix<double, 1, 4, 1, 1, 4>, Eigen::Matrix<double, 1, 4, 1, 1, … 66 template void igl::cumprod<Eigen::Matrix<double, -1, -1, 0, -1, -1>, Eigen::Matrix<double, -1, -1, … 67 template void igl::cumprod<Eigen::Matrix<double, -1, 1, 0, -1, 1>, Eigen::Matrix<double, -1, 1, 0, … 68 template void igl::cumprod<Eigen::Matrix<double, 3, 1, 0, 3, 1>, Eigen::Matrix<double, 3, 1, 0, 3, … 69 template void igl::cumprod<Eigen::Matrix<unsigned long, 2, 1, 0, 2, 1>, Eigen::Matrix<unsigned long… 70 template void igl::cumprod<Eigen::Matrix<unsigned long, -1, 1, 0, -1, 1>, Eigen::Matrix<unsigned lo… 71 template void igl::cumprod<Eigen::Matrix<int, -1, 1, 0, -1, 1>, Eigen::Matrix<int, -1, 1, 0, -1, 1>… 73 template void igl::cumprod<class Eigen::Matrix<unsigned __int64, -1, 1, 0, -1, 1>, class Eigen::Mat… [all …]
|
/dports/math/casadi/casadi-3.5.5/casadi/core/runtime/ |
H A D | casadi_nd_boor_dual_eval.hpp | 7 T1 *cumprod, *all_boor; in casadi_nd_boor_dual_eval() local 14 cumprod = w; w+= n_dims+1; in casadi_nd_boor_dual_eval() 18 cumprod[n_dims] = 1; in casadi_nd_boor_dual_eval() 66 cumprod[pivot] = (*(all_boor+boor_offset[pivot]))*cumprod[pivot+1]; in casadi_nd_boor_dual_eval() 75 val[nnz++] += cumprod[0]; in casadi_nd_boor_dual_eval() 92 cumprod[pivot] = (*(all_boor+boor_offset[pivot]+index[pivot]))*cumprod[pivot+1]; in casadi_nd_boor_dual_eval() 100 cumprod[0] = (*(all_boor+index[0]))*cumprod[1]; in casadi_nd_boor_dual_eval()
|
H A D | casadi_nd_boor_eval.hpp | 7 T1 *cumprod, *all_boor; in casadi_nd_boor_eval() local 14 cumprod = w; w+= n_dims+1; in casadi_nd_boor_eval() 18 cumprod[n_dims] = 1; in casadi_nd_boor_eval() 64 cumprod[pivot] = (*(all_boor+boor_offset[pivot]))*cumprod[pivot+1]; in casadi_nd_boor_eval() 71 for (i=0;i<m;++i) ret[i] += c[coeff_offset[0]+i]*cumprod[0]; in casadi_nd_boor_eval() 88 cumprod[pivot] = (*(all_boor+boor_offset[pivot]+index[pivot]))*cumprod[pivot+1]; in casadi_nd_boor_eval() 96 cumprod[0] = (*(all_boor+index[0]))*cumprod[1]; in casadi_nd_boor_eval()
|
H A D | shared.hpp | 119 casadi_int cumprod = 1; in einstein_process() local 122 strides_a[1+lu[-a[j]]] = cumprod; in einstein_process() 124 strides_a[0]+=a[j]*cumprod; in einstein_process() 126 cumprod*= dim_a[j]; in einstein_process() 128 cumprod = 1; in einstein_process() 131 strides_b[1+lu[-b[j]]] = cumprod; in einstein_process() 133 strides_b[0]+=b[j]*cumprod; in einstein_process() 135 cumprod*= dim_b[j]; in einstein_process() 137 cumprod = 1; in einstein_process() 142 strides_c[0]+=c[j]*cumprod; in einstein_process() [all …]
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/hdf5/src/cpp/ |
H A D | H5DataConverter.hxx | 129 hsize_t * cumprod = new hsize_t[ndims]; in C2FHypermatrix() local 131 cumprod[0] = 1; in C2FHypermatrix() 135 cumprod[i + 1] = dims[i] * cumprod[i]; in C2FHypermatrix() 136 cumdiv[i] = size / cumprod[i + 1]; in C2FHypermatrix() 139 reorder(ndims, dims, cumprod, cumdiv, src, dest); in C2FHypermatrix() 140 delete[] cumprod; in C2FHypermatrix() 151 …static void reorder(const int ndims, const hsize_t * dims, const hsize_t * cumprod, const hsize_t … in reorder() argument 158 dest += *cumprod; in reorder() 165 reorder(ndims - 1, dims + 1, cumprod + 1, cumdiv + 1, src, dest); in reorder() 166 dest += *cumprod; in reorder()
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/m2sci/tests/unit_tests/conversion/ |
H A D | CUMPROD.dia.ref | 62 …! L.167: Scilab cumprod() does not work when dim input argument is greater than number of dims of … 63 …! L.169: Scilab cumprod() does not work when dim input argument is greater than number of dims of … 64 …! L.171: Scilab cumprod() does not work when dim input argument is greater than number of dims of … 65 …! L.173: Scilab cumprod() does not work when dim input argument is greater than number of dims of … 66 …! L.175: Scilab cumprod() does not work when dim input argument is greater than number of dims of … 67 …! L.177: Scilab cumprod() does not work when dim input argument is greater than number of dims of … 68 …! L.179: Scilab cumprod() does not work when dim input argument is greater than number of dims of … 69 …! L.181: Scilab cumprod() does not work when dim input argument is greater than number of dims of … 70 …! L.183: Scilab cumprod() does not work when dim input argument is greater than number of dims of … 71 …! L.185: Scilab cumprod() does not work when dim input argument is greater than number of dims of … [all …]
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/overloading/macros/ |
H A D | %r_cumprod.sci | 15 // If we call cumprod with 3 arguments, the third is optional for rational matrices. 32 … error(msprintf(_("%s: Wrong number of input argument(s): %d to %d expected.\n"),"cumprod", 1, 3)); 39 … error(msprintf(_("%s: Wrong size for input argument #%d: A scalar expected.\n"),"cumprod", 2)) 42 …r(msprintf(_("%s: Wrong value for input argument #%d: Integer >= %d expected.\n"),"cumprod", 2, 1)) 46 … error(msprintf(_("%s: Wrong size for input argument #%d: string expected.\n"),"cumprod",2)) 50 "cumprod",2,"""*"",""r"",""c"",""m""")) 56 …ror(msprintf(_("%s: Wrong type for input argument #%d: string or scalar expected.\n"),"cumprod",2)) 60 a=rlist(cumprod(a.num),cumprod(a.den),a.dt) 65 a=rlist(cumprod(a.num,d),cumprod(a.den,d),a.dt)
|
/dports/math/armadillo/armadillo-10.7.1/tests2/ |
H A D | fn_cumprod.cpp | 32 REQUIRE( accu(abs(cumprod(a) - c )) == Approx(0.0).margin(0.001) ); 33 REQUIRE( accu(abs(cumprod(b) - c.t())) == Approx(0.0).margin(0.001) ); 35 REQUIRE_THROWS( b = cumprod(a) ); 64 REQUIRE( accu(abs(cumprod(A) - B)) == Approx(0.0).margin(0.001) ); 65 REQUIRE( accu(abs(cumprod(A,0) - B)) == Approx(0.0).margin(0.001) ); 66 REQUIRE( accu(abs(cumprod(A,1) - C)) == Approx(0.0).margin(0.001) );
|
/dports/science/dynare/dynare-4.6.4/matlab/modules/dseries/src/@dseries/ |
H A D | cumprod_.m | 3 % Overloads matlab's cumprod function for dseries objects. 56 o.data = cumprod(o.data); 59 o.data(idx:end,:) = cumprod(o.data(idx:end,:)); 66 o.ops(i) = {['cumprod(' o.name{i} ')']}; 68 o.ops(i) = {['cumprod(' o.ops{i} ')']}; 101 error('dseries::cumprod: Second input argument must be a dates object!') 128 error('dseries::cumprod: Wrong number of input arguments!') 150 %$ t(2) = isequal(ts.data, cumprod(A)); 152 %$ t(4) = isequal(ts.ops{1}, 'cumprod(A1)'); 177 %$ t(2) = isequal(ts.data, cumprod(A)); [all …]
|
H A D | cumprod.m | 1 function o = cumprod(varargin) % --*-- Unitary tests --*-- function 3 % Overloads matlab's cumprod function for dseries objects. 54 %$ ds = cumprod(ts); 61 %$ t(2) = isequal(ds.data, cumprod(A)); 63 %$ t(4) = isequal(ds.ops{1}, 'cumprod(A1)'); 85 %$ ts3 = ts1.cumprod(dates('3Y'),ts2);
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/core/tests/unit_tests/ |
H A D | matelm.tst | 806 //cumprod 866 assert_checkequal(cumprod(a), []); 867 assert_checkequal(cumprod([]), []); 868 assert_checkequal(cumprod(a, 1), []); 869 assert_checkequal(cumprod([], 1), []); 872 assert_checkequal(cumprod(a,n), []); 873 assert_checkequal(cumprod([], n), []); 878 assert_checkequal(cumprod(a,n), []); 881 assert_checkequal(cumprod(a,2), []); 885 assert_checkequal(cumprod(a,n), []); [all …]
|
H A D | matelm.dia.ref | 648 //cumprod 696 assert_checkequal(cumprod(a), []); 697 assert_checkequal(cumprod([]), []); 698 assert_checkequal(cumprod(a, 1), []); 699 assert_checkequal(cumprod([], 1), []); 701 assert_checkequal(cumprod(a,n), []); 702 assert_checkequal(cumprod([], n), []); 706 assert_checkequal(cumprod(a,n), []); 708 assert_checkequal(cumprod(a,2), []); 711 assert_checkequal(cumprod(a,n), []); [all …]
|
/dports/math/R-cran-matrixStats/matrixStats/inst/benchmarking/ |
H A D | colRowCumprods.md.rsp | 18 * apply() + cumprod() 46 "apply+cumprod" = apply(X, MARGIN = 2L, FUN = cumprod), 55 "apply+cumprod" = apply(X, MARGIN = 1L, FUN = cumprod),
|
/dports/math/armadillo/armadillo-10.7.1/include/armadillo_bits/ |
H A D | fn_cumprod.hpp | 33 cumprod(const T1& X) in cumprod() function 51 cumprod(const T1& X) in cumprod() function 69 cumprod(const T1& X, const uword dim) in cumprod() function 82 cumprod(const T& x) in cumprod() function
|
/dports/math/R-cran-RcppArmadillo/RcppArmadillo/inst/include/armadillo_bits/ |
H A D | fn_cumprod.hpp | 33 cumprod(const T1& X) in cumprod() function 51 cumprod(const T1& X) in cumprod() function 69 cumprod(const T1& X, const uword dim) in cumprod() function 82 cumprod(const T& x) in cumprod() function
|
/dports/math/py-theano/Theano-1.0.5/theano/compile/tests/ |
H A D | test_ops.py | 29 def cumprod(x): function 30 return np.cumprod(x) 32 fn = function([x], cumprod(x)) 46 return np.cumprod(x) + y 66 return np.cumprod(x) + y
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/m2sci/macros/compat_functions/ |
H A D | mtlb_cumprod.sci | 14 // Emulation function for Matlab cumprod() 20 r=cumprod(a) 22 r=cumprod(a,firstnonsingleton(A)) 26 B=cumprod(A,dim)
|