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_sin
* @brief Computes the element-wise sine of a matrix. * * The C analogue of NumPy's `numpy.sin(M)`: every element becomes `sin(x)` (with * `x` in ra
matrix/matrix.c:1196
Function
matrix_sinc
* @brief Computes the normalized sinc of every element. * * The C analogue of NumPy's `numpy.sinc(x)`: the normalized cardinal sine * `sin(pi*x) /
matrix/matrix.c:10688
Function
matrix_sinh
* @brief Computes the element-wise hyperbolic sine of a matrix. * * The C analogue of NumPy's `numpy.sinh(M)`: every element becomes `sinh(x)`. * T
matrix/matrix.c:1571
Function
matrix_slogdet
* @brief Computes the sign and natural log of the absolute determinant. * * The C analogue of NumPy's `numpy.linalg.slogdet(M)`: returns `sign` and
matrix/matrix.c:8981
Function
matrix_solve
* @brief Solves the linear system A x = b for x. * * Solves a square system using Gaussian elimination with partial pivoting, * followed by back su
matrix/matrix.c:9917
Function
matrix_sort
* @brief Returns a copy of a matrix sorted along one axis. * * The C analogue of NumPy's `numpy.sort(M, axis=...)`: each row (`axis == 1`) or * eac
matrix/matrix.c:3798
Function
matrix_spectral_norm
* @brief Computes the spectral (2-)norm of a matrix. * * The C analogue of NumPy's `numpy.linalg.norm(M, 2)`: the largest singular * value, compute
matrix/matrix.c:8874
Function
matrix_split
* @brief Splits a matrix into equal blocks along an axis. * * The C analogue of NumPy's `numpy.split(M, sections, axis)` (and `hsplit`/ * `vsplit`)
matrix/matrix.c:8254
Function
matrix_sqrt
* @brief Computes the element-wise square root of a matrix. * * The C analogue of NumPy's `numpy.sqrt(M)`: every element of the returned * matrix i
matrix/matrix.c:789
Function
matrix_square
* @brief Computes the element-wise square of a matrix. * * The C analogue of NumPy's `numpy.square(M)`: every element becomes `x * x`. * The input
matrix/matrix.c:1056
Function
matrix_standardize
* @brief Standardises each column of a matrix to zero mean and unit variance. * * The C analogue of `scipy.stats.zscore(M, axis=0)`: for every colum
matrix/matrix.c:8382
Function
matrix_std
* @brief Computes the standard deviation of all elements of a matrix. * * The C analogue of NumPy's `numpy.std(M)`: the population standard deviatio
matrix/matrix.c:3970
Function
matrix_std_axis
* @brief Standard deviation of a matrix along one axis. * * The C analogue of NumPy's `numpy.std(M, axis=...)` with the default `ddof = 0`: * the e
matrix/matrix.c:7922
Function
matrix_subtract
* @brief Subtracts the second matrix from the first matrix. * * This function performs element-wise subtraction of two matrices. * The matrices mus
matrix/matrix.c:358
Function
matrix_swap_cols
* @brief Swaps two columns in a matrix. * * This function exchanges the positions of two columns in a matrix. * If the matrix is NULL or the column
matrix/matrix.c:194
Function
matrix_take
* @brief Gathers elements by a list of flattened indices. * * The C analogue of NumPy's `numpy.take(M, indices)`: the source matrix is * flattened
matrix/matrix.c:10321
Function
matrix_tan
* @brief Computes the element-wise tangent of a matrix. * * The C analogue of NumPy's `numpy.tan(M)`: every element becomes `tan(x)` (with * `x` in
matrix/matrix.c:1264
Function
matrix_tanh
* @brief Computes the element-wise hyperbolic tangent of a matrix. * * The C analogue of NumPy's `numpy.tanh(M)`: every element becomes `tanh(x)`.
matrix/matrix.c:1628
Function
matrix_tile
* @brief Tiles (repeats) a matrix in a grid. * * The C analogue of NumPy's `numpy.tile(M, (reps_row, reps_col))`: stacks * `reps_row` copies of `ma
matrix/matrix.c:3589
Function
matrix_to_array
* @brief Converts a matrix to a 1D array of doubles. * * This function copies the elements of the matrix into a newly allocated 1D array. * The arr
matrix/matrix.c:9650
Function
matrix_toeplitz
* @brief Creates a Toeplitz matrix given its first row and first column. * * A Toeplitz matrix is a matrix in which each descending diagonal from le
matrix/matrix.c:5748
Function
matrix_trace
* @brief Calculates the trace of a square matrix. * * The trace of a matrix is defined as the sum of the elements on its main diagonal. * This func
matrix/matrix.c:5168
Function
matrix_trace_offset
* @brief Sums the elements along a diagonal at a given offset. * * The C analogue of NumPy's `numpy.trace(x, offset=k)`: sums the elements * `x[i][
matrix/matrix.c:12528
Function
matrix_tril
* @brief Returns the lower-triangular part of a matrix. * * The C analogue of NumPy's `numpy.tril(M, k)`: copies the elements on and below * the `k
matrix/matrix.c:3373
Function
matrix_trim_zeros
* @brief Trims leading and trailing zeros from a vector. * * The C analogue of NumPy's `numpy.trim_zeros(filt)` with the default * `trim='fb'`: fla
matrix/matrix.c:11918
Function
matrix_triu
* @brief Returns the upper-triangular part of a matrix. * * The C analogue of NumPy's `numpy.triu(M, k)`: copies the elements on and above * the `k
matrix/matrix.c:3415
Function
matrix_trunc
* @brief Truncates every element of a matrix toward zero. * * The C analogue of NumPy's `numpy.trunc(M)`: every element is rounded toward * zero (e
matrix/matrix.c:1300
Function
matrix_unique
* @brief Returns the sorted unique values of a matrix. * * The C analogue of NumPy's `numpy.unique(M)`: the matrix is flattened, sorted in * ascend
matrix/matrix.c:8142
Function
matrix_unravel_index
* @brief Converts flat indices into (row, column) coordinate pairs. * * The C analogue of NumPy's `numpy.unravel_index(indices, shape)` for a 2-D *
matrix/matrix.c:12348
Function
matrix_vandermonde
* @brief Generates a Vandermonde matrix from the given input matrix. * * A Vandermonde matrix is a matrix with terms of a geometric progression in e
matrix/matrix.c:6590
Function
matrix_vdot
* @brief Computes the inner product of two flattened matrices. * * The C analogue of NumPy's `numpy.vdot(a, b)`: flattens both operands in * row-ma
matrix/matrix.c:12486
Function
matrix_walsh
* @brief Creates a Walsh matrix of size n. * * This function generates a Walsh matrix, which is a special kind of square * matrix used in various
matrix/matrix.c:9835
Function
matrix_where
* @brief Element-wise conditional select between two matrices. * * The C analogue of NumPy's `numpy.where(cond, a, b)`: each element of the result
matrix/matrix.c:2364
Function
matrix_xlogy
* @brief Computes the element-wise `x * log(y)` with the `x == 0` convention. * * The C analogue of SciPy's `scipy.special.xlogy(x, y)`: `x * log(y)
matrix/matrix.c:11278
Function
matrix_zeros
* @brief Creates a new `rows` x `cols` matrix filled with zeros. * * The C analogue of NumPy's `numpy.zeros(shape)`: every element of the * returne
matrix/matrix.c:2589
Function
mutex_timed_lock
* Locks a mutex, with a timeout. * * Attempts to lock a mutex within a specified timeout period. If the mutex * is already locked by another thread
concurrent/concurrent.c:211
Function
mutex_trylock
* Attempts to lock a mutex without blocking. * * Tries to lock the specified mutex. If the mutex is already locked by another * thread, the functio
concurrent/concurrent.c:337
Function
plot_add_bar
* @brief Add a bar-chart series whose x axis is implicitly 0..n-1. * * Convenience wrapper around plot_add_series() that fixes @c xData to * NULL a
plot/plot.c:1317
Function
plot_add_histogram
* @brief Add a histogram series (convenience wrapper for `PLTYPE_HISTOGRAM`). * * The values are binned and drawn as a histogram. Equivalent to * `
plot/plot.c:1992
Function
plot_add_line
* @brief Add a line-chart series whose x axis is implicitly 0..n-1. * * Thin convenience wrapper around plot_add_series() with @c xData set * to NU
plot/plot.c:1255
Function
plot_add_pie
* @brief Add a pie-chart series (convenience wrapper for `PLTYPE_PIE`). * * Each value becomes a slice sized in proportion to the total. Equivalent
plot/plot.c:2011
Function
plot_add_scatter
* @brief Add a scatter-plot series with explicit x and y arrays. * * Convenience wrapper around plot_add_series() that fixes @c pltype to * PLTYPE_
plot/plot.c:1286
Function
plot_apply_theme_dark
* @brief Apply the built-in dark theme. * * Sets the five chrome colours in one call: * - background: @c 0x101418 (near-black slate), *
plot/plot.c:1571
Function
plot_apply_theme_light
* @brief Apply the built-in light theme. * * Sets the five chrome colours in one call: * - background: @c 0xFFFFFF (pure white), * - gr
plot/plot.c:1604
Function
plot_autoscale
* @brief Revert both axes to automatic scaling. * * Clears any range previously pinned with `plot_set_xlim` / `plot_set_ylim`, * so the next render
plot/plot.c:2146
Function
plot_clear_series
* @brief Remove every series, leaving the plot otherwise intact. * * Iterates each attached series, frees its xData / yData / label * buffers, zero
plot/plot.c:1096
Function
plot_color_rgb
* @brief Build an opaque PlotColor from three 8-bit channels. * * Convenience wrapper over plot_color() that hard-codes the alpha * channel to 255
plot/plot.c:880
Function
plot_export_csv
* @brief Dump every series of the plot to @p filename in CSV form. * * Writes a CSV file with one row per data point and one column per * series. T
plot/plot.c:1889
Function
plot_export_image
* @brief Render the plot to an offscreen surface and export as PNG. * * Performs a complete one-shot render of the plot to disk without * presentin
plot/plot.c:825
Function
plot_get_series_color
* @brief Read back the colour of the series at @p index. * * Returns the PlotColor stored for the series (initially set by * plot_add_series() and
plot/plot.c:1400
Function
plot_get_series_count
* @brief Number of series currently attached to the plot. * * Returns the live seriesCount field. The result is bounded above by * the compile-time
plot/plot.c:1073
Function
plot_get_series_label
* @brief Read back the legend label of the series at @p index. * * Returns a pointer to the series' internal label string. The pointer * is borrowe
plot/plot.c:1344
Function
plot_get_series_size
* @brief Number of data points in the series at @p index. * * Equal to the @c dataSize argument passed when the series was created * with plot_add_
plot/plot.c:1426
Function
plot_get_series_type
* @brief Read back the drawing style of the series at @p index. * * Returns the PlotType the series was created with (or most recently * changed to
plot/plot.c:1372
Function
plot_get_size
* @brief Get the plot's output dimensions, in pixels. * * The read-side counterpart of `plot_set_size`. * * @param plot The plot. NULL is a no-o
plot/plot.c:2026
Function
plot_get_xlim
* @brief Read back the effective x-axis range that rendering will use. * * Reports the pinned range if `plot_set_xlim` was called, otherwise the ran
plot/plot.c:2170
Function
plot_get_ylim
* @brief Read back the effective y-axis range that rendering will use. * * The y-axis counterpart to `plot_get_xlim`; see that function for the full
plot/plot.c:2198
Function
plot_has_series
* @brief Whether @p index addresses a valid series. * * Performs a bounds check against the plot's current series count. * Functionally equivalent
plot/plot.c:1132
Function
plot_linspace
* @brief Fill @p out with @p n linearly spaced values between @p start * and @p end (inclusive at both ends). * * Equivalent to NumPy's `lin
plot/plot.c:1829
Function
plot_remove_series
* @brief Remove the series at @p seriesIndex, shifting later series left. * * Frees the targeted series' xData, yData, and label buffers, then * co
plot/plot.c:508
Function
plot_series_max
* @brief Maximum y of the series at @p index. * * Linear scan analogous to plot_series_min(); writes the largest * yData value of the targeted seri
plot/plot.c:1680
Function
plot_series_mean
* @brief Arithmetic mean of y values in the series at @p index. * * Computes the sum of the series in a @c double accumulator and * divides by the
plot/plot.c:1770
Function
plot_series_min
* @brief Minimum y of the series at @p index. * * Performs a single linear scan over the series' yData buffer and * writes the smallest value found
plot/plot.c:1642
Function
plot_series_stddev
* @brief Population standard deviation of a series' y-values. * * Companion to `plot_series_mean` / `plot_series_sum`. Uses the population * formul
plot/plot.c:2051
Function
plot_series_sum
* @brief Sum of y values in the series at @p index. * * Accumulates the series' yData buffer in a @c double accumulator and * stores the @c float-t
plot/plot.c:1729
Function
plot_set_axis_labels
* @brief Replace both axis labels in one call. * * Allocates fresh copies of @p xLabel and @p yLabel first; only if * both allocations succeed does
plot/plot.c:994
Function
plot_set_colors
* @brief Set all five styling colours of the plot in one call. * * Overwrites the plot's background, grid, axis, legend-background, and * legend-te
plot/plot.c:721
Function
plot_set_font_size
* @brief Set the pixel sizes used for the title and the axis labels. * * Overrides the defaults (title 28 px, axis labels 20 px). A non-positive *
plot/plot.c:1965
Function
plot_set_grid
* @brief Toggle the grid on / off. * * Controls whether the renderer draws the 11x11 background grid lines * inside the plot frame. The grid is dra
plot/plot.c:677
Function
plot_set_legend
* @brief Toggle the legend on / off. * * Enables or disables the rendering of the legend box in the top-right * corner of the plot. The legend list
plot/plot.c:654
Function
plot_set_series_color
* @brief Change the colour of the series at @p index. * * Overwrites the series' stored colour. The change takes effect the * very next time the pl
plot/plot.c:1502
Function
plot_set_series_label
* @brief Replace the legend label of the series at @p index. * * Allocates a deep copy of @p label first; only when that succeeds is * the previous
plot/plot.c:1462
Function
plot_set_series_type
* @brief Change the drawing style of the series at @p index. * * Reinterprets the same underlying x/y data as a different visual * style — for inst
plot/plot.c:1536
Function
plot_set_size
* @brief Stricter sibling of plot_set_window_size() that validates * inputs and reports success. * * Stores @p width and @p height verbatim
plot/plot.c:1040
Function
plot_set_title
* @brief Replace the plot title; passing NULL clears it to "". * * Deep-copies @p title into the plot, then frees the previous title * string. Pass
plot/plot.c:950
Function
plot_set_window_size
* @brief Set the desired window size in pixels. * * Updates the plot's @c width and @c height fields, which are used * both for the live raylib win
plot/plot.c:620
Function
plot_set_xlim
* @brief Pin the x-axis to a fixed [min, max] range. * * By default each axis auto-scales to the data on every render. Pinning a * range keeps the
plot/plot.c:2099
Function
plot_set_ylim
* @brief Pin the y-axis to a fixed [min, max] range. * * The y-axis counterpart to `plot_set_xlim`; see that function for the full * contract. The
plot/plot.c:2125
Function
plot_update_series_data
* @brief Replace a series' x/y data while keeping its label, color, type. * * Allocates fresh internal buffers, deep-copies @p xData (if non-NULL)
plot/plot.c:563
Function
postgres_backend_pid
* @brief Retrieves the backend process ID of the PostgreSQL connection. * * @param pg Pointer to the Postgres structure representing the connection
database/postgres.c:1269
Function
postgres_begin_transaction
* @brief Begins a new transaction on the PostgreSQL connection. * * @param pg Pointer to the Postgres structure representing the connection. * @re
database/postgres.c:349
Function
postgres_binary_tuples
* @brief Checks if the result set contains binary data. * * @param pgRes Pointer to the PostgresResult structure containing the result set. * @ret
database/postgres.c:1286
Function
postgres_bytes_size
* @brief Retrieves the size in bytes of the specified column in the result set. * * @param pgRes Pointer to the PostgresResult structure containing
database/postgres.c:1304
Function
postgres_clear_prepared_statement
* @brief Deallocates a prepared statement to free up resources. * * This function clears a prepared statement, which frees up the associated resourc
database/postgres.c:2332
Function
postgres_command_status
* @brief Retrieves the command status string from the SQL command that generated the PostgresResult. * * @param pgRes Pointer to the PostgresResult
database/postgres.c:1495
Function
postgres_command_tuples
* @brief Retrieves the number of tuples (rows) affected by the last command. * * @param pgRes Pointer to the PostgresResult structure containing th
database/postgres.c:1252
Function
postgres_commit_transaction
* @brief Commits the current transaction on the PostgreSQL connection. * * @param pg Pointer to the Postgres structure representing the connection.
database/postgres.c:381
Function
postgres_connect_uri
* @brief Connects using a single libpq connection string or URI, the * 12-factor / `DATABASE_URL` style of configuration. * * Unlike postgre
database/postgres.c:155
Function
postgres_copy_from_csv
* @brief Copies data from a CSV file into a specified table using PostgreSQL's COPY command. * * @param pg Pointer to the Postgres structure repres
database/postgres.c:2515
Function
postgres_create
* @brief Creates a new Postgres structure. * * @return A pointer to the newly allocated Postgres structure, or NULL if the allocation fails. */
database/postgres.c:36
Function
postgres_create_function
* @brief Creates a user-defined function in the PostgreSQL database. * * This function constructs and executes a SQL `CREATE FUNCTION` command to c
database/postgres.c:1900
Function
postgres_create_schema
* @brief Creates a new schema in the PostgreSQL database. * * This function constructs and executes a SQL `CREATE SCHEMA` command to create a new s
database/postgres.c:2166
Function
postgres_create_trigger
* @brief Creates a trigger on a specified table in the PostgreSQL database. * * This function constructs and executes a SQL `CREATE TRIGGER` comman
database/postgres.c:2082
Function
postgres_create_view
* @brief Creates a view in the PostgreSQL database. * * This function constructs and executes a SQL `CREATE VIEW` command to create a new view *
database/postgres.c:1998
Function
postgres_db_value
* @brief Retrieves the name of the connected database. * * @param pg Pointer to the Postgres structure representing the connection. * @return The
database/postgres.c:1388
Function
postgres_deallocate
* @brief Deallocates memory and resources associated with the Postgres structure. * * @param pg Pointer to the Postgres structure to be deallocated
database/postgres.c:307
Function
postgres_drop_function
* @brief Drops a user-defined function from the PostgreSQL database. * * This function constructs and executes a SQL `DROP FUNCTION` command to rem
database/postgres.c:1957
Function
postgres_drop_schema
* @brief Drops an existing schema in the PostgreSQL database. * * This function constructs and executes a SQL `DROP SCHEMA` command to drop an exis
database/postgres.c:2208
Function
postgres_drop_trigger
* @brief Drops an existing trigger from a specified table in the PostgreSQL database. * * This function constructs and executes a SQL `DROP TRIGGER
database/postgres.c:2125
Function
postgres_drop_view
* @brief Drops an existing view from the PostgreSQL database. * * This function constructs and executes a SQL `DROP VIEW` command to remove a view
database/postgres.c:2039
← previous
next →
1,801–1,900 of 2,651, ranked by callers