toward the mountain

C++ little things

compilation of little things in C++

C++ skills



C++ skills


Pass Eigen Matrix parameter

  • Passing part of Eigen::Matrix using block
	/// function decleration
	func(Eigen::Ref<Eigen::Matrix<3,1> >);

	Eigen::Matrix<3,1> mat;
	func(
		mat.block(startRow
				, startCol
				, rows
				, cols)
	);

Dialogue & Discussion