Ami Tavory and Vladimir Dreizin, IBM Haifa Research Laboratories, and Benjamin Kosnik, Red Hat pbassoc@gmail.com This is a library of policy-based elementary data structures: associative containers and priority queues. It is designed for high-performance, flexibility, semantic safety, and conformance to the corresponding containers in std and std::tr1 (except for some points where it differs by de
ããå¿ããããã¡ã¢ #include <iostream> #include <algorithm> #include <vector> #include <utility> #include <boost/bind.hpp> using namespace std; using namespace boost; void disp(const pair<int, int>& p) { cout << '[' << p.first << ',' << p.second << ']' << endl; } int main() { typedef pair<int, int> value_type; vector<value_type> v; v.push_back(make_pair(1, 3)); v.push_back(make_pair(2, 1)); v.push_back(mak
C++ ã§ãã¼ã¿ã®å§ç¸®ã»å¾©å ãããå ´åï¼boost C++ library ã«ä¾¿å©ãª Filter ãããã¾ãï¼gzip -c ã gzip -cd ãªã©ã§å¯¾å¿ã§ããªãã¨ãã«ã¯ï¼æ¤è¨ãã価å¤ãããã¨æãã¾ãï¼ Gzip Filters # ãªã³ã¯ããã¨ãã«ã©ã¤ãã©ãª libboost_iostream... ãæå®ããå¿ è¦ãããã¾ãï¼ã¾ãï¼zlib_compressor ã bzip2_compressor ãæä¾ããã¦ãã¾ãï¼ #include <iostream> #include <boost/iostreams/filtering_streambuf.hpp> #include <boost/iostreams/filter/gzip.hpp> // åãåã£ããã¼ã¿ãå§ç¸®ãã¦åºåã¹ããªã¼ã ã«æ¸¡ãï¼ class Compressor { public: Compressor(std
ããããã¤å¯ã㨠ä»å¹´ã®ã¯ããã«ãããããã¨ãªã¹ããä½ã£ããä»è¦ãã50é ç®ãããªã¹ãã®ãã¡25åãéææ¸ã¿ã ã£ããã¡ããã©ååãããããã¨ããã£ãã¨ãããã¨ã ãç§ã«ãã¦ã¯ã¾ãã¾ãã®çµæã ã¨æããæºè¶³ã ãããããã¨ãªã¹ãã«ãããã®ã®ãã¡ããããé£ã¹ãããç³»ã¯æ¦ãã¯ãªã¢ãâ¦
Boost å¤æ¬¡å é åã©ã¤ãã©ãª (Boost.MultiArray) Synopsis - æ¦è¦ Boost å¤æ¬¡å é åã©ã¤ãã©ãªã¯ï¼å¤æ¬¡å ã³ã³ããã¨ï¼ æå³çã«ç価ãªé£ç¶ãã¼ã¿ã®é åã¸ã®ã¢ããã¿ãæä¾ããã ãã®ã©ã¤ãã©ãªã®ã¯ã©ã¹ç¾¤ã¯ï¼ã§ããã ã STL ã³ã³ããã¨è¿ãæ¯ãèãããï¼ ã¾ã N 次å é åã®æ £ç¨å¥ (formulation) ã§ããï¼ ãããã "ãã¯ã¿ã®ãã¯ã¿" ãã便å©ã§ãã¤æå¹ãªå®è£ ãæä¾ããã é åã¯ã²ã¨ãã³æ§ç¯ãããã¨ãªãµã¤ãºã§ããªããï¼ ä¿æãããã¼ã¿ã¸ã®ä»£æ¿ãã¥ã¼ãæä¾ãããã¨ã«ãã£ã¦ï¼ ã¹ã©ã¤ã¹ (sliced) ããã¾ãå½¢ä½ãã (shaped) å¾ãã Table of Contents - ç®æ¬¡ Rationale Related Work Short Example MultiArray Components Construction and As
è¡åãªãã¦ãããªã«è©³ããç¡ãã®ã§ã ä¸è§è¡åã¨ã対称è¡åã®è¡¨ç¾æ段ã¨ãè²ã é¢ç½ãããªã®ã§ããã ã¾ããããããã¾ããã ã ãããé常ã«éè¦ãªåºç¤æè¡ã§ããã expression template ã«ã¤ãã¦è§£èª¬ããã¦ã¿ã¾ãã prod(mat3, prod(mat1, mat2)); prod(mat3, matrix<int>(prod(mat1, mat2))); prod(mat3, prod<matrix<int> >(mat1, mat2)); matrix<int> mat4(prod(mat3, prod(mat1, mat2))); matrix<int> mat4(prod(mat3, matrix<int>(prod(mat1, mat2)))); matrix<int> mat4(prod(mat3, prod<matrix<int> >(mat1, mat2)));
boost::numeric::ublas ç·å½¢ä»£æ°ã©ã¤ãã©ãªã®ä½¿ãæ¹ é£ç«æ¹ç¨å¼ã解ãã»éè¡åãæ±ãã DT Specials -> Boost -> boost::numeric::ublas ç·å½¢ä»£æ°ã©ã¤ãã©ãªã®ä½¿ãæ¹ Last update : Jan. 13th, 2005 ã¯ããã« ãã®ææ¸ã¯ï¼ç·å½¢æ¼ç®ã©ã¤ãã©ãª boost::numeric::ublas ã®ä½¿ãæ¹ã®ä¸é¨ãç°¡åã«èª¬æãããã®ã§ãï¼ ã©ãã boost â uBLAS ã«ã¤ãã¦ã¯æ¥æ¬èªã®èª¬ææ¸ãããªãããã§ãï¼é ¼ã¿ã®æ¥æ¬èªè§£èª¬æ¸[2]ã uBLAS ã¯ãã£ã 2 ãã¼ã¸ï¼Web ãããã£ã¦ãç§ã®å¸æã«ãã解説ã¯è¦ãããã¾ããï¼ä»æ¹ããªãã®ã§è±èªã®ãªãªã¸ãã«ããã¥ã¡ã³ãã¨æ ¼éãã¾ããï¼ãã®çµæï¼ãªãã¨ãé£ç«1次æ¹ç¨å¼ã解ããã¨ã¨ï¼éè¡åãæ±ãããã¨ã¯ã§ããããã«ãªã£ãã®ã§ï¼ç§ã¨åããããªãæ©ã¿ãæ±ã㦠Web ãå·¡
ã·ãã¥ã¬ã¼ã·ã§ã³å®é¨ãè¡ã£ã¦ããã¨æ£è¦ä¹±æ°ãå¿ è¦ã«ãªããã¨ãããããã¾ãï¼æ£è¦ä¹±æ°ã¯ããªãåºæ¬çãªä¹±æ°ã§ãããããã¾ãã¾ãªã©ã¤ãã©ãªã«å®è£ ããã¦ããã®ã§ããï¼ç§ã¯ Boost ããã使ã£ã¦ããã®ã§ï¼æ£è¦ä¹±æ°ã§ã Boost ã使ç¨ãã¦çºçããã¦ãã¾ãï¼ ããã Boost ã®å®è£ ã¯æè»æ§ãæ±ãéãããã¾ã使ããããã失ã£ã¦ãã¾ã£ã¦ããããã«æãã¾ãï¼åã«æ£è¦ä¹±æ°ãçºçãããã人ã«ã¨ã£ã¦ã¯ï¼ï¼ã¨ããã®ãï¼Boost ã§æ£è¦ä¹±æ°ãçºçãããããã«ã¯ã¾ãä¸æ§åå¸ãçºçãããã¨ã³ã¸ã³ãé¸ã³ï¼ãããé©åã«ã³ã³ã¹ãã©ã¯ãããå¿ è¦ãããã¾ãï¼ã¨ã³ã¸ã³ã«ãã£ã¦ã¯ãã³ãã¬ã¼ãåãããã³ã³ã¹ãã©ã¯ã¿ããã¤ããï¼ã¨ã³ã¸ã³ãé©åã«åæåããããã«ã¯ã³ã³ã¹ãã©ã¯ã¿ã«æ¸¡ã種(seed)ã®åãæ£ç¢ºã«ä¸è´ãããå¿ è¦ãããã¾ãï¼ããããªããã°ãã³ãã¬ã¼ãåãããã³ã³ã¹ãã©ã¯ã¿ãå¼ã°ãã¦ãã¾ãã¾ãï¼ï¼ãã®å¾ normal_d
ã©ã³ãã³ã°
ã¡ã³ããã³ã¹
ãç¥ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}