MCPcopy Create free account

hub / github.com/KaisenAmin/c_std / functions

Functions2,651 in github.com/KaisenAmin/c_std

Functionalgorithm_copy_if
* @brief Copies elements from a source array to a destination array if they satisfy a predicate function. * * @param first Pointer to the start of t
algorithm/algorithm.c:1319
Functionalgorithm_copy_n
* @brief Copies the first n elements from a source array to a destination array. * * @param first Pointer to the start of the source array. * @para
algorithm/algorithm.c:1346
Functionalgorithm_count
* @brief Counts the number of occurrences of a value in a range. * * This function iterates over the elements in the range `[base, base + num * size
algorithm/algorithm.c:790
Functionalgorithm_count_if
* @brief Counts the number of elements in a range that satisfy a predicate function. * * This function iterates over the elements in the range `[bas
algorithm/algorithm.c:821
Functionalgorithm_end
* @brief Returns a pointer to one past the last element of an array. * * @param base Pointer to the start of the array. * @param num Number of elem
algorithm/algorithm.c:2239
Functionalgorithm_equal
* @brief Checks if two ranges are equal. * * This function compares two ranges `[base1, base1 + num1 * size1)` and `[base2, base2 + num2 * size2)`
algorithm/algorithm.c:1064
Functionalgorithm_equal_range
* @brief Finds the range of elements that are equal to a specified value in a sorted range. * * This function returns a `Pair` representing the rang
algorithm/algorithm.c:1383
Functionalgorithm_fill
* @brief Fills a range with a specified value. * * @param first Pointer to the start of the range. * @param last Pointer to the end of the range.
algorithm/algorithm.c:746
Functionalgorithm_fill_n
* @brief Fills the first n elements of a range with a specified value. * * @param first Pointer to the start of the range. * @param n Number of ele
algorithm/algorithm.c:764
Functionalgorithm_find
* @brief Finds the first element in a range that matches a specified value. * * This function searches for the first element in the range `[base, ba
algorithm/algorithm.c:292
Functionalgorithm_find_end
* @brief Finds the last occurrence of a subsequence in a range. * * This function searches for the last occurrence of the sequence `[base2, base2 +
algorithm/algorithm.c:383
Functionalgorithm_find_first_of
* @brief Finds the first element in a range that matches any element in another range. * * This function searches for the first element in the range
algorithm/algorithm.c:442
Functionalgorithm_find_if
* @brief Finds the first element in a range that satisfies a predicate. * * This function searches for the first element in the range `[base, base +
algorithm/algorithm.c:321
Functionalgorithm_find_if_not
* @brief Finds the first element in a range that does not satisfy a predicate. * * This function searches for the first element in the range `[base,
algorithm/algorithm.c:350
Functionalgorithm_for_each
* @brief Applies a function to each element in an array. * * @param base Pointer to the start of the array. * @param num Number of elements in the
algorithm/algorithm.c:586
Functionalgorithm_generate
* @brief Generates values for a range using a generator function. * * @param first Pointer to the start of the range. * @param last Pointer to the
algorithm/algorithm.c:1249
Functionalgorithm_generate_n
* @brief Generates values for the first n elements of a range using a generator function. * * @param first Pointer to the start of the range. * @pa
algorithm/algorithm.c:1271
Functionalgorithm_inc_char
algorithm/algorithm.c:2338
Functionalgorithm_inc_double
algorithm/algorithm.c:2388
Functionalgorithm_inc_float
algorithm/algorithm.c:2383
Functionalgorithm_inc_int
algorithm/algorithm.c:2333
Functionalgorithm_inc_int16
algorithm/algorithm.c:2403
Functionalgorithm_inc_int32
algorithm/algorithm.c:2408
Functionalgorithm_inc_int64
algorithm/algorithm.c:2413
Functionalgorithm_inc_int8
algorithm/algorithm.c:2398
Functionalgorithm_inc_long
algorithm/algorithm.c:2348
Functionalgorithm_inc_long_double
algorithm/algorithm.c:2393
Functionalgorithm_inc_long_long
algorithm/algorithm.c:2353
Functionalgorithm_inc_short
algorithm/algorithm.c:2343
Functionalgorithm_inc_size_t
algorithm/algorithm.c:2438
Functionalgorithm_inc_uchar
algorithm/algorithm.c:2358
Functionalgorithm_inc_uint
algorithm/algorithm.c:2368
Functionalgorithm_inc_uint16
algorithm/algorithm.c:2423
Functionalgorithm_inc_uint32
algorithm/algorithm.c:2428
Functionalgorithm_inc_uint64
algorithm/algorithm.c:2433
Functionalgorithm_inc_uint8
algorithm/algorithm.c:2418
Functionalgorithm_inc_ulong
algorithm/algorithm.c:2373
Functionalgorithm_inc_ulong_long
algorithm/algorithm.c:2378
Functionalgorithm_inc_ushort
algorithm/algorithm.c:2363
Functionalgorithm_includes
* @brief Determines if a sorted range includes all the elements of another sorted range. * * This function checks if all elements of the sorted rang
algorithm/algorithm.c:1414
Functionalgorithm_inplace_merge
* @brief Merges two sorted halves of an array in place. * * @param base Pointer to the start of the array. * @param middle Index of the middle elem
algorithm/algorithm.c:1749
Functionalgorithm_iota
* @brief Fill a range with `start, ++start, ++start, ...` for any type. * * Genuinely generic: it doesn't care what `T` is. The caller supplies the
algorithm/algorithm.c:2288
Functionalgorithm_is_permutation
* @brief Checks if two arrays are permutations of each other. * * This function checks whether the elements of the two arrays `base1` and `base2` ar
algorithm/algorithm.c:1888
Functionalgorithm_is_sorted
* @brief Checks if the elements in a range are sorted in non-decreasing order. * * This function determines whether the elements in the array pointe
algorithm/algorithm.c:1576
Functionalgorithm_is_sorted_until
* @brief Finds the first position in a range where the elements are no longer sorted. * * This function searches through the array pointed to by `ba
algorithm/algorithm.c:1614
Functionalgorithm_max_element
* @brief Finds the maximum element in a range. * * This function iterates over the elements in the range `[base, base + num * size)` to find the max
algorithm/algorithm.c:521
Functionalgorithm_merge
* @brief Merges two sorted arrays into a single sorted array. * * @param base1 Pointer to the first sorted array. * @param num1 Number of elements
algorithm/algorithm.c:1706
Functionalgorithm_min_element
* @brief Finds the minimum element in a range. * * This function iterates over the elements in the range `[base, base + num * size)` to find the min
algorithm/algorithm.c:557
Functionalgorithm_mismatch
* @brief Finds the first position where two ranges differ. * * This function compares two arrays element by element and returns the first position w
algorithm/algorithm.c:1843
Functionalgorithm_next_permutation
* @brief Generates the next lexicographical permutation of a range. * * This function rearranges the elements in the range `[first, last)` into the
algorithm/algorithm.c:1101
Functionalgorithm_none_of
* @brief Checks if none of the elements in a range satisfy a predicate. * * This function returns `true` if the predicate `pred` returns `false` for
algorithm/algorithm.c:722
Functionalgorithm_partition
* @brief Partitions a range of elements based on a predicate function. * * This function rearranges the elements in the range `[base, base + num * s
algorithm/algorithm.c:1204
Functionalgorithm_prev_permutation
* @brief Generates the previous lexicographical permutation of a range. * * This function rearranges the elements in the range `[first, last)` into
algorithm/algorithm.c:1153
Functionalgorithm_reduce
* @brief Reduces a range of elements to a single value using a specified binary operation. * * This function applies the binary operation `op` to ea
algorithm/algorithm.c:991
Functionalgorithm_remove
* @brief Removes elements that match a specified value from an array. * * This function removes all elements from the array `base` that match the va
algorithm/algorithm.c:2046
Functionalgorithm_remove_copy
* @brief Copies elements from a source array to a destination array, excluding elements that match a given value. * * @param source Pointer to the s
algorithm/algorithm.c:2077
Functionalgorithm_remove_copy_if
* Removes elements from the source array based on a given predicate function and copies the remaining elements to the result array. * * @param sourc
algorithm/algorithm.c:2107
Functionalgorithm_replace
* Replaces occurrences of a value in an array. * * This function replaces occurrences of the value `old_val` with the value `new_val` in the array `
algorithm/algorithm.c:2147
Functionalgorithm_replace_if
* Replaces elements in an array based on a given predicate function. * * This function iterates over the elements in the array pointed to by `base`
algorithm/algorithm.c:2184
Functionalgorithm_rotate
* @brief Rotates elements in a range. * * @param first Pointer to the start of the range. * @param middle Pointer to the middle of the range. * @p
algorithm/algorithm.c:1642
Functionalgorithm_rotate_copy
* @brief Rotates elements in a range and copies them to a destination array. * * @param first Pointer to the start of the range. * @param middle Po
algorithm/algorithm.c:1672
Functionalgorithm_search
* @brief Searches for the first occurrence of a sequence within another sequence. * * This function searches for the first occurrence of the sequenc
algorithm/algorithm.c:1952
Functionalgorithm_search_n
* @brief Searches for a sequence of identical elements within a range. * * This function searches for the first occurrence of a sequence of `count`
algorithm/algorithm.c:2004
Functionalgorithm_shuffle
* @brief Randomly shuffles elements in an array. * * @param base Pointer to the start of the array. * @param num Number of elements in the array.
algorithm/algorithm.c:846
Functionalgorithm_stable_sort
* @brief Sorts an array using a stable merge sort algorithm. * * @param base Pointer to the start of the array. * @param num Number of elements in
algorithm/algorithm.c:214
Functionalgorithm_swap_ranges
* @brief Swaps ranges of elements between two arrays. * * @param first1 Pointer to the start of the first array. * @param first2 Pointer to the sta
algorithm/algorithm.c:1546
Functionalgorithm_transform
* @brief Transforms each element in an array and stores the result in another array. * * @param base Pointer to the start of the input array. * @pa
algorithm/algorithm.c:962
Functionalgorithm_unique
* @brief Removes consecutive duplicate elements from a sorted array. * * This function removes consecutive duplicate elements from a sorted array `b
algorithm/algorithm.c:1022
Functionalgorithm_unique_copy
* @brief Copies unique elements from a sorted range to a new range. * * This function copies unique elements from the sorted array `first` to the ar
algorithm/algorithm.c:1456
Functionbigfloat_abs
* @brief Returns the absolute value of a BigFloat. * @param a Pointer to the BigFloat. * @return A new BigFloat representing |a|, or NULL on error.
bigfloat/bigfloat.c:445
Functionbigfloat_add
* @brief Adds two BigFloat numbers. * @param a Pointer to the first BigFloat. * @param b Pointer to the second BigFloat. * @return Pointer to a new
bigfloat/bigfloat.c:89
Functionbigfloat_cbrt
* @brief Computes the cube root of a BigFloat. * @param a Pointer to the BigFloat. * @return A new BigFloat representing cbrt(a), or NULL on error.
bigfloat/bigfloat.c:679
Functionbigfloat_ceil
* @brief Computes the ceiling of a BigFloat. * @param a Pointer to the BigFloat. * @return A new BigFloat representing ceil(a), or NULL on error. *
bigfloat/bigfloat.c:511
Functionbigfloat_compare
* @brief Compares two BigFloats. * @param a Pointer to the first BigFloat. * @param b Pointer to the second BigFloat. * @return * - `-1` if
bigfloat/bigfloat.c:353
Functionbigfloat_copy
* @brief Creates an exact copy of a BigFloat. * * The BigFloat counterpart to bigint_copy. The new value carries the SAME * precision as @p src, so
bigfloat/bigfloat.c:830
Functionbigfloat_divide
* @brief Divides two BigFloat numbers. * @param a Pointer to the first BigFloat (numerator). * @param b Pointer to the second BigFloat (denominator)
bigfloat/bigfloat.c:158
Functionbigfloat_erf
* @brief Computes the error function (erf) of a BigFloat. * * @param a Pointer to the input BigFloat. * @return Pointer to a new BigFloat containin
bigfloat/bigfloat.c:778
Functionbigfloat_exp
* @brief Computes the exponential function (e^a) of a BigFloat. * @param a Pointer to the BigFloat. * @return Pointer to a new BigFloat representing
bigfloat/bigfloat.c:261
Functionbigfloat_exp2
* @brief Computes 2^a (exponential function with base 2). * @param a Pointer to the BigFloat. * @return A new BigFloat representing 2^a, or NULL on
bigfloat/bigfloat.c:635
Functionbigfloat_expm1
* @brief Computes exp(a) - 1 with high precision. * * @param a Pointer to the input BigFloat. * @return Pointer to a new BigFloat containing exp(a)
bigfloat/bigfloat.c:802
Functionbigfloat_floor
* @brief Computes the floor of a BigFloat. * @param a Pointer to the BigFloat. * @return A new BigFloat representing the floor(a), or NULL on error.
bigfloat/bigfloat.c:489
Functionbigfloat_fmod
* @brief Computes the floating-point remainder of division (a % b). * @param a Pointer to the first BigFloat. * @param b Pointer to the second BigFl
bigfloat/bigfloat.c:725
Functionbigfloat_from_double
* @brief Creates a BigFloat from a double. * @param value The double value. * @return Pointer to the new BigFloat. */
bigfloat/bigfloat.c:57
Functionbigfloat_from_string
* @brief Creates a BigFloat from a string. * @param str A pointer to the string representation. * @return Pointer to the new BigFloat, or NULL on er
bigfloat/bigfloat.c:31
Functionbigfloat_hypot
* @brief Computes the Euclidean norm (hypotenuse) of two BigFloat numbers. * @param a Pointer to the first BigFloat. * @param b Pointer to the secon
bigfloat/bigfloat.c:702
Functionbigfloat_is_finite
* @brief Checks whether a BigFloat is finite (an ordinary number). * * Returns true only for ordinary values — neither NaN nor infinite. Use it to
bigfloat/bigfloat.c:904
Functionbigfloat_is_inf
* @brief Checks whether a BigFloat is +/- infinity. * * @param a Pointer to the BigFloat. * @return true if @p a is infinite; false otherwise (incl
bigfloat/bigfloat.c:886
Functionbigfloat_is_nan
* @brief Checks whether a BigFloat is NaN (not a number). * * @param a Pointer to the BigFloat. * @return true if @p a is NaN; false otherwise (inc
bigfloat/bigfloat.c:872
Functionbigfloat_lgamma
* @brief Computes the logarithm of the absolute value of the gamma function of a BigFloat. * * @param a Pointer to the input BigFloat. * @return Po
bigfloat/bigfloat.c:754
Functionbigfloat_log
* @brief Computes the natural logarithm (ln) of a BigFloat. * @param a Pointer to the BigFloat. * @return Pointer to a new BigFloat representing ln(
bigfloat/bigfloat.c:234
Functionbigfloat_log10
* @brief Computes the base-10 logarithm of a BigFloat. * @param a Pointer to the BigFloat. * @return A new BigFloat representing log10(a), or NULL i
bigfloat/bigfloat.c:657
Functionbigfloat_mod
* @brief Computes the remainder of division (a mod b). * @param a Pointer to the first BigFloat. * @param b Pointer to the second BigFloat. * @retu
bigfloat/bigfloat.c:605
Functionbigfloat_multiply
* @brief Multiplies two BigFloat numbers. * @param a Pointer to the first BigFloat. * @param b Pointer to the second BigFloat. * @return Pointer to
bigfloat/bigfloat.c:135
Functionbigfloat_negate
* @brief Negates a BigFloat (multiplies it by -1). * @param a Pointer to the BigFloat. * @return A new BigFloat representing -a, or NULL on error.
bigfloat/bigfloat.c:467
Functionbigfloat_pow
* @brief Computes the power of a BigFloat raised to another BigFloat. * @param base Pointer to the base BigFloat. * @param exponent Pointer to the e
bigfloat/bigfloat.c:212
Functionbigfloat_reciprocal
* @brief Computes the reciprocal (1 / a) of a BigFloat. * @param a Pointer to the BigFloat. * @return A new BigFloat representing 1 / a, or NULL if
bigfloat/bigfloat.c:577
Functionbigfloat_round
* @brief Rounds a BigFloat to the nearest integer. * @param a Pointer to the BigFloat. * @return A new BigFloat representing round(a), or NULL on er
bigfloat/bigfloat.c:533
Functionbigfloat_sqrt
* @brief Computes the square root of a BigFloat. * @param a Pointer to the BigFloat. * @return Pointer to a new BigFloat representing sqrt(a), or NU
bigfloat/bigfloat.c:184
Functionbigfloat_subtract
* @brief Subtracts two BigFloat numbers. * @param a Pointer to the first BigFloat. * @param b Pointer to the second BigFloat. * @return Pointer to
bigfloat/bigfloat.c:112
Functionbigfloat_to_double
* @brief Converts a BigFloat to a native double. * * The inverse of bigfloat_from_double: rounds the high-precision value to the * nearest represen
bigfloat/bigfloat.c:856
← previousnext →901–1,000 of 2,651, ranked by callers