Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix buildbot mathematics/ warnings #3185

Merged
merged 1 commit into from
May 30, 2016

Conversation

OXPHOS
Copy link
Member

@OXPHOS OXPHOS commented May 14, 2016

Is this the correct way to do it? -

Fixed documentation warnings in mathematics/ in http://buildbot.shogun-toolbox.org/builders/deb3%20-%20modular_interfaces/builds/2853

@@ -55,6 +55,7 @@ namespace implementation
template <typename inputType>
struct int2float
{
/** orininal type **/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should just be swig/doxygen ignored

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like:

#ifndef SWIG
      /*..*/
      template<..>
      struct int2float {..}
#endif

?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep // SWIG should skip this part

@karlnapf
Copy link
Member

Thats the way :)
great!

@OXPHOS
Copy link
Member Author

OXPHOS commented May 17, 2016

While it seems now the int2float structure is required : (
Maybe we can leave it there since mean calculation is going to be refactored anyway?

@karlnapf
Copy link
Member

None of this should be required / or exposed to SWIG. It is all internal.
It is refactored anyways, you are right. But should be fixed for release anyways. Should not be to hard to hide all this. But maybe if it not easy, don't spend too much time on it

@OXPHOS
Copy link
Member Author

OXPHOS commented May 24, 2016

@karlnapf May I ask why cookbook fails?

@karlnapf karlnapf closed this May 24, 2016
@karlnapf karlnapf reopened this May 24, 2016
@karlnapf karlnapf closed this May 24, 2016
@karlnapf karlnapf reopened this May 24, 2016
@karlnapf
Copy link
Member

No idea, this happened in another PR as well and @vigsterkr restarted it. But doesnt work here.

@OXPHOS
Copy link
Member Author

OXPHOS commented May 24, 2016

@karlnapf it worked : /

using floatType = float64_t;
};

#else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure I understand the logic of this preprocessor if then else.
Don't we just want to hide things from swig? Why the else case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@karlnapf aha sorry I missed this..Because int2float type is used in Redux.h and MeanEigen3.h several times as return type. If I hide int2float from SWIG, it's going to be undefined.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does cause a build error?
The SWIG #ifdefs are not really used in compilation mode, but only for the swig wrapper (that should not need this type anyways)

@karlnapf
Copy link
Member

ping

@OXPHOS
Copy link
Member Author

OXPHOS commented May 30, 2016

@karlnapf You were right about SWIG..Should be ready now

@karlnapf
Copy link
Member

Thanks!

@karlnapf karlnapf merged commit 2c5e30d into shogun-toolbox:develop May 30, 2016
@OXPHOS OXPHOS deleted the fix_warnings branch June 22, 2016 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants