Chi-Tech
|
#include <chi_math_vectorNX.h>
Public Member Functions | |
VectorNX () | |
VectorNX (const NumberFormat value) | |
VectorNX (const chi_mesh::Vector3 &that) | |
VectorNX (const std::vector< NumberFormat > &values) | |
VectorNX & | operator= (const VectorNX &rhs) |
VectorNX & | operator= (const chi_mesh::Vector3 &rhs) |
VectorNX | operator+ (const VectorNX &rhs) const |
VectorNX & | operator+= (const VectorNX &rhs) |
VectorNX | Shifted (const NumberFormat value) const |
VectorNX & | Shift (const NumberFormat value) |
VectorNX | operator- (const VectorNX &rhs) const |
VectorNX & | operator-= (const VectorNX &rhs) |
VectorNX | operator* (const NumberFormat value) const |
VectorNX & | operator*= (const NumberFormat value) |
VectorNX | operator* (const VectorNX &rhs) const |
VectorNX & | operator*= (const VectorNX &rhs) |
VectorNX | operator/ (const NumberFormat value) const |
VectorNX & | operator/= (const NumberFormat value) |
VectorNX | operator/ (const VectorNX &rhs) const |
VectorNX & | operator/= (const VectorNX &rhs) |
NumberFormat | operator[] (int i) const |
NumberFormat & | operator() (int i) |
TensorRNX< 2, N, NumberFormat > | OTimes (const VectorNX< N, NumberFormat > &that) const |
VectorNX< N, NumberFormat > | Dot (const TensorRNX< 2, N, NumberFormat > &that) const |
VectorNX< 3, NumberFormat > | Cross (const VectorNX< 2, NumberFormat > &rhs) |
VectorNX< 3, NumberFormat > | Cross (const VectorNX< 3, NumberFormat > &rhs) |
NumberFormat | Dot (const VectorNX &rhs) const |
NumberFormat | Dot (const chi_mesh::Vector3 &rhs) const |
NumberFormat | Norm () const |
NumberFormat | NormSquare () const |
void | Normalize () |
VectorNX | Normalized () const |
VectorNX | InverseZeroIfSmaller (NumberFormat tol) const |
VectorNX | InverseOneIfSmaller (NumberFormat tol) const |
VectorNX | InverseZeroIfInf () const |
VectorNX | Inverse () const |
void | Print () const |
std::string | PrintS () const |
Data Fields | |
std::array< NumberFormat, N > | elements |
const unsigned int | dimension |
Generalized vector notion.
Definition at line 33 of file chi_math_vectorNX.h.
|
inline |
Default constructor.
Definition at line 39 of file chi_math_vectorNX.h.
|
inline |
Constructor with value.
Definition at line 48 of file chi_math_vectorNX.h.
|
inline |
Constructor with chi_mesh::Vector3.
Definition at line 57 of file chi_math_vectorNX.h.
|
inline |
Constructor with array of values. This allows constructors of the form:
Definition at line 75 of file chi_math_vectorNX.h.
|
inline |
Vector cross-product.
Definition at line 290 of file chi_math_vectorNX.h.
|
inline |
Vector cross-product.
Definition at line 310 of file chi_math_vectorNX.h.
|
inline |
Vector dot-product.
Definition at line 345 of file chi_math_vectorNX.h.
|
inline |
Definition at line 278 of file chi_math_vectorNX.h.
|
inline |
Vector dot-product.
Definition at line 334 of file chi_math_vectorNX.h.
|
inline |
Returns a vector v^* where each element is inverted without any check for division by zero.
Definition at line 438 of file chi_math_vectorNX.h.
|
inline |
Returns a vector v^* where each element is inverted provided that it is greater than the given tolerance, otherwise the offending entry is set to 1.0.
Definition at line 412 of file chi_math_vectorNX.h.
|
inline |
Returns a vector v^* where each element is inverted provided that the inversion is not infinite, otherwise it is zeroed.
Definition at line 423 of file chi_math_vectorNX.h.
|
inline |
Returns a vector v^* where each element is inverted provided that it is greater than the given tolerance, otherwise the offending entry is set to 0.0.
Definition at line 400 of file chi_math_vectorNX.h.
|
inline |
Computes the L2-norm of the vector. Otherwise known as the length of a 3D vector.
Definition at line 356 of file chi_math_vectorNX.h.
|
inline |
Normalizes the vector in-place.
Definition at line 379 of file chi_math_vectorNX.h.
|
inline |
Returns a normalized version of the vector.
Definition at line 387 of file chi_math_vectorNX.h.
|
inline |
Computes the square of the L2-norm of the vector. This eliminates the usage of the square root and is therefore less expensive that a proper L2-norm. Useful if only comparing distances.
Definition at line 369 of file chi_math_vectorNX.h.
|
inline |
Returns a reference of the value at the given index.
Definition at line 261 of file chi_math_vectorNX.h.
|
inline |
Vector component-wise multiplication by scalar.
Definition at line 170 of file chi_math_vectorNX.h.
|
inline |
Vector component-wise multiplication.
Definition at line 191 of file chi_math_vectorNX.h.
|
inline |
Vector in-place component-wise multiplication by scalar.
Definition at line 181 of file chi_math_vectorNX.h.
|
inline |
Vector in-place component-wise multiplication.
Definition at line 202 of file chi_math_vectorNX.h.
|
inline |
Component-wise addition of two vectors.
Definition at line 105 of file chi_math_vectorNX.h.
|
inline |
In-place component-wise addition of two vectors.
Definition at line 116 of file chi_math_vectorNX.h.
|
inline |
Component-wise subtraction.
Definition at line 148 of file chi_math_vectorNX.h.
|
inline |
In-place component-wise subtraction.
Definition at line 159 of file chi_math_vectorNX.h.
|
inline |
Vector component-wise division by scalar.
Definition at line 213 of file chi_math_vectorNX.h.
|
inline |
Vector component-wise division.
Definition at line 234 of file chi_math_vectorNX.h.
|
inline |
Vector in-place component-wise division by scalar.
Definition at line 224 of file chi_math_vectorNX.h.
|
inline |
Vector in-place component-wise division.
Definition at line 245 of file chi_math_vectorNX.h.
|
inline |
Component-wise from chi_mesh::Vector3.
Definition at line 94 of file chi_math_vectorNX.h.
|
inline |
Component-wise copy.
Definition at line 86 of file chi_math_vectorNX.h.
|
inline |
Returns a copy of the value at the given index.
Definition at line 255 of file chi_math_vectorNX.h.
|
inline |
Definition at line 267 of file chi_math_vectorNX.h.
|
inline |
prints the vector to standard cout
Definition at line 448 of file chi_math_vectorNX.h.
|
inline |
Prints the vector to a string and then returns the string.
Definition at line 459 of file chi_math_vectorNX.h.
|
inline |
In-place component-wise shift by scalar-value.
Definition at line 137 of file chi_math_vectorNX.h.
|
inline |
Component-wise shift by scalar-value.
Definition at line 126 of file chi_math_vectorNX.h.
const unsigned int chi_math::VectorNX< N, NumberFormat >::dimension |
Definition at line 36 of file chi_math_vectorNX.h.
std::array<NumberFormat,N> chi_math::VectorNX< N, NumberFormat >::elements |
Definition at line 35 of file chi_math_vectorNX.h.