|
AlgorithmsThis page documents library components that are all basically just implementations of mathematical functions or algorithms that don't fit in any of the other pages of the dlib documentation. So this includes things like checksums, cryptographic hashes, sorting, etc. |
|
bigint_kernel_1:
This implementation is done using an array of unsigned shorts. It is also reference counted. For further details see the above link. Also note that kernel_2 should be faster in almost every case so you should really just use that version of the bigint object.
kernel_1ais a typedef for bigint_kernel_1 kernel_1a_cis a typedef for kernel_1a that checks its preconditions.
bigint_kernel_2:
This implementation is basically the same as kernel_1 except it uses the Fast Fourier Transform to perform multiplications much faster.
kernel_2ais a typedef for bigint_kernel_2 kernel_2a_cis a typedef for kernel_2a that checks its preconditions.
crc32_kernel_1:
This implementation uses the polynomial 0xedb88320.
kernel_1ais a typedef for crc32_kernel_1
rand_kernel_1:
This implementation is done using the Mersenne Twister algorithm.
kernel_1ais a typedef for rand_kernel_1
rand_float_1:
The implementation is obvious. Click on the link if you want to see.
float_1ais a typedef for rand_kernel_1a extended by rand_float_1