OKlibrary  0.2.1.6
Lists.mac
Go to the documentation of this file.
00001 /* Oliver Kullmann, 20.2.2008 (Swansea) */
00002 /* Copyright 2008, 2009, 2010, 2011, 2012, 2013 Oliver Kullmann
00003 This file is part of the OKlibrary. OKlibrary is free software; you can redistribute
00004 it and/or modify it under the terms of the GNU General Public License as published by
00005 the Free Software Foundation and included in this library; either version 3 of the
00006 License, or any later version. */
00007 
00021 oklib_include("OKlib/ComputerAlgebra/DataStructures/Lisp/Lists.mac")$
00022 oklib_include("OKlib/ComputerAlgebra/DataStructures/Lisp/tests/Lists.mac")$
00023 
00024 /* ***************
00025    * List access *
00026    ***************
00027 */
00028 
00029 okltest_firste(firste);
00030 okltest_seconde(seconde);
00031 okltest_thirde(thirde);
00032 okltest_fourthe(fourthe);
00033 
00034 /* ***********************
00035    * Apply-functionality *
00036    ***********************
00037 */
00038 
00039 okltest_uaapply(uaapply);
00040 
00041 okltest_lappend(lappend);
00042 
00043 /* *********************
00044    * Map-functionality *
00045    *********************
00046 */
00047 
00048 okltest_map2(map2);
00049 
00050 /* *******************************
00051    * Testing properties of lists *
00052    *******************************
00053 */
00054 
00055 okltest_every_s(every_s);
00056 okltest_everynary_s(everynary_s);
00057 okltest_some_s(some_s);
00058 okltest_somenary_s(somenary_s);
00059 
00060 okltest_listnorep_p(listnorep_p);
00061 okltest_lconstant_p(lconstant_p);
00062 
00063 okltest_strictascending_p(strictascending_p);
00064 okltest_strictdescending_p(strictdescending_p);
00065 okltest_ascending_p(ascending_p);
00066 okltest_descending_p(descending_p);
00067 
00068 okltest_prefix_p(prefix_p);
00069 
00070 /* *******************************************
00071    * Summations and products over lists/sets *
00072    *******************************************
00073 */
00074 
00075 okltest_sum_l(sum_l);
00076 okltest_sum_s(sum_s);
00077 okltest_gsum_l(gsum_l);
00078 okltest_gsum_s(gsum_s);
00079 okltest_prod_l(prod_l);
00080 okltest_prod_s(prod_s);
00081 okltest_gprod_l(gprod_l);
00082 okltest_gprod_s(gprod_s);
00083 
00084 /* *************************************
00085    * Finding special elements in lists *
00086    *************************************
00087 */
00088 
00089 okltest_first_smallest_l(first_smallest_l);
00090 okltest_first_smallest_lb_l(first_smallest_lb_l);
00091 
00092 okltest_first_smallest_f_l(first_smallest_f_l);
00093 okltest_first_largest_f_l(first_largest_f_l);
00094 
00095 okltest_smallest_f_l(smallest_f_l);
00096 okltest_largest_f_l(largest_f_l);
00097 
00098 okltest_find_first_l(find_first_l);
00099 okltest_find_firste_l(find_firste_l);
00100 okltest_find_last_l(find_last_l);
00101 okltest_find_laste_l(find_laste_l);
00102 
00103 okltest_elementp_l(elementp_l);
00104 
00105 /* **************************
00106    * Sublist constructions *
00107    **************************
00108 */
00109 
00110 okltest_take_elements(take_elements);
00111 
00112 okltest_sublist_indices_el(sublist_indices_el);
00113 
00114 okltest_remove_element(remove_element);
00115 okltest_remove_elements(remove_elements);
00116 
00117 okltest_sublist_indicator(sublist_indicator);
00118 
00119 okltest_remove_consrep(remove_consrep);
00120 
00121 /* *********************
00122    * List partitioning *
00123    *********************
00124 */
00125 
00126 okltest_partition_elements(partition_elements);
00127 okltest_partition_list(partition_list);
00128 okltest_partition_list(partition_list_epo);
00129 okltest_partition_list_eq(partition_list_eq);
00130 okltest_split_list(split_list);
00131 okltest_split_list_epo(split_list_epo);
00132 
00133 /* **********************
00134    * List constructions *
00135    **********************
00136 */
00137 
00138 okltest_rotate(rotate);
00139 
00140 okltest_stable_unique(stable_unique);
00141 
00142 okltest_interleave_l(interleave_l);
00143 
00144 okltest_paddingfront_l(paddingfront_l);
00145 okltest_paddingback_l(paddingback_l);
00146 
00147 /* *************************
00148    * Random parts of lists *
00149    *************************
00150 */
00151 
00152 /* ************************
00153    * Numerical operations *
00154    ************************
00155 */
00156 
00157 okltest_count_l(count_l);
00158 okltest_countgt_l(countgt_l);
00159 okltest_countlt_l(countlt_l);
00160 okltest_countpred_l(countpred_l);
00161 
00162 okltest_countntconst_l(countntconst_l);
00163 
00164 okltest_size_constintervals_l(size_constintervals_l);
00165 
00166 okltest_Delta_l(Delta_l);
00167 
00168 okltest_count_extremals_l(count_extremals_l);
00169 
00170 okltest_m2l_r(m2l_r);
00171 okltest_transpose_l(transpose_l);
00172 okltest_matrixcolumns(matrixcolumns);
00173 okltest_columns2matrix(columns2matrix);
00174 
00175 /* ***********
00176    * Sorting *
00177    ***********
00178 */
00179 
00180 okltest_sort_length(sort_length);
00181 okltest_sort_length_desc(sort_length_desc);
00182 okltest_sort_length_part(sort_length_part);
00183 okltest_sort_length_desc_part(sort_length_desc_part);
00184 okltest_l2order_p(l2order_p);
00185 
00186