
C++矩阵处理
Canvaskan
a speck of dust in the universe
展开
-
C++模仿Numpy常用文本文件读取、写入
经常用C++读入、写出(打印)矩阵数组,觉得要想办法自动解决一下这个问题。于是开始模仿Python的Numpy,矩阵暂时用vector<vector<double>>代替:*目前是V0.1实现功能主要如下:ReadTxt.h / ReadTxt.cppgenFromtxt(支持分隔符和注释,制表符视为空格,返回vector<vector<double>>)WriteTxt.h / Writetxt.cppprint(显示在屏幕上,fixe原创 2021-03-11 23:35:48 · 823 阅读 · 2 评论 -
C++<chrono>计时
C++计时代码片段精简自视觉SLAM十四讲-slambook2/ch7/orb_cv.cpp#include <iostream>#include <chrono>using namespace std;//... chrono::steady_clock::time_point t1 = chrono::steady_clock::now(); // Your code here chrono::steady_clock::time_point原创 2020-08-04 11:26:07 · 374 阅读 · 0 评论 -
C++使用<ctime>计时
C++计时代码片段精简自视觉SLAM十四讲-slambook2/ch3/useEigen/eigenMatrix.cpp#include <iostream>#include <ctime>using namespace std;clock_t time_stt = clock();//Your code herecout<<"time of normal inverse is "<<1000*(clock()-time_stt)/(doub原创 2020-07-19 10:52:33 · 1946 阅读 · 0 评论 -
C++读入"N,X,Y,Z"格式文本文件到Eigen3 Matrix
C++读入"N,X,Y,Z"格式文本文件到Eigen3 Matrix,以及相同格式输出方法原创 2020-03-31 09:35:45 · 1915 阅读 · 2 评论