Go to the documentation of this file.
32 double eigenvector[
LEN*
LEN];
33 double eigenvalue[
LEN];
40 for(
i=0;
i<9000000;
i++){
47 if(j<=
pos) v[j]= v[0];
63 ff_pca(pca, eigenvector, eigenvalue);
81 memset(v, 0,
sizeof(v));
86 v[j] /= eigenvalue[
i];
97 printf(
" %9.1f %f\n", eigenvalue[
i], eigenvalue[
i]/eigenvalue[0]);
static void error(const char *err)
__device__ int printf(const char *,...)
av_cold void av_lfg_init(AVLFG *c, unsigned int seed)
static unsigned int av_lfg_get(AVLFG *c)
Get the next random unsigned 32-bit number using an ALFG.
static __device__ float fabs(float a)
Context structure for the Lagged Fibonacci PRNG.
#define i(width, name, range_min, range_max)
int ff_pca(PCA *pca, double *eigenvector, double *eigenvalue)
void ff_pca_add(PCA *pca, const double *v)