|
|
@@ -19,7 +19,10 @@ namespace igl
|
|
|
// Outputs:
|
|
|
// B #rows by k input matrix, can be the same as A
|
|
|
//
|
|
|
- // Note: This is just calling an Eigen one-liner.
|
|
|
+ // Note: This is just calling an Eigen one-liner:
|
|
|
+ //
|
|
|
+ // B = A.array().colwise() / A.array().rowwise().sum();
|
|
|
+ //
|
|
|
template <typename DerivedA, typename DerivedB>
|
|
|
IGL_INLINE void normalize_row_sums(
|
|
|
const Eigen::MatrixBase<DerivedA>& A,
|