HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
std_vec_ops.h File Reference

Contains some vector ops. More...

#include <math.h>
#include <vector>
#include <basic.h>

Go to the source code of this file.

Namespaces

 StdVecOps
 

Functions

long sum (const std::vector< int > &a_iv)
 
long product (const std::vector< int > &a_iv)
 
void copyFrom (std::vector< int > &a_iv, const int *const a_iv_carr, int a_n)
 
void add (std::vector< int > &a_iv, const int a_a)
 
void copyFrom (std::vector< double > &a_iv, const double *const a_iv_carr, int a_n)
 
void createNormalVector (std::vector< double > &a_normal_vec, const int *a_vec, const int a_size)
 
void createNormalVector (std::vector< double > &a_normal_vec, const std::vector< int > &a_vec)
 
double compute2Norm (const std::vector< double > &a_a, const std::vector< double > &a_b)
 

Detailed Description

Contains some vector ops.

Author
Debojyoti Ghosh

Definition in file std_vec_ops.h.