Skip to content

Commit

Permalink
Disabled recent constructors for java
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Feb 25, 2013
1 parent c1e89cb commit ddd10aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shogun/labels/BinaryLabels.cpp
Expand Up @@ -11,6 +11,7 @@ CBinaryLabels::CBinaryLabels(int32_t num_labels) : CDenseLabels(num_labels)
{
}

#ifndef SWIGJAVA
CBinaryLabels::CBinaryLabels(SGVector<int32_t> src) : CDenseLabels()
{
SGVector<float64_t> values(src.vlen);
Expand All @@ -28,6 +29,7 @@ CBinaryLabels::CBinaryLabels(SGVector<int64_t> src) : CDenseLabels()
set_int_labels(src);
set_values(values);
}
#endif

CBinaryLabels::CBinaryLabels(SGVector<float64_t> src, float64_t threshold) : CDenseLabels()
{
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/labels/BinaryLabels.h
Expand Up @@ -45,6 +45,7 @@ class CBinaryLabels : public CDenseLabels
*/
CBinaryLabels(int32_t num_labels);

#ifndef SWIGJAVA
/** constructor
* sets labels with src elements
*
Expand All @@ -58,6 +59,7 @@ class CBinaryLabels : public CDenseLabels
* @param src labels to set
*/
CBinaryLabels(SGVector<int64_t> src);
#endif

/** constructor
* sets values from src vector
Expand Down

0 comments on commit ddd10aa

Please sign in to comment.