Skip to content

Commit

Permalink
Optimized LTSA
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Nov 5, 2011
1 parent 4b6f385 commit dafece0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/shogun/converter/LocalTangentSpaceAlignment.cpp
Expand Up @@ -196,11 +196,11 @@ void* CLocalTangentSpaceAlignment::run_ltsa_thread(void* p)

int32_t i,j,k;

for (j=0; j<m_k; j++)
G_matrix[j] = 1.0/CMath::sqrt((float64_t)m_k);

for (i=idx_start; i<idx_stop; i+=idx_step)
{
for (j=0; j<m_k; j++)
G_matrix[j] = 1.0/CMath::sqrt((float64_t)m_k);

// fill mean vector with zeros
memset(mean_vector,0,sizeof(float64_t)*dim);

Expand All @@ -222,9 +222,8 @@ void* CLocalTangentSpaceAlignment::run_ltsa_thread(void* p)

int32_t info = 0;
// find right eigenvectors of local_feature_matrix
wrap_dgesvd('N','O', dim,m_k,local_feature_matrix,dim,
s_values_vector,
NULL,1, NULL,1, &info);
wrap_dgesvd('N','O',dim,m_k,local_feature_matrix,dim,
s_values_vector,NULL,1, NULL,1,&info);
ASSERT(info==0);

for (j=0; j<target_dim; j++)
Expand Down

0 comments on commit dafece0

Please sign in to comment.