Skip to content

Commit

Permalink
Make SGVector(len) 'ctor zero-initialize memory with SG_CALLOC like S…
Browse files Browse the repository at this point in the history
…GMatrix(rows, cols) 'ctor.
  • Loading branch information
micmn committed Dec 17, 2017
1 parent 54bfc6b commit 6174f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/lib/SGVector.cpp
Expand Up @@ -92,7 +92,7 @@ template<class T>
SGVector<T>::SGVector(index_t len, bool ref_counting)
: SGReferencedData(ref_counting), vlen(len), gpu_ptr(NULL)
{
vector=SG_MALLOC(T, len);
vector=SG_CALLOC(T, len);
m_on_gpu.store(false, std::memory_order_release);
}

Expand Down

0 comments on commit 6174f81

Please sign in to comment.