Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cythonbook/examples
/ functions
Functions
754 in github.com/cythonbook/examples
⨍
Functions
754
◇
Types & classes
12,248
↓ 2 callers
Function
report_energy
(bodies, pairs)
04-n-body/01-original-python/nbody.py:83
↓ 2 callers
Function
scale_bodies
* Rescale certain properties of bodies. That allows doing * consequential advance()'s as if dt were equal to 1.0. * * When all advances done, resca
04-n-body/03-pure-c/nbody.c:143
↓ 2 callers
Function
spectral_norm
(n)
11-spectral-norm/01-pure-python/spectral_norm.py:45
↓ 2 callers
Function
swap
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/shared_ptr_nmt.hpp:168
↓ 2 callers
Function
swap
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/shared_array_nmt.hpp:144
↓ 2 callers
Method
swap
08-wrapping-cxx/08-smart-pointers/boost/detail/ob_compressed_pair.hpp:489
↓ 2 callers
Method
swap
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/scoped_array.hpp:92
↓ 2 callers
Method
unique
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/shared_array.hpp:118
↓ 2 callers
Function
upper_bound
08-wrapping-cxx/08-smart-pointers/boost/detail/binary_search.hpp:87
↓ 2 callers
Method
use_count
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/shared_ptr_nmt.hpp:131
↓ 1 callers
Function
A_times_u
(u, v)
11-spectral-norm/01-pure-python/spectral_norm.py:18
↓ 1 callers
Function
At_times_u
(u, v)
11-spectral-norm/01-pure-python/spectral_norm.py:29
↓ 1 callers
Function
advance
(dt, n, bodies, pairs)
04-n-body/01-original-python/nbody.py:60
↓ 1 callers
Function
advance
* Here's one weird thing: inlining of this function * decreases performance by 25%. (I.e. do not compile this with -O3) * Advances with dt == 1.0 *
04-n-body/03-pure-c/nbody.c:27
↓ 1 callers
Function
atomic_compare_exchange
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/shared_ptr.hpp:672
↓ 1 callers
Function
atomic_conditional_increment
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/sp_counted_base_vacpp_ppc.hpp:55
↓ 1 callers
Function
atomic_conditional_increment
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp:68
↓ 1 callers
Function
atomic_conditional_increment
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp:47
↓ 1 callers
Function
atomic_conditional_increment
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp:79
↓ 1 callers
Function
atomic_conditional_increment
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/sp_counted_base_cw_x86.hpp:61
↓ 1 callers
Function
atomic_conditional_increment
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp:77
↓ 1 callers
Function
atomic_conditional_increment
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:69
↓ 1 callers
Function
atomic_conditional_increment
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/sp_counted_base_spin.hpp:45
↓ 1 callers
Function
atomic_conditional_increment
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp:71
↓ 1 callers
Function
atomic_conditional_increment
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp:57
↓ 1 callers
Function
atomic_conditional_increment
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/sp_counted_base_sync.hpp:51
↓ 1 callers
Function
atomic_conditional_increment
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/sp_counted_base_aix.hpp:53
↓ 1 callers
Function
atomic_exchange
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/shared_ptr.hpp:656
↓ 1 callers
Function
atomic_load
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/shared_ptr.hpp:634
↓ 1 callers
Function
atomic_store
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/shared_ptr.hpp:645
↓ 1 callers
Method
before
08-wrapping-cxx/08-smart-pointers/boost/detail/sp_typeinfo.hpp:56
↓ 1 callers
Function
clone_current_exception
08-wrapping-cxx/08-smart-pointers/boost/exception/detail/clone_current_exception.hpp:34
↓ 1 callers
Function
combinations
(l)
04-n-body/01-original-python/nbody.py:11
↓ 1 callers
Function
current_exception
08-wrapping-cxx/08-smart-pointers/boost/exception/detail/exception_ptr.hpp:429
↓ 1 callers
Function
current_exception_diagnostic_information
08-wrapping-cxx/08-smart-pointers/boost/exception/diagnostic_information.hpp:37
↓ 1 callers
Function
current_exception_impl
08-wrapping-cxx/08-smart-pointers/boost/exception/detail/exception_ptr.hpp:296
↓ 1 callers
Function
current_exception_unknown_exception
08-wrapping-cxx/08-smart-pointers/boost/exception/detail/exception_ptr.hpp:272
↓ 1 callers
Function
current_exception_unknown_std_exception
08-wrapping-cxx/08-smart-pointers/boost/exception/detail/exception_ptr.hpp:286
↓ 1 callers
Function
diagnostic_information
08-wrapping-cxx/08-smart-pointers/boost/exception/detail/exception_ptr.hpp:468
↓ 1 callers
Method
diagnostic_information
08-wrapping-cxx/08-smart-pointers/boost/exception/info.hpp:107
↓ 1 callers
Function
eval_A_times_u
11-spectral-norm/03-pure-c/spectralnorm.c:16
↓ 1 callers
Function
eval_At_times_u
11-spectral-norm/03-pure-c/spectralnorm.c:26
↓ 1 callers
Function
fib
(n)
01-essentials/03-timings/fib.py:1
↓ 1 callers
Function
fib
(n)
01-essentials/01-comparing-python-c-and-cython/_01_fib.py:1
↓ 1 callers
Function
fib
(n)
01-essentials/01-comparing-python-c-and-cython/fib.py:1
↓ 1 callers
Method
get
08-wrapping-cxx/08-smart-pointers/boost/exception/info.hpp:92
↓ 1 callers
Method
get
08-wrapping-cxx/08-smart-pointers/boost/detail/reference_content.hpp:66
↓ 1 callers
Function
get_boost_exception
08-wrapping-cxx/08-smart-pointers/boost/exception/diagnostic_information.hpp:57
↓ 1 callers
Function
get_std_exception
08-wrapping-cxx/08-smart-pointers/boost/exception/diagnostic_information.hpp:71
↓ 1 callers
Method
lock
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/spinlock_gcc_arm.hpp:81
↓ 1 callers
Method
lock
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/spinlock_sync.hpp:44
↓ 1 callers
Method
lock
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/spinlock_nt.hpp:47
↓ 1 callers
Method
lock
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/spinlock_w32.hpp:69
↓ 1 callers
Function
main
(n, bodies=BODIES, ref='sun')
04-n-body/01-original-python/nbody.py:110
↓ 1 callers
Function
main
04-n-body/03-pure-c/nbody.c:154
↓ 1 callers
Function
object_hex_dump
08-wrapping-cxx/08-smart-pointers/boost/exception/detail/object_hex_dump.hpp:29
↓ 1 callers
Function
object_representation
08-wrapping-cxx/08-smart-pointers/boost/detail/dynamic_bitset.hpp:30
↓ 1 callers
Function
offset_momentum
(ref, bodies)
04-n-body/01-original-python/nbody.py:97
↓ 1 callers
Function
offset_momentum
04-n-body/03-pure-c/nbody.c:77
↓ 1 callers
Function
pthread_create
08-wrapping-cxx/08-smart-pointers/boost/detail/lightweight_thread.hpp:36
↓ 1 callers
Method
release
08-wrapping-cxx/08-smart-pointers/boost/exception/exception.hpp:75
↓ 1 callers
Function
report_errors
08-wrapping-cxx/08-smart-pointers/boost/detail/lightweight_test.hpp:116
↓ 1 callers
Method
rethrow
08-wrapping-cxx/08-smart-pointers/boost/exception/exception.hpp:463
↓ 1 callers
Function
rethrow_exception
08-wrapping-cxx/08-smart-pointers/boost/exception/detail/exception_ptr.hpp:452
↓ 1 callers
Method
set
08-wrapping-cxx/08-smart-pointers/boost/exception/info.hpp:84
↓ 1 callers
Method
set_deleter
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/enable_shared_from_this2.hpp:38
↓ 1 callers
Function
swap
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/shared_array.hpp:161
↓ 1 callers
Method
swap
08-wrapping-cxx/08-smart-pointers/boost/detail/compressed_pair.hpp:378
↓ 1 callers
Function
throw_exception_assert_compatibility
08-wrapping-cxx/08-smart-pointers/boost/throw_exception.hpp:58
↓ 1 callers
Function
to_string
08-wrapping-cxx/08-smart-pointers/boost/exception/info.hpp:26
↓ 1 callers
Function
to_string
08-wrapping-cxx/08-smart-pointers/boost/exception/to_string.hpp:48
↓ 1 callers
Function
to_string_stub
08-wrapping-cxx/08-smart-pointers/boost/exception/to_string_stub.hpp:90
↓ 1 callers
Method
unlock
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/spinlock_gcc_arm.hpp:89
↓ 1 callers
Method
unlock
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/spinlock_sync.hpp:52
↓ 1 callers
Method
unlock
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/spinlock_nt.hpp:53
↓ 1 callers
Method
unlock
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/spinlock_w32.hpp:77
↓ 1 callers
Function
use_count
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/detail/shared_count.hpp:355
Method
error_info
08-wrapping-cxx/08-smart-pointers/boost/exception/info.hpp:34
Method
tag_typeid_name
08-wrapping-cxx/08-smart-pointers/boost/exception/info.hpp:49
Method
value_as_string
08-wrapping-cxx/08-smart-pointers/boost/exception/info.hpp:58
Method
~error_info
08-wrapping-cxx/08-smart-pointers/boost/exception/info.hpp:42
Method
~exception
08-wrapping-cxx/08-smart-pointers/boost/exception/exception.hpp:274
Method
BOOST_PP_REPEAT
08-wrapping-cxx/08-smart-pointers/boost/mpl/string.hpp:536
Method
BOOST_PREVENT_MACRO_SUBSTITUTION
08-wrapping-cxx/08-smart-pointers/boost/detail/limits.hpp:98
Method
BOOST_PREVENT_MACRO_SUBSTITUTION
08-wrapping-cxx/08-smart-pointers/boost/detail/limits.hpp:153
Method
BOOST_PREVENT_MACRO_SUBSTITUTION
08-wrapping-cxx/08-smart-pointers/boost/detail/limits.hpp:377
Method
BOOST_PREVENT_MACRO_SUBSTITUTION
08-wrapping-cxx/08-smart-pointers/boost/detail/limits.hpp:405
Method
BOOST_PREVENT_MACRO_SUBSTITUTION
08-wrapping-cxx/08-smart-pointers/boost/detail/limits.hpp:433
Function
GetCurrentThread
Windows CE define GetCurrentThread as an inline function in kfuncs.h
08-wrapping-cxx/08-smart-pointers/boost/detail/win/GetCurrentThread.hpp:19
Function
MAKELANGID_
user default
08-wrapping-cxx/08-smart-pointers/boost/detail/win/error_handling.hpp:34
Method
MT_RNG
08-wrapping-cxx/04-stack-heap-allocation/mt19937.cpp:8
Method
MT_RNG
08-wrapping-cxx/02-overloaded-methods-and-functions/mt19937.cpp:8
Method
MT_RNG
08-wrapping-cxx/03-cxx-exceptions/mt19937.cpp:8
Method
MT_RNG
08-wrapping-cxx/01-simple-example-mt_rng-class/mt19937.cpp:8
Function
_empty
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/weak_ptr.hpp:181
Method
_internal_accept_owner
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/enable_shared_from_this2.hpp:107
Function
_internal_assign
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/weak_ptr.hpp:197
Function
_internal_equiv
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/shared_ptr.hpp:467
Function
_internal_get_deleter
08-wrapping-cxx/08-smart-pointers/boost/smart_ptr/shared_ptr.hpp:462
Method
add_original_type
08-wrapping-cxx/08-smart-pointers/boost/exception/detail/exception_ptr.hpp:178
← previous
next →
101–200 of 754, ranked by callers