Changeset 1009

Show
Ignore:
Timestamp:
11/14/08 12:10:53 (2 months ago)
Author:
dutka
Message:

Add MethodBoundNumericalMathEvaluationImplementation class test.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/src/Base/Func/MethodBoundNumericalMathEvaluationImplementation.hxx

    r995 r1009  
    2020 
    2121#include "NumericalMathEvaluationImplementation.hxx" 
     22#include "NumericalMathFunctionImplementation.hxx" 
    2223#include "NumericalPoint.hxx" 
    2324 
     
    186187  
    187188      template <typename EvaluableObject, typename ReturnType_, typename ArgumentType_> 
    188       MethodBoundNumericalMathEvaluationImplementation<EvaluableObject, ReturnType_, ArgumentType_> * 
     189      NumericalMathFunctionImplementation 
    189190      bindMethod (const EvaluableObject & obj, 
    190191                  typename MethodBoundNumericalMathEvaluationImplementation<EvaluableObject, ReturnType_, ArgumentType_>::EvaluationMethod method ) 
    191192      { 
    192         return new MethodBoundNumericalMathEvaluationImplementation<EvaluableObject, ReturnType_, ArgumentType_>( obj, method ); 
     193        return NumericalMathFunctionImplementation( new MethodBoundNumericalMathEvaluationImplementation<EvaluableObject, ReturnType_, ArgumentType_>( obj, method ) ); 
    193194      } 
    194195 
  • trunk/lib/test/check_testsuite.at

    r996 r1009  
    6565m4_include(t_LinearNumericalMathFunction_std.at) 
    6666m4_include(t_ConstantNumericalMathHessianImplementation_std.at) 
    67 #m4_include(t_MethodBoundNumericalMathEvaluationImplementation_std.at) 
     67m4_include(t_MethodBoundNumericalMathEvaluationImplementation_std.at) 
    6868m4_include(t_NumericalMathFunction_analytical.at) 
    6969 
  • trunk/lib/test/t_MethodBoundNumericalMathEvaluationImplementation_std.at

    r995 r1009  
    1 AT_SETUP([MethodBoundNumericalMathEvaluationImplementation]) 
     1AT_SETUP([MethodBoundNumericalMathEval...Implementation]) 
    22 
    33AT_KEYWORDS([std Uncertainty Normal MethodBoundNumericalMathEvaluationImplementation]) 
     
    55AT_CHECK([t_MethodBoundNumericalMathEvaluationImplementation_std], 
    66         [0], 
    7 [[]], 
     7[[Normal DDF=class=NumericalPoint name=Unnamed dimension=1 implementation=class=NumericalPointImplementation name=Unnamed dimension=1 values=[-0.241971] 
     8bind DDF  =-0.241971 
     9]], 
    810         [ignore]) 
    911 
  • trunk/lib/test/t_MethodBoundNumericalMathEvaluationImplementation_std.cxx

    r995 r1009  
    4747  try { 
    4848    Normal distribution(0, 1.0); 
    49     //    NumericalMathFunction function(bindMethod<Normal, NumericalScalar, NumericalPoint>(distribution, &Normal::computeCDF)); 
     49    NumericalMathFunction function( bindMethod <Normal, NumericalScalar, NumericalScalar> ( distribution, &Normal::computeDDF ) ); 
    5050    NumericalPoint p(1, 1.0); 
    51     std::cout << "Normal CDF=" << distribution.computeCDF(p) << std::endl; 
    52     //    std::cout << "bind CDF  =" << function(p)[0] << std::endl; 
     51    std::cout << "Normal DDF=" << distribution.computeDDF(p) << std::endl; 
     52    std::cout << "bind DDF  =" << function(p)[0] << std::endl; 
    5353  } 
    5454  catch (TestFailed & ex) {