libigl v2.5.0
Loading...
Searching...
No Matches
cumsum.h File Reference
#include "igl_inline.h"
#include <Eigen/Core>
#include "cumsum.cpp"

Go to the source code of this file.

Namespaces

namespace  igl
 

Functions

template<typename DerivedX , typename DerivedY >
void igl::cumsum (const Eigen::MatrixBase< DerivedX > &X, const int dim, Eigen::PlainObjectBase< DerivedY > &Y)
 Computes a cumulative sum of the columns of X, like matlab's cumsum.
 
template<typename DerivedX , typename DerivedY >
void igl::cumsum (const Eigen::MatrixBase< DerivedX > &X, const int dim, const bool zero_prefix, Eigen::PlainObjectBase< DerivedY > &Y)
 Computes a cumulative sum of the columns of [0;X].