Gradient Augmented Levelset Implementation in CPU & GPU
|
#include <vec3.h>
Public Types | |
using | value_type = T |
Public Member Functions | |
Vec3 (const T a, const T b, const T c) | |
Vec3 (const std::vector< T > a) | |
Vec3 () | |
~Vec3 () | |
const int | size () const |
const T | min () const |
const double | mag () const |
const T | operator[] (const int idx) const |
T & | operator[] (const int idx) |
void | operator= (const Vec3< T > &vec) |
bool | operator== (const Vec3< T > &vec) const |
const Vec3< T > | operator- (const Vec3< T > &vec) const |
const Vec3< T > | operator* (const Vec3< T > &vec) const |
const Vec3< T > | operator* (const T var) const |
const Vec3< T > | operator/ (const Vec3< T > &vec) const |
Static Public Attributes | |
static constexpr int | SIZE = 3 |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Vec3< T > &vec) |
Class to create 3 component elements at a computational cell. For e.x. velocity, gradients, etc.
using value_type = T |
Vec3 | ( | const T | a, |
const T | b, | ||
const T | c | ||
) |
Vec3 | ( | const std::vector< T > | a | ) |
const double mag | ( | ) | const |
const T min | ( | ) | const |
const GALS::CPU::Vec3< T > operator* | ( | const Vec3< T > & | vec | ) | const |
const GALS::CPU::Vec3< T > operator* | ( | const T | var | ) | const |
const GALS::CPU::Vec3< T > operator- | ( | const Vec3< T > & | vec | ) | const |
const GALS::CPU::Vec3< T > operator/ | ( | const Vec3< T > & | vec | ) | const |
void operator= | ( | const Vec3< T > & | vec | ) |
bool operator== | ( | const Vec3< T > & | vec | ) | const |
const T operator[] | ( | const int | idx | ) | const |
T & operator[] | ( | const int | idx | ) |
const int size | ( | ) | const |
|
friend |