MCPcopy Create free account
hub / github.com/TUC-ProAut/libRSF / RemoveColumn

Function RemoveColumn

src/VectorMath.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 void RemoveColumn(Matrix& Matrix, int ColToRemove)
45 {
46 int numRows = Matrix.rows();
47 int numCols = Matrix.cols()-1;
48
49 if( ColToRemove < numCols )
50 Matrix.block(0,ColToRemove,numRows,numCols-ColToRemove) = Matrix.rightCols(numCols-ColToRemove);
51
52 Matrix.conservativeResize(numRows,numCols);
53 }
54
55 void CRSToMatrix(const ceres::CRSMatrix &CRSMat, Matrix &Mat)
56 {

Callers 1

doVariationalStepMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected