![]() |
ScalES-PPM
|
combinatorial routines More...
#include <assert.h>
#include <inttypes.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "core/bittab.h"
#include "core/ppm_xfuncs.h"
#include "core/yarandom.h"
#include "core/ppm_visibility.h"
Functions | |
int PPM_DSO_API_EXPORT | PPM_prime_factorization_32 (uint32_t n, uint32_t **factors) |
void PPM_DSO_API_EXPORT | PPM_permute_randomly (void *a, size_t esize, size_t n) |
void PPM_DSO_API_EXPORT PPM_permute_randomly | ( | void * | a, |
size_t | esize, | ||
size_t | n | ||
) |
Permute array.
a | array of elements, each of them of size @esize |
esize | size of each element in bytes |
n | number of elements in array |
int PPM_DSO_API_EXPORT PPM_prime_factorization_32 | ( | uint32_t | n, |
uint32_t ** | factors | ||
) |
Compute number of prime factors of 32 bit integer
n | number to factorize |
factors | if non-NULL points to (NULL/non-NULL) pointer that (if NULL) will be malloced and (or if non-NULL) set to list of factors |
Das diesem Bericht zugrundeliegende Vorhaben wurde mit Mitteln des Bundesministeriums für Bildung, und Forschung unter dem Förderkennzeichen 01IH08004E gefördert. Die Verantwortung für den Inhalt dieser Veröffentlichung liegt beim Autor.