Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KaisenAmin/c_std
/ functions
Functions
2,651 in github.com/KaisenAmin/c_std
⨍
Functions
2,651
◇
Types & classes
138
Function
matrix_is_positive_definite
* @brief Checks if a matrix is positive definite. * * This function verifies if a given matrix is positive definite. For a matrix to be positive def
matrix/matrix.c:6477
Function
matrix_is_row
* @brief Checks if a matrix is a row vector. * * A row vector is a matrix with only one row and one or more columns. * * @param matrix The matrix
matrix/matrix.c:2814
Function
matrix_is_skew_symmetric
* @brief Checks if a matrix is skew-symmetric. * * A matrix is skew-symmetric if it is equal to the negative of its transpose, meaning * the eleme
matrix/matrix.c:5072
Function
matrix_is_sparse
* @brief Determines if a matrix is sparse. * * A matrix is considered sparse if a significant portion of its elements are zero. * This function cal
matrix/matrix.c:9738
Function
matrix_is_toeplitz
* @brief Checks if a matrix is a Toeplitz matrix. * * A Toeplitz matrix is a matrix in which each descending diagonal from left to right is constant
matrix/matrix.c:5840
Function
matrix_is_upper_triangular
* @brief Checks if a matrix is upper triangular. * * A matrix is upper triangular if all the elements below the main diagonal are zero. * This fun
matrix/matrix.c:5001
Function
matrix_isfinite
* @brief Builds a 1/0 mask of the finite positions in a matrix. * * The C analogue of NumPy's `numpy.isfinite(M)`: each element becomes `1.0` * whe
matrix/matrix.c:2052
Function
matrix_isinf
* @brief Builds a 1/0 mask of the infinite positions in a matrix. * * The C analogue of NumPy's `numpy.isinf(M)`: each element becomes `1.0` where
matrix/matrix.c:2018
Function
matrix_isnan
* @brief Builds a 1/0 mask of the NaN positions in a matrix. * * The C analogue of NumPy's `numpy.isnan(M)`: each element becomes `1.0` where * the
matrix/matrix.c:1984
Function
matrix_isneginf
* @brief Tests element-wise for negative infinity. * * The C analogue of NumPy's `numpy.isneginf(x)`: returns `1.0` where an element * is `-inf` an
matrix/matrix.c:11516
Function
matrix_isposinf
* @brief Tests element-wise for positive infinity. * * The C analogue of NumPy's `numpy.isposinf(x)`: returns `1.0` where an element * is `+inf` an
matrix/matrix.c:11489
Function
matrix_kronecker_product
* @brief Computes the Kronecker product of two matrices. * * The Kronecker product is a block matrix formed by multiplying each element of the first
matrix/matrix.c:5617
Function
matrix_l1_norm
* @brief Computes the L1 norm of a matrix. * * The L1 norm, also known as the maximum column sum norm, is calculated as the maximum of the sums of a
matrix/matrix.c:6337
Function
matrix_lcm
* @brief Computes the element-wise least common multiple. * * The C analogue of NumPy's `numpy.lcm(a, b)`: each element is treated as an * integer
matrix/matrix.c:10834
Function
matrix_leslie
* @brief Creates a Leslie matrix using fecundity and survival coefficients. * * A Leslie matrix is a type of matrix used in population ecology to mo
matrix/matrix.c:9444
Function
matrix_less
* @brief Element-wise "less than" comparison of two matrices. * * The C analogue of NumPy's `numpy.less(A, B)` (`A < B`): each element becomes * `1
matrix/matrix.c:2202
Function
matrix_less_equal
* @brief Element-wise "less than or equal" comparison of two matrices. * * The C analogue of NumPy's `numpy.less_equal(A, B)` (`A <= B`): each eleme
matrix/matrix.c:2241
Function
matrix_linspace
* @brief Builds a row vector of evenly spaced samples over a closed interval. * * The C analogue of NumPy's `numpy.linspace(start, stop, num)` with
matrix/matrix.c:11753
Function
matrix_log
* @brief Computes the element-wise natural logarithm of a matrix. * * The C analogue of NumPy's `numpy.log(M)`: every element becomes `ln(x)`. The
matrix/matrix.c:1126
Function
matrix_log10
* @brief Computes the element-wise base-10 logarithm of a matrix. * * The C analogue of NumPy's `numpy.log10(M)`: every element becomes `log10(x)`.
matrix/matrix.c:1162
Function
matrix_log1p
* @brief Computes the element-wise `ln(1 + x)` of a matrix. * * The C analogue of NumPy's `numpy.log1p(M)`: every element becomes `ln(1 + x)`, * co
matrix/matrix.c:1454
Function
matrix_log2
* @brief Computes the element-wise base-2 logarithm of a matrix. * * The C analogue of NumPy's `numpy.log2(M)`: every element becomes `log2(x)`. *
matrix/matrix.c:1370
Function
matrix_logaddexp
* @brief Computes the element-wise log of summed exponentials. * * The C analogue of NumPy's `numpy.logaddexp(a, b)`: `log(exp(a) + exp(b))` * eval
matrix/matrix.c:10876
Function
matrix_logical_and
* @brief Element-wise logical AND of two matrices. * * The C analogue of NumPy's `numpy.logical_and(A, B)`: each element becomes `1.0` * where both
matrix/matrix.c:2281
Function
matrix_logical_not
* @brief Element-wise logical NOT of a matrix. * * The C analogue of NumPy's `numpy.logical_not(M)`: each element becomes `1.0` * where the input i
matrix/matrix.c:2087
Function
matrix_logical_or
* @brief Element-wise logical OR of two matrices. * * The C analogue of NumPy's `numpy.logical_or(A, B)`: each element becomes `1.0` * where either
matrix/matrix.c:2321
Function
matrix_logical_xor
* @brief Computes the element-wise logical XOR mask. * * The C analogue of NumPy's `numpy.logical_xor(a, b)`: each element is treated * as a boolea
matrix/matrix.c:11458
Function
matrix_logit
* @brief Computes the element-wise logit (inverse sigmoid). * * The C analogue of SciPy's `scipy.special.logit(p)`: `log(p / (1 - p))`, * element-w
matrix/matrix.c:11247
Function
matrix_logspace
* @brief Builds a row vector spaced evenly on a logarithmic scale. * * The C analogue of NumPy's `numpy.logspace(start, stop, num, base)`: * `base
matrix/matrix.c:12215
Function
matrix_lstsq
* @brief Solves the linear least-squares problem `min ||A·x - b||`. * * The C analogue of NumPy's `numpy.linalg.lstsq(A, b)[0]` for an overdetermine
matrix/matrix.c:4892
Function
matrix_lu_decomposition
* @brief Performs LU decomposition of a square matrix. * * This function decomposes a given square matrix into two matrices: * a lower triangular
matrix/matrix.c:6123
Function
matrix_map
* @brief Applies a specified function to each element of a matrix. * * This function creates a new matrix where each element is the result of applyi
matrix/matrix.c:6709
Function
matrix_max_axis
* @brief Reduces a matrix to its per-axis maximum. * * The C analogue of NumPy's `numpy.max(M, axis=...)`: * - `axis == 0` takes the maximum down
matrix/matrix.c:7223
Function
matrix_max_element
* @brief Finds the maximum element in a matrix. * * This function iterates through all the elements of the matrix to find and return the maximum val
matrix/matrix.c:6787
Function
matrix_maximum
* @brief Element-wise maximum of two matrices. * * The C analogue of NumPy's `numpy.maximum(A, B)`: each element of the result * is the larger of t
matrix/matrix.c:2409
Function
matrix_mean_axis
* @brief Averages a matrix along one axis. * * The C analogue of NumPy's `numpy.mean(M, axis=...)`: * - `axis == 0` averages down each column, ret
matrix/matrix.c:7120
Function
matrix_median
* @brief Computes the median of all elements of a matrix. * * The C analogue of NumPy's `numpy.median(M)`: the matrix is flattened, sorted, * and t
matrix/matrix.c:3995
Function
matrix_median_axis
* @brief Returns the per-axis median. * * The C analogue of NumPy's `numpy.median(M, axis=...)`: `axis == 0` gives the * median of each column (`1
matrix/matrix.c:10137
Function
matrix_meshgrid
* @brief Builds coordinate grids from two 1-D vectors. * * The C analogue of NumPy's `numpy.meshgrid(x, y)` with the default `indexing='xy'`: * giv
matrix/matrix.c:8089
Function
matrix_min_axis
* @brief Reduces a matrix to its per-axis minimum. * * The C analogue of NumPy's `numpy.min(M, axis=...)`: * - `axis == 0` takes the minimum down
matrix/matrix.c:7155
Function
matrix_min_element
* @brief Finds the minimum element in a matrix. * * This function iterates through all the elements of the matrix to find and return the minimum val
matrix/matrix.c:6754
Function
matrix_minimum
* @brief Element-wise minimum of two matrices. * * The C analogue of NumPy's `numpy.minimum(A, B)`: each element of the result * is the smaller of
matrix/matrix.c:2456
Function
matrix_mod
* @brief Element-wise modulo of two matrices. * * The C analogue of NumPy's `numpy.mod(A, B)` (equivalently `numpy.remainder`): * every element of
matrix/matrix.c:1944
Function
matrix_modf
* @brief Splits every element into its fractional and integer parts. * * The C analogue of NumPy's `numpy.modf(x)`: each element `x` is decomposed s
matrix/matrix.c:10986
Function
matrix_nan_to_num
* @brief Replaces NaN and infinities with finite numbers. * * The C analogue of NumPy's `numpy.nan_to_num(x)` with default arguments: `NaN` * becom
matrix/matrix.c:11153
Function
matrix_nanargmax
* @brief Returns the flat index of the maximum element, ignoring NaN. * * The C analogue of NumPy's `numpy.nanargmax(x)`: the row-major flat index o
matrix/matrix.c:11969
Function
matrix_nancumsum
* @brief Computes the cumulative sum, treating NaN as zero. * * The C analogue of NumPy's `numpy.nancumsum(x)`: flattens the matrix in * row-major
matrix/matrix.c:12006
Function
matrix_nanmax
* @brief Finds the maximum over the non-NaN elements. * * The C analogue of NumPy's `numpy.nanmax(x)`: the largest element, ignoring * `NaN`s. If e
matrix/matrix.c:11648
Function
matrix_nanmean
* @brief Computes the mean over the non-NaN elements. * * The C analogue of NumPy's `numpy.nanmean(x)`: the sum of the non-`NaN` * elements divided
matrix/matrix.c:11588
Function
matrix_nanmin
* @brief Finds the minimum over the non-NaN elements. * * The C analogue of NumPy's `numpy.nanmin(x)`: the smallest element, ignoring * `NaN`s. If
matrix/matrix.c:11617
Function
matrix_nanprod
* @brief Multiplies all elements, treating NaN as one. * * The C analogue of NumPy's `numpy.nanprod(x)`: multiplies every element but * skips `NaN`
matrix/matrix.c:11679
Function
matrix_nansum
* @brief Sums all elements, treating NaN as zero. * * The C analogue of NumPy's `numpy.nansum(x)`: adds every element but skips * `NaN`s (counting
matrix/matrix.c:11563
Function
matrix_nansum_axis
* @brief Sums along an axis, treating NaN as zero. * * The C analogue of NumPy's `numpy.nansum(x, axis=...)`: `axis == 0` sums down * each column (
matrix/matrix.c:12045
Function
matrix_negate
* @brief Computes the element-wise negation of a matrix. * * The C analogue of NumPy's `numpy.negative(M)`: every element of the returned * matrix
matrix/matrix.c:667
Function
matrix_nonzero
* @brief Returns the (row, column) indices of the non-zero elements. * * The C analogue of NumPy's `numpy.nonzero(M)`: scans in row-major (C) order
matrix/matrix.c:10232
Function
matrix_normalize
* @brief Min-max scales each column of a matrix to the range [0, 1]. * * The data-analysis "min-max" scaler (as in `sklearn.preprocessing.MinMaxScal
matrix/matrix.c:8437
Function
matrix_not_equal
* @brief Computes the element-wise inequality mask. * * The C analogue of NumPy's `numpy.not_equal(a, b)`: returns `1.0` wherever the * correspondi
matrix/matrix.c:11389
Function
matrix_nuclear_norm
* @brief Computes the nuclear (trace) norm of a matrix. * * The C analogue of NumPy's `numpy.linalg.norm(M, 'nuc')`: the sum of the * singular valu
matrix/matrix.c:8818
Function
matrix_nunique
* @brief Counts the number of distinct (non-NaN) values. * * The C analogue of pandas' `Series.nunique()` with the default `dropna=True`: * the num
matrix/matrix.c:12159
Function
matrix_ones
* @brief Creates a new `rows` x `cols` matrix filled with ones. * * The C analogue of NumPy's `numpy.ones(shape)`: every element of the * returned
matrix/matrix.c:2552
Function
matrix_outer
* @brief Computes the outer product of two vectors. * * The C analogue of NumPy's `numpy.outer(a, b)`: both inputs are flattened to * 1-D, and the
matrix/matrix.c:4158
Function
matrix_pad
* @brief Pads a matrix with a constant-valued border. * * The C analogue of NumPy's `numpy.pad(M, pad, mode='constant', * constant_values=value)`:
matrix/matrix.c:3750
Function
matrix_pascal
* @brief Creates a Pascal matrix of size n x n. * * This function generates a Pascal matrix, which is a symmetric matrix where each element is a bin
matrix/matrix.c:6278
Function
matrix_pct_change
* @brief Computes the fractional change between adjacent elements along an axis. * * The C analogue of pandas' `DataFrame.pct_change()` (periods = 1
matrix/matrix.c:8654
Function
matrix_percentile
* @brief Computes the p-th percentile of a matrix. * * The C analogue of NumPy's `numpy.percentile(M, p)` with the default * `method='linear'`: the
matrix/matrix.c:8331
Function
matrix_pinv
* @brief Computes the Moore-Penrose pseudo-inverse of a matrix. * * The C analogue of NumPy's `numpy.linalg.pinv(M)`, computed from the SVD as * `A
matrix/matrix.c:4741
Function
matrix_polyval
* @brief Evaluates a polynomial at one or more points. * * The C analogue of NumPy's `numpy.polyval(p, x)`: given the polynomial * coefficients `p
matrix/matrix.c:8932
Function
matrix_pow
* @brief Element-wise power of two matrices. * * The C analogue of NumPy's `numpy.power(A, B)` (i.e. `A ** B`): every element of * the result is `a
matrix/matrix.c:1896
Function
matrix_power
* @brief Raises a square matrix to a given non-negative integer power. * * This function computes the matrix raised to the specified power using an
matrix/matrix.c:5377
Function
matrix_print
* @brief Prints the matrix to the console in a formatted manner. * * This function prints the matrix elements to the console, formatting the output
matrix/matrix.c:510
Function
matrix_prod
* @brief Multiplies every element of a matrix together. * * The C analogue of NumPy's `numpy.prod(M)`: returns the product of all * elements. For a
matrix/matrix.c:6852
Function
matrix_prod_axis
* @brief Multiplies a matrix along one axis. * * The C analogue of NumPy's `numpy.prod(M, axis=...)`: * - `axis == 0` multiplies down each column,
matrix/matrix.c:7068
Function
matrix_projection
* @brief Calculates the projection matrix onto the column space of a given matrix. * * This function computes the projection matrix P that projects
matrix/matrix.c:6516
Function
matrix_ptp
* @brief Computes the peak-to-peak range (max - min) of a matrix. * * The C analogue of NumPy's `numpy.ptp(M)`: returns the difference between the
matrix/matrix.c:6905
Function
matrix_ptp_axis
* @brief Returns the per-axis peak-to-peak range (max - min). * * The C analogue of NumPy's `numpy.ptp(M, axis=...)`: `axis == 0` gives the * range
matrix/matrix.c:10086
Function
matrix_rad2deg
* @brief Converts a matrix of radians to degrees, element-wise. * * The C analogue of NumPy's `numpy.rad2deg(M)`: every element is multiplied by *
matrix/matrix.c:1684
Function
matrix_random
* @brief Creates a matrix with random integer values. * * This function generates a matrix of the specified size (row x col) and fills it * with r
matrix/matrix.c:9802
Function
matrix_rank
* @brief Computes the rank of a matrix. * * The rank of a matrix is the maximum number of linearly independent row or column vectors in the matrix.
matrix/matrix.c:5464
Function
matrix_ravel
* @brief Flattens a matrix into a single row vector. * * The C analogue of NumPy's `numpy.ravel(x)`: returns a `1 x (rows*cols)` row * vector holdi
matrix/matrix.c:12402
Function
matrix_reciprocal
* @brief Computes the element-wise reciprocal (`1/x`) of a matrix. * * The C analogue of NumPy's `numpy.reciprocal(M)`: each element becomes * `1.0
matrix/matrix.c:865
Function
matrix_repeat
* @brief Repeats each element of a matrix (flattened). * * The C analogue of NumPy's `numpy.repeat(M, repeats)` with the default * `axis=None`: the
matrix/matrix.c:3635
Function
matrix_repeat_axis
* @brief Repeats rows or columns of a matrix. * * The C analogue of NumPy's `numpy.repeat(M, repeats, axis=...)`: * - `axis == 0` repeats each row
matrix/matrix.c:3682
Function
matrix_reshape
* @brief Reinterprets a matrix with a new shape, preserving the element order. * * The C analogue of NumPy's `numpy.reshape(M, (new_rows, new_cols))
matrix/matrix.c:3070
Function
matrix_resize
* @brief Resizes a matrix, cycling its elements to fill the new shape. * * The C analogue of NumPy's `numpy.resize(a, new_shape)`: returns a new *
matrix/matrix.c:12305
Function
matrix_rfftfreq
* @brief Returns the sample frequencies for a real FFT. * * The C analogue of NumPy's `numpy.fft.rfftfreq(n, d)`: a `1 x (n/2 + 1)` row * vector of
matrix/matrix.c:12631
Function
matrix_rint
* @brief Rounds every element to the nearest integer, ties to even. * * The C analogue of NumPy's `numpy.rint(x)`: rounds to the nearest integer usi
matrix/matrix.c:11126
Function
matrix_roll
* @brief Cyclically shifts all elements of a matrix (flattened). * * The C analogue of NumPy's `numpy.roll(M, shift)` with the default * `axis=None
matrix/matrix.c:3270
Function
matrix_roll_axis
* @brief Cyclically shifts a matrix along one axis. * * The C analogue of NumPy's `numpy.roll(M, shift, axis=...)`. With `axis == 0` * the rows are
matrix/matrix.c:3313
Function
matrix_rolling_mean
* @brief Computes the trailing moving average over a sliding window. * * The C analogue of pandas' `DataFrame.rolling(window).mean()`: each output
matrix/matrix.c:8494
Function
matrix_roots
* @brief Computes the roots of a polynomial. * * The C analogue of NumPy's `numpy.roots(p)`: given coefficients * `p = [p0, p1, ..., pn]` (highest
matrix/matrix.c:9095
Function
matrix_rot90
* @brief Rotates a matrix by 90 degrees, `k` times, counterclockwise. * * The C analogue of NumPy's `numpy.rot90(M, k)`: rotates the matrix in the
matrix/matrix.c:3192
Function
matrix_round
* @brief Rounds every element of a matrix to the nearest integer. * * The C analogue of NumPy's `numpy.round(M)` (with the default `decimals=0`): *
matrix/matrix.c:952
Function
matrix_row_addition
* @brief Adds one row of a matrix to another, optionally scaling the source row before adding. * * This function adds the elements of the `sourceRow
matrix/matrix.c:9384
Function
matrix_scalar_add
* @brief Adds a scalar to every element of a matrix. * * The C analogue of NumPy's `numpy.add(M, c)` (i.e. `M + c`): every element of * the returne
matrix/matrix.c:704
Function
matrix_scalar_multiply
* @brief Multiplies every element of the matrix by a scalar value. * * This function scales each element in the matrix by the given scalar. * * @p
matrix/matrix.c:599
Function
matrix_searchsorted
* @brief Finds insertion indices into a sorted vector (binary search). * * The C analogue of NumPy's `numpy.searchsorted(a, v)` with the default *
matrix/matrix.c:8194
Function
matrix_sem
* @brief Computes the standard error of the mean. * * The C analogue of SciPy's `scipy.stats.sem(x)` with the default `ddof=1`: the * sample standa
matrix/matrix.c:12118
Function
matrix_shift
* @brief Shifts a matrix along an axis, filling vacated positions. * * The C analogue of pandas' `DataFrame.shift(periods, axis, fill_value)`: moves
matrix/matrix.c:8591
Function
matrix_sign
* @brief Computes the element-wise sign of a matrix. * * The C analogue of NumPy's `numpy.sign(M)`: each element becomes `-1` if it is * negative,
matrix/matrix.c:826
Function
matrix_signbit
* @brief Builds a 1/0 mask of the negatively-signed positions in a matrix. * * The C analogue of NumPy's `numpy.signbit(M)`: each element becomes `1
matrix/matrix.c:1713
← previous
next →
1,701–1,800 of 2,651, ranked by callers