Vector representing a point in zero-dimensional space - this is purely required to allow "faces" of 1D elements to exist and should not be used in general.
More...
#include <ptems/vector.hpp>
template<typename T>
struct ptems::BasicVector< T, 0 >
Vector representing a point in zero-dimensional space - this is purely required to allow "faces" of 1D elements to exist and should not be used in general.
- Template Parameters
-
| T | The type of the vector component |
◆ ConjugateType
The type of the conjugate of the vector.
Will either be the same type if T is complex, otherwise a vector of std::complex<T>.
◆ BasicVector()
◆ Conjugate()
Computes the complex conjugate of the vector.
- Returns
- The complex conjugate of the vector
◆ ConjugateOverwrite()
Overwrites the vector with its complex conjugate.
- Returns
- this
◆ Dot()
template<typename T >
template<typename U >
Computes the dot product of this vector with the specified vector.
- Template Parameters
-
| U | Type of the components of the vector to dot product with |
- Parameters
-
| rhs | Vector to dot product with this vector |
- Returns
- The result of the dot product
◆ Length()
Computes the length of the vector.
- Returns
- The vector length.
◆ LengthSquared()
Gets the square of the length of the vector.
- Returns
- The length squared.
◆ Normalise()
Normalises the current vector.
- Returns
- Reference to this vector after normalisation.
◆ Normalised()
Gets a new vector which is the normalised version of this vector.
- Returns
- The normalised vector
◆ size()
Gets the number of elements in the vector.
- Returns
- 1
◆ Sum()
Computes the sum of the elements of the vector.
- Returns
- The vector length.
The documentation for this struct was generated from the following file: