![]() |
NumCpp
2.5.1
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Functions | |
| template<class InputIt , class UnaryPredicate > | |
| bool | all_of (InputIt first, InputIt last, UnaryPredicate p) noexcept |
| template<class InputIt , class UnaryPredicate > | |
| bool | any_of (InputIt first, InputIt last, UnaryPredicate p) noexcept |
| template<class InputIt , class OutputIt > | |
| OutputIt | copy (InputIt first, InputIt last, OutputIt destination) noexcept |
| template<class InputIt , class T > | |
| std::iterator_traits< InputIt >::difference_type | count (InputIt first, InputIt last, const T &value) noexcept |
| template<class InputIt1 , class InputIt2 > | |
| bool | equal (InputIt1 first1, InputIt1 last1, InputIt2 first2) noexcept |
| template<class InputIt1 , class InputIt2 , class BinaryPredicate > | |
| bool | equal (InputIt1 first1, InputIt1 last1, InputIt2 first2, BinaryPredicate p) noexcept |
| template<class ForwardIt , class T > | |
| void | fill (ForwardIt first, ForwardIt last, const T &value) noexcept |
| template<class InputIt , class T > | |
| InputIt | find (InputIt first, InputIt last, const T &value) noexcept |
| template<class InputIt , class UnaryFunction > | |
| void | for_each (InputIt first, InputIt last, UnaryFunction f) |
| template<class ForwardIt > | |
| bool | is_sorted (ForwardIt first, ForwardIt last) noexcept |
| template<class ForwardIt , class Compare > | |
| bool | is_sorted (ForwardIt first, ForwardIt last, Compare comp) noexcept |
| template<class ForwardIt > | |
| ForwardIt | max_element (ForwardIt first, ForwardIt last) noexcept |
| template<class ForwardIt , class Compare > | |
| ForwardIt | max_element (ForwardIt first, ForwardIt last, Compare comp) noexcept |
| template<class ForwardIt > | |
| ForwardIt | min_element (ForwardIt first, ForwardIt last) noexcept |
| template<class ForwardIt , class Compare > | |
| ForwardIt | min_element (ForwardIt first, ForwardIt last, Compare comp) noexcept |
| template<class ForwardIt > | |
| std::pair< ForwardIt, ForwardIt > | minmax_element (ForwardIt first, ForwardIt last) noexcept |
| template<class ForwardIt , class Compare > | |
| std::pair< ForwardIt, ForwardIt > | minmax_element (ForwardIt first, ForwardIt last, Compare comp) noexcept |
| template<class InputIt , class UnaryPredicate > | |
| bool | none_of (InputIt first, InputIt last, UnaryPredicate p) noexcept |
| template<class RandomIt > | |
| void | nth_element (RandomIt first, RandomIt nth, RandomIt last) noexcept |
| template<class RandomIt , class Compare > | |
| void | nth_element (RandomIt first, RandomIt nth, RandomIt last, Compare comp) noexcept |
| template<class ForwardIt , class T > | |
| void | replace (ForwardIt first, ForwardIt last, const T &oldValue, const T &newValue) noexcept |
| template<class BidirIt > | |
| void | reverse (BidirIt first, BidirIt last) noexcept |
| template<class ForwardIt > | |
| void | rotate (ForwardIt first, ForwardIt firstN, ForwardIt last) noexcept |
| template<class InputIt1 , class InputIt2 , class OutputIt > | |
| OutputIt | set_difference (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination) |
| template<class InputIt1 , class InputIt2 , class OutputIt , class Compare > | |
| OutputIt | set_difference (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination, Compare comp) noexcept |
| template<class InputIt1 , class InputIt2 , class OutputIt > | |
| OutputIt | set_intersection (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination) noexcept |
| template<class InputIt1 , class InputIt2 , class OutputIt , class Compare > | |
| OutputIt | set_intersection (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination, Compare comp) noexcept |
| template<class InputIt1 , class InputIt2 , class OutputIt > | |
| OutputIt | set_union (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination) noexcept |
| template<class InputIt1 , class InputIt2 , class OutputIt , class Compare > | |
| OutputIt | set_union (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination, Compare comp) noexcept |
| template<class RandomIt > | |
| void | sort (RandomIt first, RandomIt last) noexcept |
| template<class RandomIt , class Compare > | |
| void | sort (RandomIt first, RandomIt last, Compare comp) noexcept |
| template<class RandomIt > | |
| void | stable_sort (RandomIt first, RandomIt last) noexcept |
| template<class RandomIt , class Compare > | |
| void | stable_sort (RandomIt first, RandomIt last, Compare comp) noexcept |
| template<class InputIt , class OutputIt , class UnaryOperation > | |
| OutputIt | transform (InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction) |
| template<class InputIt1 , class InputIt2 , class OutputIt , class BinaryOperation > | |
| OutputIt | transform (InputIt1 first1, InputIt1 last1, InputIt2 first2, OutputIt destination, BinaryOperation unaryFunction) |
| template<class InputIt , class OutputIt > | |
| constexpr OutputIt | unique_copy (InputIt first, InputIt last, OutputIt destination) noexcept |
| template<class InputIt , class OutputIt , class BinaryPredicate > | |
| constexpr OutputIt | unique_copy (InputIt first, InputIt last, OutputIt destination, BinaryPredicate binaryFunction) noexcept |
|
noexcept |
Tests if all of the elements of a range satisy a predicate
| first | the first iterator of the source |
| last | the last iterator of the source |
| p | unary predicate function |
|
noexcept |
Tests if any of the elements of a range satisy a predicate
| first | the first iterator of the source |
| last | the last iterator of the source |
| p | unary predicate function |
|
noexcept |
Copies from one container to another
| first | the first iterator of the source |
| last | the last iterator of the source |
| destination | the first iterator of the destination |
|
noexcept |
Counts the values in the range
| first | the first iterator of container |
| last | the last iterator of container |
| value | the initial value |
|
noexcept |
Test if two ranges are equal
| first1 | the first iterator of first container |
| last1 | the last iterator of first container |
| first2 | the first iterator of second container |
|
noexcept |
Test if two ranges are equal
| first1 | the first iterator of first container |
| last1 | the last iterator of first container |
| first2 | the first iterator of second container |
| p | binary predicate to compare the elements |
|
noexcept |
Fills the range with the value
| first | the first iterator of the source |
| last | the last iterator of the source |
| value | the function to apply to the input iterators |
|
noexcept |
Returns the first element in the range [first, last) that satisfies specific criteria:
| first | the first iterator of the source |
| last | the last iterator of the source |
| value | the value to find |
| void nc::stl_algorithms::for_each | ( | InputIt | first, |
| InputIt | last, | ||
| UnaryFunction | f | ||
| ) |
Runs the function on each element of the range
| first | the first iterator of the source |
| last | the last iterator of the source |
| f | the function to apply to the input iterators |
|
noexcept |
Returns true if the array is sorted
| first | the first iterator of the source |
| last | the last iterator of the source |
|
noexcept |
Returns true if the array is sorted
| first | the first iterator of the source |
| last | the last iterator of the source |
| comp | comparitor function |
|
noexcept |
Returns the maximum element of the range
| first | the first iterator of the source |
| last | the last iterator of the source |
|
noexcept |
Returns the maximum element of the range
| first | the first iterator of the source |
| last | the last iterator of the source |
| comp | the comparitor function |
|
noexcept |
Returns the minimum element of the range
| first | the first iterator of the source |
| last | the last iterator of the source |
|
noexcept |
Returns the minimum element of the range
| first | the first iterator of the source |
| last | the last iterator of the source |
| comp | the comparitor function |
|
noexcept |
Runs the minimum and maximum elements of the range
| first | the first iterator of the source |
| last | the last iterator of the source |
|
noexcept |
Runs the minimum and maximum elements of the range
| first | the first iterator of the source |
| last | the last iterator of the source |
| comp | the comparitor function |
|
noexcept |
Tests if none of the elements of a range satisy a predicate
| first | the first iterator of the source |
| last | the last iterator of the source |
| p | unary predicate function |
|
noexcept |
Sorts up to the nth element
| first | the first iterator of the range |
| nth | the element that should be sorted |
| last | the last iterator of the range |
|
noexcept |
Sorts up to the nth element
| first | the first iterator of the range |
| nth | the element that should be sorted |
| last | the last iterator of the range |
| comp | the comparitor function |
|
noexcept |
replaces a value in the range with another value
| first | the first iterator of the source |
| last | the last iterator of the source |
| oldValue | the value to replace |
| newValue | the replacement value |
|
noexcept |
reverses the range
| first | the first iterator of the source |
| last | the last iterator of the source |
|
noexcept |
Rotates the elements of a range
| first | the first iterator of the range |
| firstN | the element that should appear at the beginning of the rotated range |
| last | the last iterator of the range |
| OutputIt nc::stl_algorithms::set_difference | ( | InputIt1 | first1, |
| InputIt1 | last1, | ||
| InputIt2 | first2, | ||
| InputIt2 | last2, | ||
| OutputIt | destination | ||
| ) |
finds the difference of two ranges
| first1 | the first iterator of the source |
| last1 | the last iterator of the source |
| first2 | the first iterator of the second source |
| last2 | the first iterator of the destination |
| destination | the function to apply to the input iterators |
|
noexcept |
finds the difference of two ranges
| first1 | the first iterator of the source |
| last1 | the last iterator of the source |
| first2 | the first iterator of the second source |
| last2 | the first iterator of the destination |
| destination | the function to apply to the input iterators |
| comp | comparitor function |
|
noexcept |
finds the intersection of two ranges
| first1 | the first iterator of the source |
| last1 | the last iterator of the source |
| first2 | the first iterator of the second source |
| last2 | the first iterator of the destination |
| destination | the function to apply to the input iterators |
|
noexcept |
finds the intersection of two ranges
| first1 | the first iterator of the source |
| last1 | the last iterator of the source |
| first2 | the first iterator of the second source |
| last2 | the first iterator of the destination |
| destination | the function to apply to the input iterators |
| comp | comparitor function |
|
noexcept |
finds the union of two ranges
| first1 | the first iterator of the source |
| last1 | the last iterator of the source |
| first2 | the first iterator of the second source |
| last2 | the first iterator of the destination |
| destination | the function to apply to the input iterators |
|
noexcept |
finds the union of two ranges
| first1 | the first iterator of the source |
| last1 | the last iterator of the source |
| first2 | the first iterator of the second source |
| last2 | the first iterator of the destination |
| destination | the function to apply to the input iterators |
| comp | comparitor function |
|
noexcept |
Sorts the range
| first | the first iterator of the source |
| last | the last iterator of the source |
|
noexcept |
Sorts the range
| first | the first iterator of the source |
| last | the last iterator of the source |
| comp | the comparitor function |
|
noexcept |
Sorts the range preserving order
| first | the first iterator of the source |
| last | the last iterator of the source |
|
noexcept |
Sorts the range preserving order
| first | the first iterator of the source |
| last | the last iterator of the source |
| comp | the comparitor function |
| OutputIt nc::stl_algorithms::transform | ( | InputIt | first, |
| InputIt | last, | ||
| OutputIt | destination, | ||
| UnaryOperation | unaryFunction | ||
| ) |
Transforms the elements of the range
| first | the first iterator of the source |
| last | the last iterator of the source |
| destination | the first iterator of the destination |
| unaryFunction | the function to apply to the input iterators |
| OutputIt nc::stl_algorithms::transform | ( | InputIt1 | first1, |
| InputIt1 | last1, | ||
| InputIt2 | first2, | ||
| OutputIt | destination, | ||
| BinaryOperation | unaryFunction | ||
| ) |
Transforms the elements of the range
| first1 | the first iterator of the source |
| last1 | the last iterator of the source |
| first2 | the first iterator of the second source |
| destination | the first iterator of the destination |
| unaryFunction | the function to apply to the input iterators |
|
constexprnoexcept |
Copies the unique elements of a range
| first | the first iterator of the source |
| last | the last iterator of the source |
| destination | the first iterator of the destination |
|
constexprnoexcept |
Copies the unique elements of a range
| first | the first iterator of the source |
| last | the last iterator of the source |
| destination | the first iterator of the destination |
| binaryFunction | the function to apply to the input iterators |