Change matrices and other fixes for python bindings#1162
Change matrices and other fixes for python bindings#1162teseoch wants to merge 40 commits intolibigl:devfrom
Conversation
include/igl/bfs.cpp
Outdated
| typename PType> | ||
| IGL_INLINE void igl::bfs( | ||
| const Eigen::SparseMatrix<AType> & A, | ||
| const AType & A, |
There was a problem hiding this comment.
Are we sure we can't use SparseCompressedBase?
include/igl/bfs.h
Outdated
| typename PType> | ||
| IGL_INLINE void bfs( | ||
| const Eigen::SparseMatrix<AType> & A, | ||
| const AType & A, |
| const int d, | ||
| const igl::ARAPEnergyType energy, | ||
| Eigen::SparseMatrix<Scalar> & Kd); | ||
| MatK & Kd); |
There was a problem hiding this comment.
Can these be either SparseMatrixBase or SparseCompressedBase?
There was a problem hiding this comment.
Note: I think we'll need to bump the version of Eigen for this.
There was a problem hiding this comment.
doesnt work. SparseCompressedBase does not support resize reserve etc
include/igl/arap_rhs.cpp
Outdated
| const Eigen::MatrixBase<DerivedF> & F, | ||
| const int dim, | ||
| const igl::ARAPEnergyType energy, | ||
| Eigen::SparseMatrixBase<DerivedK>& K) |
There was a problem hiding this comment.
When do we use SparseMatrixBase and when do we use SparseCompressedBase?
include/igl/arap_rhs.h
Outdated
| const int dim, | ||
| const igl::ARAPEnergyType energy, | ||
| Eigen::SparseMatrix<double>& K); | ||
| Eigen::SparseMatrixBase<DerivedK>& K); |
There was a problem hiding this comment.
When do we use SparseMatrixBase and when do we use SparseCompressedBase?
| @@ -17,7 +17,7 @@ IGL_INLINE void igl::colon( | |||
| const H hi, | |||
There was a problem hiding this comment.
We don't have to do this, but these should all be Eigen::Index
include/igl/vertex_components.cpp
Outdated
| template <typename SparseT, typename DerivedC, typename Derivedcounts> | ||
| IGL_INLINE void igl::vertex_components( | ||
| const Eigen::SparseMatrix<AScalar> & A, | ||
| const SparseT & A, |
include/igl/vertex_components.cpp
Outdated
| template <typename SparseT, typename DerivedC> | ||
| IGL_INLINE void igl::vertex_components( | ||
| const Eigen::SparseMatrix<AScalar> & A, | ||
| const Eigen::SparseCompressedBase<SparseT> & A, |
jdumas
left a comment
There was a problem hiding this comment.
Wait so this commit is removing the old python bindings, but is not adding the new ones?
|
@jdumas yes. Right now we're working on the new python bindings in a separate repo which has libigl as a cmake external project. We're making changes to libigl and sending PRs (like this one) as we go along. @teseoch ran into some tricky compilation issues with the old bindings. We realized it would be much less effort if we killed the old bindings in this repository while we make changes necessary for the new bindings (as opposed to fixing the old bindings to work with the new changes). If others are using the python bindings in the dev branch, then we could move the old python bindings to a seperate repo with libigl as a CMake external project and point the external project version to the commit before this one. |
|
People are still using the Why do the new python bindings use |
|
If anything, I would be more comfortable pushing the current |
|
We decided with @danielepanozzo and @teseoch to have the python bindings in a separate repository while we develop them. This let's us "move fast and break things" in the binding code as well as have a small group of people have direct push access for bindings. Necessary changes to libigl are sent as pull requests as we go along and if we merge things fast enough, then we can keep everything up to date. In contrast if we were to directly develop against dev, every small change to the bindings will require a PR and a lot more overhead. We can decide later if we want to move the bindings into the main repo or not (there are pros and cons both ways and I don't really have an opinion on this tbh), but at least for now the setup we have makes sense if we want to get things done. Pushing the current dev into master sounds like a great idea if its ready. How quickly can we do this by? I would really like to land this pull request. We're going to have a lot more changes like this and the longer they hang, the more difficult it's going to be to merge everything. |
|
Well, this depends on @alecjacobson and @danielepanozzo more than me. But before merging I thought we had created the |
|
something is wierd with appveyor, any idea? |
|
It probably means you need to resolve the conflicts against |
[Describe your changes and what you've already done to test it.]
Check all that apply (change to
[x])