Gradient Augmented Levelset Implementation in CPU & GPU
|
#include <mat3.h>
Public Types | |
using | value_type = T |
Public Member Functions | |
Mat3 (T a00, T a01, T a02, T a10, T a11, T a12, T a20, T a21, T a22) | |
Mat3 () | |
~Mat3 () | |
const int | size () const |
const Vec3< T > | dot (const Vec3< T > vec) const |
const T | operator[] (const int idx) const |
T & | operator[] (const int idx) |
const T | operator() (const int i_row, const int i_col) const |
T & | operator() (const int i_row, const int i_col) |
void | operator= (const Mat3< T > &mat) |
const Mat3< T > | operator- (const Mat3< T > &mat) const |
const Mat3< T > | operator* (const T var) const |
bool | operator== (const Mat3< T > &mat) const |
Static Public Attributes | |
static constexpr int | SIZE = 9 |
Friends | |
std::ostream & | operator<< (std::ostream &out, const Mat3< T > &mat) |
Class to create 9 component variable at a computational cell. For e.x. gradient of velocity.
using value_type = T |
Mat3 | ( | T | a00, |
T | a01, | ||
T | a02, | ||
T | a10, | ||
T | a11, | ||
T | a12, | ||
T | a20, | ||
T | a21, | ||
T | a22 | ||
) |
const GALS::CPU::Vec3< T > dot | ( | const Vec3< T > | vec | ) | const |
const T operator() | ( | const int | i_row, |
const int | i_col | ||
) | const |
T & operator() | ( | const int | i_row, |
const int | i_col | ||
) |
const GALS::CPU::Mat3< T > operator* | ( | const T | var | ) | const |
const GALS::CPU::Mat3< T > operator- | ( | const Mat3< T > & | mat | ) | const |
void operator= | ( | const Mat3< T > & | mat | ) |
bool operator== | ( | const Mat3< T > & | mat | ) | const |
const T operator[] | ( | const int | idx | ) | const |
T & operator[] | ( | const int | idx | ) |
const int size | ( | ) | const |
|
friend |