| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
| |
* Add .contains() method for associated containers
* Add string::starts_with and ends_with methods
* Add missing C++17/20 numeric functions
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Add `uniform_int_distribution` to `libcpp`.
* Add `uniform_real_distribution` to `libcpp`.
* Add `bernoulli_distribution` to `libcpp`.
* Add `binomial_distribution` to `libcpp`.
* Add `geometric_distribution` to `libcpp`.
* Add range tests for distributions.
* Add `negative_binomial_distribution` to `libcpp`.
* Add `poisson_distribution` to `libcpp`.
* Add `exponential_distribution` to `libcpp`.
* Add `gamma_distribution` to `libcpp`.
* Add `weibull_distribution` to `libcpp`.
* Add `extreme_value_distribution` to `libcpp`.
* Add `normal_distribution` to `libcpp`.
* Add `lognormal_distribution` to `libcpp`.
* Add `chi_squared_distribution` to `libcpp`.
* Add `cauchy_distribution` to `libcpp`.
* Add `fisher_f_distribution` to `libcpp`.
* Increase `dof` for `fisher_f_distribution_test`.
* Add `student_t_distribution` to `libcpp`.
* Add docstring to `sample_or_range` helper function.
* Fix distribution range tests for different OSs.
* Show sample values and proba. of test passing.
* Test distribution call without checking values.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
behaviour. (GH-4528)
The current implementation of iterators had the following bugs:
- it was possible to assign `const_iterator` to `iterator`
- it was not possible to assign `iterator` to `const_iterator`
- operator* did not always return `value_type` e.g. for
`const_iterator` this often returned `T&` instead of
`const value_type&`
- increment operators always returned `iterators`. This caused
e.g. `const_iterator + 1` to result in a `iterator` instead of
a `const_iterator`
- comparision operators could not be used to compare
`iterators` and `const_iterators` (`const_iterator == iterator`)
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This definition could be improved when variadic templates are supported at some point, but since the types are not really relevant for Cython it should be fine to use C variadics here (especially since I do not expect that variadic templates will be supported anytime soon).
Closes https://github.com/cython/cython/issues/2171
|
|
|
| |
Closes https://github.com/cython/cython/issues/3293
|
|
|
| |
Disable on macOS due to bug in Apple clang++. See https://github.com/cython/cython/pull/4448#issuecomment-964405071
|
|
|
|
|
| |
library (GH-4448)
Tests are disabled on macOS+clang (failing with Apple clang++ 12) but appear to work fine on gcc-11.
|
|
|
|
| |
Some overloaded methods are commented out as they currently result in incorrect C++ code.
See https://github.com/cython/cython/pull/4423#issuecomment-953685310
|
|
|
|
| |
Fix insert return types, constness and input iterator templates.
Fix typing in iterators and add constructor to allow explicit conversion from iterator to const_iterator.
|
| |
|
|
|
|
| |
* add swap() to libcpp.string
* add load_factor() to libcpp.unordered_map and libcpp.unordered_set
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
methods (GH-4276)
Closes https://github.com/cython/cython/issues/4268
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
methods (GH-4276)
Closes https://github.com/cython/cython/issues/4268
|
| |
| |
| |
| |
| | |
* Add execution policy overloads to all algorithms
* Add update_cpp17_extension for cpp17 tests
* Fix type deduction logic for forwarding reference argument
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
optional arguments).
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Add is_partitioned and partition to libcpp.algorithm
* Add is_sorted and is_sorted_until to libcpp.algorithm
* Add partition_copy, stable_partition, and partition_point to libcpp.algorithm
* Move tests for sort and partial_sort into cpp_stl_algo_sorting_ops, add greater to libcpp.functional
* Add partial_sort_copy to libcpp.algorithm
* Add stable_sort to libcpp.algorithm
* Add nth_element to libcpp.algorithm
* Add missing except specifiers in libcpp.algorithm
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Also fix tests in libcpp_algo (how did this ever work?)
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Rearrange libcpp.algorithm to match cppreference and reformat
* Add all_of, any_of and none_of to libcpp.algorithm
* Add count and count_if to libcpp.algorithm
* Add string(first, last) constructor to libcpp.string
* Add the simplest overload of mismatch to libcpp.algorithm
* Add find, find_if, and find_if_not to libcpp.algorithm
* Add find_end to libcpp.algorithm and distance to libcpp.iterator
* Add find_first_of to libcpp.algorithm
* Add adjacent_find to libcpp.algorithm
* Add search to libcpp.algorithm
* Add search_n to libcpp.algorithm
* Add exception specifiers in libcpp.algorithm
* Add predicated overload of find_end, search and search_n to libcpp.algorithm
|
|\
| |
| | |
Improve C++11 containers
|
| |
| |
| |
| |
| | |
- The declaration have to be the reverse of C++
as the iterator class matches both iterator and const_iterator classes
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
- bucket API
- load_factor API
- erase and insert with begin/end iterators
|
| |
| |
| |
| |
| |
| | |
- bucket API
- load_factor API
- erase and insert with begin/end iterators
|
| | |
|
| | |
|
| | |
|
| | |
|