Logo white

Peter M. Groen / openbr

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • openbr
  • 3rdparty
  • eigen-3.3.9
  • failtest
  • sparse_ref_4.cpp
  • Opencv4 (#580) ...
    34953f33
    * Make OpenBR compatible with OpenCV 4.X (tested with 4.5.1). There is a loss in functionality with this port. See TODO.md for outstanding issues
    
    * Add ForestInductionTransform back into forest.cpp
    
    * Add boost back in to OpenBR. This was difficult because OpenCV 4 dropped the C persistence layer, which all of the boost classes use. The new 3rdparty/opencv2-compat directory adds the C persistence layer back in, along with the old OpenCV ML classes that were removed for 4.X
    
    * Add boosted forest plugin back in
    
    * Freeing memory only leads to terrible consequences! Both of these cases caused double frees when the pointers were freed. This solution definitely has a memory leak during training, but it does work
    
    * Add InputOutputArray operator
    
    * Properly print matrices with newlines
    
    * Bug fixes
    
    * opencv still defines these
    
    * updated module dependencies
    
    * bump eigen to fix compile error
    
    * opencv ios lib location has changed
    
    * sift now part of features2d
    
    Co-authored-by: Jordan Cheney <jordan@rankone.io>
    Co-authored-by: Scott Klum <scott@rankone.io>
    Co-authored-by: Josh Klontz <josh@rankone.io>
    JordanCheney authored
    2021-03-23 09:21:03 -0600  
    Browse Code ยป
sparse_ref_4.cpp 235 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "../Eigen/Sparse"

using namespace Eigen;

void call_ref(Ref<SparseMatrix<float> > a) {}

int main()
{
  SparseMatrix<float> A(10,10);
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
  call_ref(A.transpose());
#else
  call_ref(A);
#endif
}