Alec Jacobson před 5 roky
rodič
revize
10c90309a8
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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,