Titan
v1.0
A high-performance CUDA-based physics simulation sandbox for robotics, physics, and reinforcement learning.
|
#include <vec.h>
Public Member Functions | |
CUDA_CALLABLE_MEMBER | Vec () |
CUDA_CALLABLE_MEMBER | Vec (const Vec &v) |
CUDA_CALLABLE_MEMBER | Vec (double x, double y, double z) |
CUDA_CALLABLE_MEMBER | Vec (const std::vector< double > &v) |
CUDA_CALLABLE_MEMBER Vec & | operator= (const Vec &v) |
CUDA_CALLABLE_MEMBER Vec & | operator+= (const Vec &v) |
CUDA_CALLABLE_MEMBER Vec & | operator-= (const Vec &v) |
CUDA_DEVICE void | atomicVecAdd (const Vec &v) |
CUDA_CALLABLE_MEMBER Vec | operator- () const |
CUDA_CALLABLE_MEMBER double & | operator[] (int n) |
CUDA_CALLABLE_MEMBER const double & | operator[] (int n) const |
CUDA_CALLABLE_MEMBER void | print () |
CUDA_CALLABLE_MEMBER double | norm () const |
CUDA_CALLABLE_MEMBER double | sum () const |
CUDA_CALLABLE_MEMBER Vec | normalize () const |
Friends | |
CUDA_CALLABLE_MEMBER friend Vec | operator+ (const Vec &v1, const Vec &v2) |
CUDA_CALLABLE_MEMBER friend Vec | operator- (const Vec &v1, const Vec &v2) |
CUDA_CALLABLE_MEMBER friend Vec | operator* (const double x, const Vec &v) |
CUDA_CALLABLE_MEMBER friend Vec | operator* (const Vec &v, const double x) |
CUDA_CALLABLE_MEMBER friend bool | operator== (const Vec &v1, const Vec &v2) |
CUDA_CALLABLE_MEMBER friend Vec | operator* (const Vec &v1, const Vec &v2) |
CUDA_CALLABLE_MEMBER friend Vec | operator/ (const Vec &v, const double x) |
CUDA_CALLABLE_MEMBER friend Vec | operator/ (const Vec &v1, const Vec &v2) |
std::ostream & | operator<< (std::ostream &strm, const Vec &v) |
|
inline |
|
inline |
|
inline |
|
inline |
CUDA_DEVICE void titan::Vec::atomicVecAdd | ( | const Vec & | v | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |