Skip to content
Snippets Groups Projects
Commit e84b4f4b authored by Van Dung Nguyen's avatar Van Dung Nguyen
Browse files

add new vec func

parent 2ed30ca6
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,11 @@ class SVector3 { ...@@ -91,6 +91,11 @@ class SVector3 {
} }
const double* data() const {return P.data();} const double* data() const {return P.data();}
double* data() {return P.data();} double* data() {return P.data();}
double axpy(const double a, const SVector3& y){
for (int i=0; i<3; i++){
P[i] += (a*y[i]);
}
}
}; };
inline double dot(const SVector3 &a, const SVector3 &b) inline double dot(const SVector3 &a, const SVector3 &b)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment