|
constexpr size_t | typeSize (Type t) |
| Returns the size of a TGD type.
|
|
template<typename T > |
constexpr Type | typeFromTemplate () |
| Returns the TGD component type that corresponds to the template parameter.
|
|
bool | typeFromString (const std::string &s, Type *t) |
| Determine the TGD component type described in the string, return false if this fails.
|
|
const char * | typeToString (Type t) |
| Return the name of the given type.
|
|
ArrayContainer | convert (const ArrayContainer &a, Type newType) |
| Convert the given array to the given new component type. If conversion is not actually necessary because the new type is the same as the old, the returned array will simply share its data with the original array.
|
|
template<typename T , typename FUNC > |
Array< T > | forEachComponent (const Array< T > &a, FUNC func) |
| Apply func to all components in array a.
|
|
template<typename T , typename FUNC > |
Array< T > & | forEachComponentInplace (Array< T > &a, FUNC func) |
| Apply func to all components in array a, in place.
|
|
template<typename T , typename FUNC > |
Array< T > | forEachComponent (const Array< T > &a, T b, FUNC func) |
| Apply func to all components in array a using value b.
|
|
template<typename T , typename FUNC > |
Array< T > & | forEachComponentInplace (Array< T > &a, T b, FUNC func) |
| Apply func to all components in array a using value b, in place.
|
|
template<typename T , typename FUNC > |
Array< T > | forEachComponent (const Array< T > &a, const Array< T > &b, FUNC func) |
| Apply func to all components in arrays a and b.
|
|
template<typename T , typename FUNC > |
Array< T > & | forEachComponentInplace (Array< T > &a, const Array< T > &b, FUNC func) |
| Apply func to all components in arrays a and b, in place.
|
|
template<typename T , typename FUNC > |
Array< T > | forEachElement (const Array< T > &a, FUNC func) |
| Apply func to all elements in array a.
|
|
template<typename T , typename FUNC > |
Array< T > & | forEachElementInplace (Array< T > &a, FUNC func) |
| Apply func to all elements in array a, in place.
|
|
template<typename T , typename FUNC > |
Array< T > | forEachElement (const Array< T > &a, const T *b, FUNC func) |
| Apply func to all elements in array a using element b.
|
|
template<typename T , typename FUNC > |
Array< T > & | forEachElementInplace (Array< T > &a, const T *b, FUNC func) |
| Apply func to all elements in array a using element b, in place.
|
|
template<typename T , typename FUNC > |
Array< T > | forEachElement (const Array< T > &a, const Array< T > &b, FUNC func) |
| Apply func to all elements in arrays a and b.
|
|
template<typename T , typename FUNC > |
Array< T > & | forEachElementInplace (Array< T > &a, const Array< T > &b, FUNC func) |
| Apply func to all elements in arrays a and b, in place.
|
|
template<typename T > |
Array< T > | operator- (const Array< T > &a) |
|
template<typename T > |
Array< T > | abs (const Array< T > &a) |
|
template<typename T > |
Array< T > | absInplace (Array< T > &a) |
|
template<typename T > |
Array< T > | operator+ (const Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator+ (const Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator+= (Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator+= (Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator- (const Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator- (const Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator-= (Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator-= (Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator* (const Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator* (const Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator*= (Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator*= (Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator/ (const Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator/ (const Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator/= (Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator/= (Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator% (const Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator% (const Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator%= (Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator%= (Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator& (const Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator& (const Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator&= (Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator&= (Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator| (const Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator| (const Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator|= (Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator|= (Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator^ (const Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator^ (const Array< T > &a, T b) |
|
template<typename T > |
Array< T > | operator^= (Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | operator^= (Array< T > &a, T b) |
|
template<typename T > |
Array< T > | min (const Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | min (const Array< T > &a, T b) |
|
template<typename T > |
Array< T > | minInplace (Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | minInplace (Array< T > &a, T b) |
|
template<typename T > |
Array< T > | max (const Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | max (const Array< T > &a, T b) |
|
template<typename T > |
Array< T > | maxInplace (Array< T > &a, const Array< T > &b) |
|
template<typename T > |
Array< T > | maxInplace (Array< T > &a, T b) |
|
const char * | strerror (Error e) |
| Convert an input/output error to human-readable string.
|
|
ArrayContainer | load (const std::string &fileName, const TagList &hints=TagList(), Error *error=nullptr) |
| Shortcut to read a single array from a file in a single line of code.
|
|
bool | save (const ArrayContainer &A, const std::string &fileName, bool append=Overwrite, Error *error=nullptr, const TagList &hints=TagList()) |
| Shortcut to write a single array to a file in a single line of code.
|
|