예제 #1
0
파일: Utils.hpp 프로젝트: StevenLOL/N3LP
 inline Real cosDis(const MatD& a, const MatD& b){
   return (a.array()*b.array()).sum()/(a.norm()*b.norm());
   //return a.col(0).dot(b.col(0))/(a.norm()*b.norm());
 }