#include <cmath>
#include <sstream>
#include <iostream>
#include <binary.h>
#include <spucconfig.h>
#include <algorithm>
#include <complex.h>
#include <cstdlib>
#include <cstring>
Include dependency graph for vector.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | SPUC |
Classes | |
class | SPUC::Vec< T > |
Templated vectors. More... | |
Defines | |
#define | Vector Vec |
Functions | |
template<class T> | |
Vec< T > | SPUC::operator+ (const Vec< T > &v1, const Vec< T > &v2) |
Addition of two vectors. | |
template<class T> | |
Vec< T > | SPUC::operator+ (const Vec< T > &v, T t) |
Addition of a vector and a scalar. | |
template<class T> | |
Vec< T > | SPUC::operator+ (T t, const Vec< T > &v) |
Addition of a scalar and a vector. | |
template<class T> | |
Vec< T > | SPUC::operator- (const Vec< T > &v1, const Vec< T > &v2) |
Subtraction of a vector from a vector. | |
template<class T> | |
Vec< T > | SPUC::operator- (const Vec< T > &v, T t) |
Subtraction of a scalar from a vector. | |
template<class T> | |
Vec< T > | SPUC::operator- (T t, const Vec< T > &v) |
Subtraction of vector from scalar. Results in a vector. | |
template<class T> | |
Vec< T > | SPUC::operator- (const Vec< T > &v) |
Negation of vector. | |
template<class T> | |
T | SPUC::dot (const Vec< T > &v1, const Vec< T > &v2) |
Inner (dot) product of two vectors v1 and v2. | |
template<class T> | |
T | SPUC::dot_prod (const Vec< T > &v1, const Vec< T > &v2) |
template<class T> | |
T | SPUC::operator * (const Vec< T > &v1, const Vec< T > &v2) |
Inner (dot) product of two vectors v1 and v2. | |
template<class T> | |
Mat< T > | SPUC::outer_product (const Vec< T > &v1, const Vec< T > &v2) |
Outer product of two vectors v1 and v2. | |
template<class T> | |
Vec< T > | SPUC::operator * (const Vec< T > &v, T t) |
Multiplication of a vector and a scalar. | |
template<class T> | |
Vec< T > | SPUC::operator * (T t, const Vec< T > &v) |
Multiplication of a scalar and a vector. Results in a vector. | |
template<class T> | |
Vec< T > | SPUC::elem_mult (const Vec< T > &v1, const Vec< T > &v2) |
Elementwise multiplication of the two vectors. | |
template<class T> | |
Vec< T > | SPUC::elem_mult (const Vec< T > &v1, const Vec< T > &v2, const Vec< T > &v3) |
Elementwise multiplication of the three vectors. | |
template<class T> | |
Vec< T > | SPUC::elem_mult (const Vec< T > &v1, const Vec< T > &v2, const Vec< T > &v3, const Vec< T > &v4) |
Elementwise multiplication of the four vectors. | |
template<class T> | |
Vec< T > | SPUC::operator/ (const Vec< T > &v, T t) |
Division of all elements in v with t . | |
template<class T> | |
Vec< T > | SPUC::operator/ (const T t, const Vec< T > &v) |
Division of t with all elements in v . | |
template<class T> | |
Vec< T > | SPUC::elem_div (const Vec< T > &v1, const Vec< T > &v2) |
Elementwise division. | |
template<class T> | |
Vec< T > | SPUC::elem_div (const T t, const Vec< T > &v) |
Elementwise division of scalar t and vector v . | |
template<class T> | |
Vec< T > | SPUC::concat (const Vec< T > &v, const T a) |
Append element a to the end of the vector v . | |
template<class T> | |
Vec< T > | SPUC::concat (const T a, const Vec< T > &v) |
Concat element a to the beginning of the vector v . | |
template<class T> | |
Vec< T > | SPUC::concat (const Vec< T > &v1, const Vec< T > &v2) |
Concat vectors v1 and v2 . | |
template<class T> | |
Vec< T > | SPUC::concat (const Vec< T > &v1, const Vec< T > &v2, const Vec< T > &v3) |
Concat vectors v1 , v2 and v3 . | |
template<class T> | |
Vec< T > | SPUC::concat (const Vec< T > &v1, const Vec< T > &v2, const Vec< T > &v3, const Vec< T > &v4) |
Concat vectors v1 , v2 , v3 and v4 . | |
template<class T> | |
Vec< T > | SPUC::concat (const Vec< T > &v1, const Vec< T > &v2, const Vec< T > &v3, const Vec< T > &v4, const Vec< T > &v5) |
Concat vectors v1 , v2 v3 , v4 and v5 . |
2003/01/04 00:21:54
|
|