#include "bbstdPackage.h"
#include <math.h>
-#include <stdlib.h>
#include <time.h>
namespace bbstd
tmpResult=(*v)[0];
for (i=1;i<sizeVec;i++)
{
- tmpResult = fmin ( (*v)[i] , tmpResult ) ;
+ tmpResult = std::min ( (*v)[i] , tmpResult ) ;
} // for i
vr->push_back( tmpResult );
} // if sizeVec
tmpResult=(*v)[0];
for (i=1;i<sizeVec;i++)
{
- tmpResult = fmax ( (*v)[i] , tmpResult ) ;
+ tmpResult = std::max ( (*v)[i] , tmpResult ) ;
} // for i
vr->push_back( tmpResult );
} // if sizeVec
{
for (i=0;i<sizeVec;i++)
{
- minTmp = fmin( g(v0,i,999999) , g(v1,i,999999) );
- minTmp = fmin( g(v2,i,999999) , minTmp );
- minTmp = fmin( g(v3,i,999999) , minTmp );
- minTmp = fmin( g(v4,i,999999) , minTmp );
- minTmp = fmin( g(v5,i,999999) , minTmp );
- minTmp = fmin( g(v6,i,999999) , minTmp );
- minTmp = fmin( g(v7,i,999999) , minTmp );
- minTmp = fmin( g(v8,i,999999) , minTmp );
- minTmp = fmin( g(v9,i,999999) , minTmp );
+ minTmp = std::min( g(v0,i,999999) , g(v1,i,999999) );
+ minTmp = std::min( g(v2,i,999999) , minTmp );
+ minTmp = std::min( g(v3,i,999999) , minTmp );
+ minTmp = std::min( g(v4,i,999999) , minTmp );
+ minTmp = std::min( g(v5,i,999999) , minTmp );
+ minTmp = std::min( g(v6,i,999999) , minTmp );
+ minTmp = std::min( g(v7,i,999999) , minTmp );
+ minTmp = std::min( g(v8,i,999999) , minTmp );
+ minTmp = std::min( g(v9,i,999999) , minTmp );
resultVec.push_back( minTmp );
} // for i
bbSetOutputOut( resultVec );
{
for (i=0;i<sizeVec;i++)
{
- maxTmp = fmax( g(v0,i,-999999) , g(v1,i,-999999) );
- maxTmp = fmax( g(v2,i,-999999) , maxTmp );
- maxTmp = fmax( g(v3,i,-999999) , maxTmp );
- maxTmp = fmax( g(v4,i,-999999) , maxTmp );
- maxTmp = fmax( g(v5,i,-999999) , maxTmp );
- maxTmp = fmax( g(v6,i,-999999) , maxTmp );
- maxTmp = fmax( g(v7,i,-999999) , maxTmp );
- maxTmp = fmax( g(v8,i,-999999) , maxTmp );
- maxTmp = fmax( g(v9,i,-999999) , maxTmp );
+ maxTmp = std::max( g(v0,i,-999999) , g(v1,i,-999999) );
+ maxTmp = std::max( g(v2,i,-999999) , maxTmp );
+ maxTmp = std::max( g(v3,i,-999999) , maxTmp );
+ maxTmp = std::max( g(v4,i,-999999) , maxTmp );
+ maxTmp = std::max( g(v5,i,-999999) , maxTmp );
+ maxTmp = std::max( g(v6,i,-999999) , maxTmp );
+ maxTmp = std::max( g(v7,i,-999999) , maxTmp );
+ maxTmp = std::max( g(v8,i,-999999) , maxTmp );
+ maxTmp = std::max( g(v9,i,-999999) , maxTmp );
resultVec.push_back( maxTmp );
} // for i
bbSetOutputOut( resultVec );