/usr/include/openturns/swig/WeightedExperimentImplementation.i is in libopenturns-dev 1.9-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | // SWIG file WeightedExperimentImplementation.i
// do not pass argument by reference, return it as tuple item
%typemap(in, numinputs=0) OT::Point & weights ($*ltype temp) %{ temp = OT::Point(); $1 = &temp; %}
%typemap(argout) OT::Point & weights %{ $result = SWIG_Python_AppendOutput($result, SWIG_NewPointerObj(new OT::Point(*$1), SWIG_TypeQuery("OT::Point *"), SWIG_POINTER_OWN | 0 )); %}
OT::Point OT::WeightedExperimentImplementation::generateWithWeights(OT::Point & weights) const;
%{
#include "openturns/WeightedExperimentImplementation.hxx"
%}
%include WeightedExperimentImplementation_doc.i
%include openturns/WeightedExperimentImplementation.hxx
namespace OT { %extend WeightedExperimentImplementation { WeightedExperimentImplementation(const WeightedExperimentImplementation & other) { return new OT::WeightedExperimentImplementation(other); } } }
%clear OT::Sample & weights;
|