2009-01-23から1日間の記事一覧

PCL使ってみる

C++

http://www.xmailserver.org/libpcl.html とりあえず使い方をメモ。 #include <iostream> #include <pcl.h> struct co_wrap { void (*func)(co_wrap &arg); std::pair<int, int> result; bool isEnd; co_wrap(void(*_func)(co_wrap &arg)) : func(_func), isEnd(false) {} inline void r</int,></pcl.h></iostream>…

今度はHaskellでやってみようかと

年末からC++で書いていたRayTracerはマルチスレッド化したときに速度が低下する原因が 突き止められなくて士気が下がってしまった。 Intel TBBでもpthreadでも同じように遅くなるので書き方がよろしくないところがどこかにある。 なんらかの競合が起きている…