Functions

Summary

function

class parent

truncated documentation

_fcts

Returns functions to measure.

_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_ddot

Computes a dot product with cblas_ddot.

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. …

end_capture

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

get_capture

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

kill_thread

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

measure_time

Measures a statement and returns the results as a dictionary.