Skip to content

Commit

Permalink
Fixed BoxCoxFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudin47 committed Jun 18, 2024
1 parent 618e1d5 commit ad4e8bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,12 @@ public:
const Sample &outputSample,
const Basis &basis,
const Point &shift,
LinearModelResult &linearModelResult);
LinearModelResult & linearModelResultOut);

BoxCoxTransform buildWithLM(const Sample &inputSample,
const Sample &outputSample,
const Point &shift,
LinearModelResult &linearModelResult);
LinearModelResult & linearModelResultOut);

/** Optimization solver accessor */
OptimizationAlgorithm getOptimizationAlgorithm() const;
Expand Down
4 changes: 2 additions & 2 deletions python/src/BoxCoxFactory.i
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// SWIG file BoxCoxFactory.i

// do not pass argument by reference, return it as tuple item
%typemap(in, numinputs=0) OT::LinearModelResult & linearModelResult ($*ltype temp) %{ temp = OT::LinearModelResult(); $1 = &temp; %}
%typemap(argout) OT::LinearModelResult & linearModelResult %{ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(new OT::LinearModelResult(*$1), SWIGTYPE_p_OT__LinearModelResult, SWIG_POINTER_OWN | 0 )); %}
%typemap(in, numinputs=0) OT::LinearModelResult & linearModelResultOut ($*ltype temp) %{ temp = OT::LinearModelResult(); $1 = &temp; %}
%typemap(argout) OT::LinearModelResult & linearModelResultOut %{ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(new OT::LinearModelResult(*$1), SWIGTYPE_p_OT__LinearModelResult, SWIG_POINTER_OWN | 0 )); %}

%typemap(in, numinputs=0) OT::GeneralLinearModelResult & generalLinearModelResult ($*ltype temp) %{ temp = OT::GeneralLinearModelResult(); $1 = &temp; %}
%typemap(argout) OT::GeneralLinearModelResult & generalLinearModelResult %{ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(new OT::GeneralLinearModelResult(*$1), SWIGTYPE_p_OT__GeneralLinearModelResult, SWIG_POINTER_OWN | 0 )); %}
Expand Down

0 comments on commit ad4e8bd

Please sign in to comment.