Alec Jacobson 5 years ago
parent
commit
10c90309a8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      include/igl/normalize_row_sums.h

+ 4 - 1
include/igl/normalize_row_sums.h

@@ -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,