Alec Jacobson 5 лет назад
Родитель
Сommit
10c90309a8
1 измененных файлов с 4 добавлено и 1 удалено
  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,