?? aine.h
字號:
/*
_/_/_/_/ _/_/_/ _/ _/ _/_/_/_/_/
_/ _/ _/ _/_/ _/ _/
_/ _/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/ _/_/_/
_/ _/ _/ _/ _/ _/ _/
_/_/_/_/_/ _/ _/ _/_/ _/
_/ _/ _/ _/ _/ _/
_/ _/ _/ _/ _/ _/
_/ _/ _/_/_/ _/ _/ _/_/_/_/_/
\author Hannosset Christophe
\author c.hannosset@ainenn.org
\version 1.0
\date 18 - 09 - 2004
\brief Common Neural Network include
*/
#if !defined( __AINE_H__ )
#define __AINE_H__
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <float.h>
#include <stdarg.h>
#include <math.h>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <iterator>
#include <string>
#include <set>
#include <map>
#include <list>
#include <vector>
#include <deque>
#include <algorithm>
#include <numeric>
#include <functional>
using namespace std;
/*! Correct a small omission in the STL... Just to make the line possible with a double.... */
template <class _InputIter, class _Function> _Function SaveEach( _InputIter __first , _InputIter __last , _Function __f )
{
for( ; __first != __last ; ++__first )
__f = *__first;
return __f;
}
// TEMPLATE FUNCTION accumulate
template< class _InIt , class _Ty , class _Fn2 > inline _Ty sumof( _InIt _First , _InIt _Last , _Ty _Val , _Fn2 _Func )
{ // return sum of _Val and all in [_First, _Last), using _Func
for (; _First != _Last; ++_First)
_Val += _Func( *_First );
return (_Val);
}
template<class _InIt,class _Fn1> inline int ForEach( _InIt _First , _InIt _Last , _Fn1 _Func )
{ // perform function for each element
int cnt = 0;
for( ; _First != _Last ; ++_First )
cnt += (int)_Func( *_First );
return cnt;
}
#define NNVERSION "AI Neural Entity Version 1.0.5"
#pragma warning( disable : 4786 )
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -