https://github.com/HTDerekLiu/surface_multigrid_code
Revision 2a5ce10bcc87d1ae648b298a39eec2f368b24b24 authored by HTDerekLiu on 24 May 2021, 13:03:36 UTC, committed by HTDerekLiu on 24 May 2021, 13:03:36 UTC
1 parent 5d998ed
Raw File
Tip revision: 2a5ce10bcc87d1ae648b298a39eec2f368b24b24 authored by HTDerekLiu on 24 May 2021, 13:03:36 UTC
add balloon
Tip revision: 2a5ce10
vector_mod.cpp
#include "vector_mod.h"

void vector_mod(
  const Eigen::VectorXi & input,
  const int & number,
  Eigen::VectorXi & input_mod_number)
  {
    input_mod_number.resize(input.size());
    input_mod_number = input.array() - (number * (input.array()/number));
  }
back to top