diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-08-26 10:30:18 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-08-26 10:30:18 +0100 |
commit | 2e6a269af6c32c2dd288697994c849511d1f37af (patch) | |
tree | 7b1de5f797a4f515c5d1f8d4833d453c385fe352 /contrib | |
parent | 8a2cad181848bc7825001bb1a418aa1982c566ab (diff) | |
download | rspamd-2e6a269af6c32c2dd288697994c849511d1f37af.tar.gz rspamd-2e6a269af6c32c2dd288697994c849511d1f37af.zip |
[Minor] Eugen -> eigen
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/kann/kautodiff.c | 6 | ||||
-rw-r--r-- | contrib/kann/kautodiff.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/contrib/kann/kautodiff.c b/contrib/kann/kautodiff.c index c8037d353..439485a0a 100644 --- a/contrib/kann/kautodiff.c +++ b/contrib/kann/kautodiff.c @@ -952,7 +952,7 @@ void kad_sgemm_simple(int trans_A, int trans_B, int M, int N, int K, const float } #endif -bool kad_ssyev_simple(int N, float *A, float *eugenvals) +bool kad_ssyev_simple(int N, float *A, float *eigenvals) { #ifndef HAVE_CBLAS return false; @@ -963,10 +963,10 @@ bool kad_ssyev_simple(int N, float *A, float *eugenvals) /* Query and allocate the optimal workspace */ lwork = -1; - ssyev ("Vectors", "Upper", &n, A, &lda, eugenvals, &wkopt, &lwork, &info); + ssyev ("Vectors", "Upper", &n, A, &lda, eigenvals, &wkopt, &lwork, &info); lwork = wkopt; work = (float*) g_malloc(lwork * sizeof(double)); - ssyev ("Vectors", "Upper", &n, A, &lda, eugenvals, work, &lwork, &info); + ssyev ("Vectors", "Upper", &n, A, &lda, eigenvals, work, &lwork, &info); /* Check for convergence */ if (info > 0) { g_free (work); diff --git a/contrib/kann/kautodiff.h b/contrib/kann/kautodiff.h index 8c797205c..d7e713304 100644 --- a/contrib/kann/kautodiff.h +++ b/contrib/kann/kautodiff.h @@ -246,11 +246,11 @@ static inline int kad_len(const kad_node_t *p) /* calculate the size of p->x */ /* Additions by Rspamd */ void kad_sgemm_simple (int trans_A, int trans_B, int M, int N, int K, const float *A, const float *B, float *C); /** - * Calculate eugenvectors and eugenvalues + * Calculate eigenvectors and eigenvalues * @param N dimensions of A (must be NxN) - * @param A input matrix (part of it will be destroyed, so copy if needed), on finish the first `nwork` columns will have eugenvectors - * @param eugenvals eugenvalues, must be N elements vector + * @param A input matrix (part of it will be destroyed, so copy if needed), on finish the first `nwork` columns will have eigenvectors + * @param eigenvals eigenvalues, must be N elements vector */ -bool kad_ssyev_simple (int N, float *A, float *eugenvals); +bool kad_ssyev_simple (int N, float *A, float *eigenvals); #endif |