Functions

Summary

function

class parent

truncated documentation

UnorderedMapRHStrInt64_Create

Creates a faster unordered map { (str, int): int }.nThis map is using robin_hood implementation. …

UnorderedMapRHStrInt64_Get_Fast

Inserts a value into a map { (str, int): int }

UnorderedMapRHStrInt64_Insert_Fast

Inserts a value into a map { (str, int): int }

UnorderedMapStrInt64_Create

Creates an unordered map { (str, int): int }.

UnorderedMapStrInt64_Get

Inserts a value into a map { (str, int): int }

UnorderedMapStrInt64_Get_Fast

Inserts a value into a map { (str, int): int }

UnorderedMapStrInt64_Insert

Inserts a value into a map { (str, int): int }

UnorderedMapStrInt64_Insert_Fast

Inserts a value into a map { (str, int): int }

_fcts

Returns functions to measure.

_profiling_delete

Release all references on stored python objects.

_profiling_dump_and_clear

Copies the buffer into another one allocated before calling this method.The function does not lock the :epkg:`GIL`.

_profiling_get_saved_maps

Returns a tuple with two dictionaries. One for all the event frames, a second one for the event arguments.

_profiling_log_event

Logs an event.

_profiling_n_columns

Returns the number of informations stored per event. Total size must be multiplied sizeof(int64_t).

_profiling_register_pyinstance

Registers an object called when the buffer is full. This one should call @see fn _profiling_dump_and_clear to empty the …

_profiling_start

Starts the profiler. One instance is stored in a static pointer.

_profiling_stop

Stops the profiler. The function checks that the profiler was emptied. The static instance is removed.

_setup_hook

if this function is added to the module, the help automation and unit tests call it first before anything goes on …

begin_capture

Starts capturing the standard output. Signature: def begin_capture():.

capture_output

Catch standard output and error for function function_to_call. If lang is ‘py’, calls capture_output_py()

capture_output_c

Capture the standard output and error for function function_to_call, it wraps C code which catches information …

capture_output_py

Capture the standard output and error for function function_to_call with function redirect_stdout

cblas_daxpy

Calls axpy on double cblas_daxpy.

cblas_daxpy_void

Calls axpy on double cblas_daxpy. x

cblas_ddot

Computes a dot product with cblas_ddot.

cblas_saxpy

Calls axpy on float cblas_saxpy.

cblas_saxpy_void

Calls axpy on double cblas_daxpy.

cblas_sdot

Computes a dot product with cblas_sdot.

check

Checks the library is working. It raises an exception. If you want to disable the logs:

check_speed

Prints out some information about speed computation of this laptop. See Measures branching in C++ from python to compare.

cprint

Displays a string on the standard output in C++. Signature: def cprint(*args):.

df2array

Converts a dataframe into a numpy.array without copying. pandas is merging consecutive columns sharing …

df2arrays

Converts a dataframe into a list of a list of tuple (column name, :epkg:`numpy:array`) without copying. pandas

dgelss

Finds X in the problem AX=B by minimizing \norm{AX - B}^2. Uses function dgels. …

dummy_capsule

Returns a dummy capsule with 128 uint32_t.

edit_distance_string

Computes the edit distance between strings s1 and s2.

end_capture

Stops capturing the standard output. Signature: def end_capture():.

get_capture

Gets the captured output. Signature: def get_capture() -> (str, str):.

get_memory_content

Returns the content of the memory between addresses [ptr, ptr+size[ where ptr is the pointer held by the capsule.

kill_thread

Terminates a thread. Signature: def kill_thread(int thread_id):.

measure_time

Measures a statement and returns the results as a dictionary.