NeoPZ
|
Extra utilities for TPZVec. Implementations of the saxpy, sscal, sdot, intercept, max and min functions. More...
Go to the source code of this file.
Functions | |
template<class T1 , class T2 , class Scalar > | |
void | saxpy (TPZVec< T1 > &x, const TPZVec< T2 > &y, Scalar s) |
Performs a saxpy operation: x <- x + s * y. More... | |
template<class T1 , class Scalar > | |
void | sscal (TPZVec< T1 > &x, const Scalar s) |
Performs a sscal operation: x <- x * s. More... | |
template<class T > | |
TPZVec< T > | operator- (const TPZVec< T > &a, const TPZVec< T > &b) |
substracts two vectors More... | |
template<class T > | |
TPZVec< T > & | operator-= (TPZVec< T > &a, const TPZVec< T > &b) |
substracts two vectors More... | |
template<class T1 > | |
double | sdot (TPZVec< T1 > &x, TPZVec< T1 > &y) |
Performs a sdot operation: dot <- Transpose[x] * y. More... | |
template<class T1 > | |
REAL | dist (TPZVec< T1 > &vec1, TPZVec< T1 > &vec2) |
template<class T > | |
TPZVec< T > & | Sort (TPZVec< T > &v) |
Sorting the elements into v. More... | |
template<class T > | |
int | Find (TPZVec< T > &v, const T &e) |
Finds if exists the element e into vector v. More... | |
template<class T > | |
T | Min (TPZVec< T > &v) |
Returns the minimum element into v. More... | |
template<class T > | |
T | Max (TPZVec< T > &v) |
Returns the maximum element into v. More... | |
template<class T , int N> | |
void | Intersect (const TPZVec< T > &one, const TPZVec< T > &two, TPZStack< T, N > &result) |
Gets commom elements into the one and two vectors. More... | |
template<class T , int N> | |
void | Intersect (const TPZVec< T > &one, const TPZVec< T > &two, const TPZVec< T > &three, TPZStack< T, N > &result) |
Gets commom elements into the one, two and three vectors. More... | |
template<class T > | |
T | Norm (const TPZVec< T > &one) |
Gets commom elements into the one and two vectors. More... | |
template<class T > | |
void | Cross (const TPZVec< T > &x1, const TPZVec< T > &x2, TPZVec< T > &result) |
template<class T > | |
T | Dot (const TPZVec< T > &x1, const TPZVec< T > &x2) |
Extra utilities for TPZVec. Implementations of the saxpy, sscal, sdot, intercept, max and min functions.
Definition in file pzvec_extras.h.