Navigation Menu

Skip to content

Commit

Permalink
Use index_t instead of int32_t for index type.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluskid committed May 9, 2012
1 parent 7b8dbb9 commit 2e99d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shogun/machine/KernelMulticlassMachine.cpp
Expand Up @@ -35,10 +35,10 @@ void CKernelMulticlassMachine::store_model_features()
}

SGVector<int32_t> sv_idx(all_sv.get_num_elements());
for (int32_t i=0; i < sv_idx.vlen; ++i)
for (index_t i=0; i < sv_idx.vlen; ++i)
sv_idx[i] = all_sv.get_element(i);

for (int32_t i=0; i < sv_idx.vlen; ++i)
for (index_t i=0; i < sv_idx.vlen; ++i)
*all_sv.get_element_ptr(all_sv.index_of(sv_idx[i])) = i;

CFeatures* sv_features=lhs->copy_subset(sv_idx);
Expand Down

0 comments on commit 2e99d05

Please sign in to comment.