|
@@ -14,22 +14,29 @@
|
|
|
namespace igl
|
|
|
{
|
|
|
// Convert a matrix to a list (std::vector) of row vectors of the same size
|
|
|
+ //
|
|
|
// Template:
|
|
|
// Mat Matrix type, must implement:
|
|
|
// .resize(m,n)
|
|
|
// .row(i) = Row
|
|
|
// T type that can be safely cast to type in Mat via '='
|
|
|
// Inputs:
|
|
|
- // V a m-long list of vectors of size n
|
|
|
- // Outputs:
|
|
|
// M an m by n matrix
|
|
|
+ // Outputs:
|
|
|
+ // V a m-long list of vectors of size n
|
|
|
//
|
|
|
// See also: list_to_matrix
|
|
|
template <typename DerivedM>
|
|
|
IGL_INLINE void matrix_to_list(
|
|
|
const Eigen::MatrixBase<DerivedM> & M,
|
|
|
std::vector<std::vector<typename DerivedM::Scalar > > & V);
|
|
|
- // For vector input
|
|
|
+ // Convert a matrix to a list (std::vector) of elements in column-major
|
|
|
+ // ordering.
|
|
|
+ //
|
|
|
+ // Inputs:
|
|
|
+ // M an m by n matrix
|
|
|
+ // Outputs:
|
|
|
+ // V an m*n list of elements
|
|
|
template <typename DerivedM>
|
|
|
IGL_INLINE void matrix_to_list(
|
|
|
const Eigen::MatrixBase<DerivedM> & M,
|