Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
vectorclass_fallback.h File Reference
#include "../arch/arch_device_api.h"
#include <math.h>
#include <stdio.h>
#include <initializer_list>
Include dependency graph for vectorclass_fallback.h:

Go to the source code of this file.

Classes

class  VecSimple< T >

Functions

static ARCH_HOSTDEV void no_subnormals ()
template<class T>
static ARCH_HOSTDEV VecSimple< T > abs (const VecSimple< T > &l)
template<class T>
static ARCH_HOSTDEV VecSimple< T > sqrt (const VecSimple< T > &l)
template<class T>
static ARCH_HOSTDEV VecSimple< T > operator+ (const VecSimple< T > &l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > operator+ (const S l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > operator+ (const VecSimple< T > &l, const S r)
template<class T>
static ARCH_HOSTDEV VecSimple< T > operator- (const VecSimple< T > &r)
template<class T>
static ARCH_HOSTDEV VecSimple< T > operator- (const VecSimple< T > &l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > operator- (const S l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > operator- (const VecSimple< T > &l, const S r)
template<class T>
static ARCH_HOSTDEV VecSimple< T > operator* (const VecSimple< T > &l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > operator* (const VecSimple< T > &l, const S r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > operator* (const S l, const VecSimple< T > &r)
template<class T>
static ARCH_HOSTDEV VecSimple< T > operator/ (const VecSimple< T > &l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > operator/ (const VecSimple< T > &l, const S r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > operator/ (const S l, const VecSimple< T > &r)
template<class T>
static ARCH_HOSTDEV VecSimple< T > & operator+= (VecSimple< T > &l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > & operator+= (VecSimple< T > &l, const S r)
template<class T>
static ARCH_HOSTDEV VecSimple< T > & operator*= (VecSimple< T > &l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > & operator*= (VecSimple< T > &l, const S r)
template<class T>
static ARCH_HOSTDEV VecSimple< T > & operator-= (VecSimple< T > &l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > & operator-= (VecSimple< T > &l, const S r)
template<class T>
static ARCH_HOSTDEV VecSimple< bool > operator|| (const VecSimple< T > &l, const VecSimple< T > &r)
template<class T>
static ARCH_HOSTDEV VecSimple< bool > operator&& (const VecSimple< T > &l, const VecSimple< T > &r)
template<class T>
static ARCH_HOSTDEV VecSimple< bool > operator== (const VecSimple< T > &l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< bool > operator== (const VecSimple< T > &l, const S r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< bool > operator!= (const VecSimple< T > &l, const S r)
template<class T>
static ARCH_HOSTDEV VecSimple< bool > operator! (const VecSimple< T > &l)
template<class T>
static ARCH_HOSTDEV VecSimple< bool > operator> (const VecSimple< T > &l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< bool > operator> (const VecSimple< T > &l, const S r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< bool > operator> (const S l, const VecSimple< T > &r)
template<class T>
static ARCH_HOSTDEV VecSimple< bool > operator>= (const VecSimple< T > &l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< bool > operator>= (const VecSimple< T > &l, const S r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< bool > operator>= (const S l, const VecSimple< T > &r)
template<class T>
static ARCH_HOSTDEV VecSimple< bool > operator< (const VecSimple< T > &l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< bool > operator< (const VecSimple< T > &l, const S r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< bool > operator< (const S l, const VecSimple< T > &r)
template<class T>
static ARCH_HOSTDEV VecSimple< bool > operator<= (const VecSimple< T > &l, const VecSimple< T > &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< bool > operator<= (const VecSimple< T > &l, const S r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< bool > operator<= (const S l, const VecSimple< T > &r)
template<class T>
static ARCH_HOSTDEV VecSimple< T > min (VecSimple< T > const &l, VecSimple< T > const &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > min (S const l, VecSimple< T > const &r)
template<class T>
static ARCH_HOSTDEV VecSimple< T > max (VecSimple< T > const &l, VecSimple< T > const &r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > max (VecSimple< T > const &l, S const r)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > max (S const l, VecSimple< T > const &r)
template<class T>
static ARCH_HOSTDEV VecSimple< T > select (VecSimple< bool > const &a, VecSimple< T > const &b, VecSimple< T > const &c)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > select (VecSimple< bool > const &a, S const b, VecSimple< T > const &c)
template<class T, class S>
static ARCH_HOSTDEV VecSimple< T > select (VecSimple< bool > const &a, VecSimple< T > const &b, S const c)
template<class T>
static ARCH_HOSTDEV VecSimple< T > select (VecSimple< bool > const &a, T const b, T const c)
template<class T>
static ARCH_HOSTDEV bool horizontal_or (VecSimple< T > const &a)
template<class T>
static ARCH_HOSTDEV bool horizontal_and (VecSimple< T > const &a)
template<class T>
static ARCH_HOSTDEVhorizontal_add (VecSimple< T > const &a)
template<class T>
static ARCH_HOSTDEV VecSimple< int > truncate_to_int (VecSimple< T > const &a)
template<class T>
static ARCH_HOSTDEV VecSimple< int > roundi (VecSimple< T > const &a)
template<class T>
static ARCH_HOSTDEV VecSimple< T > floor (VecSimple< T > const &a)
template<class T>
static ARCH_HOSTDEV VecSimple< double > to_double (VecSimple< T > const &a)
template<class T>
static ARCH_HOSTDEV VecSimple< float > to_float (VecSimple< T > const &a)

Function Documentation

◆ abs()

template<class T>
ARCH_HOSTDEV VecSimple< T > abs ( const VecSimple< T > & l)
inlinestatic

Definition at line 81 of file vectorclass_fallback.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ floor()

template<class T>
ARCH_HOSTDEV VecSimple< T > floor ( VecSimple< T > const & a)
inlinestatic

Definition at line 598 of file vectorclass_fallback.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ horizontal_add()

template<class T>
ARCH_HOSTDEV T horizontal_add ( VecSimple< T > const & a)
inlinestatic

Definition at line 569 of file vectorclass_fallback.h.

Here is the caller graph for this function:

◆ horizontal_and()

template<class T>
ARCH_HOSTDEV bool horizontal_and ( VecSimple< T > const & a)
inlinestatic

Definition at line 560 of file vectorclass_fallback.h.

Here is the caller graph for this function:

◆ horizontal_or()

template<class T>
ARCH_HOSTDEV bool horizontal_or ( VecSimple< T > const & a)
inlinestatic

Definition at line 551 of file vectorclass_fallback.h.

Here is the caller graph for this function:

◆ max() [1/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > max ( S const l,
VecSimple< T > const & r )
inlinestatic

Definition at line 501 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ max() [2/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > max ( VecSimple< T > const & l,
S const r )
inlinestatic

Definition at line 491 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ max() [3/3]

template<class T>
ARCH_HOSTDEV VecSimple< T > max ( VecSimple< T > const & l,
VecSimple< T > const & r )
inlinestatic

Definition at line 481 of file vectorclass_fallback.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ min() [1/2]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > min ( S const l,
VecSimple< T > const & r )
inlinestatic

Definition at line 472 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ min() [2/2]

template<class T>
ARCH_HOSTDEV VecSimple< T > min ( VecSimple< T > const & l,
VecSimple< T > const & r )
inlinestatic

Definition at line 463 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ no_subnormals()

ARCH_HOSTDEV void no_subnormals ( )
static

Definition at line 78 of file vectorclass_fallback.h.

Here is the caller graph for this function:

◆ operator!()

template<class T>
ARCH_HOSTDEV VecSimple< bool > operator! ( const VecSimple< T > & l)
inlinestatic

Definition at line 316 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator!=()

template<class T, class S>
ARCH_HOSTDEV VecSimple< bool > operator!= ( const VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 306 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator&&()

template<class T>
ARCH_HOSTDEV VecSimple< bool > operator&& ( const VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 276 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator*() [1/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > operator* ( const S l,
const VecSimple< T > & r )
inlinestatic

Definition at line 187 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator*() [2/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > operator* ( const VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 177 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator*() [3/3]

template<class T>
ARCH_HOSTDEV VecSimple< T > operator* ( const VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 167 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator*=() [1/2]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > & operator*= ( VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 247 of file vectorclass_fallback.h.

◆ operator*=() [2/2]

template<class T>
ARCH_HOSTDEV VecSimple< T > & operator*= ( VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 241 of file vectorclass_fallback.h.

◆ operator+() [1/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > operator+ ( const S l,
const VecSimple< T > & r )
inlinestatic

Definition at line 111 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator+() [2/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > operator+ ( const VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 120 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator+() [3/3]

template<class T>
ARCH_HOSTDEV VecSimple< T > operator+ ( const VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 101 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator+=() [1/2]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > & operator+= ( VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 235 of file vectorclass_fallback.h.

◆ operator+=() [2/2]

template<class T>
ARCH_HOSTDEV VecSimple< T > & operator+= ( VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 229 of file vectorclass_fallback.h.

Here is the caller graph for this function:

◆ operator-() [1/4]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > operator- ( const S l,
const VecSimple< T > & r )
inlinestatic

Definition at line 149 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator-() [2/4]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > operator- ( const VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 158 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator-() [3/4]

template<class T>
ARCH_HOSTDEV VecSimple< T > operator- ( const VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 139 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator-() [4/4]

template<class T>
ARCH_HOSTDEV VecSimple< T > operator- ( const VecSimple< T > & r)
inlinestatic

Definition at line 129 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator-=() [1/2]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > & operator-= ( VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 259 of file vectorclass_fallback.h.

◆ operator-=() [2/2]

template<class T>
ARCH_HOSTDEV VecSimple< T > & operator-= ( VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 253 of file vectorclass_fallback.h.

◆ operator/() [1/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > operator/ ( const S l,
const VecSimple< T > & r )
inlinestatic

Definition at line 219 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator/() [2/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > operator/ ( const VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 209 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator/() [3/3]

template<class T>
ARCH_HOSTDEV VecSimple< T > operator/ ( const VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 199 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator<() [1/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< bool > operator< ( const S l,
const VecSimple< T > & r )
inlinestatic

Definition at line 417 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator<() [2/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< bool > operator< ( const VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 407 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator<() [3/3]

template<class T>
ARCH_HOSTDEV VecSimple< bool > operator< ( const VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 396 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator<=() [1/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< bool > operator<= ( const S l,
const VecSimple< T > & r )
inlinestatic

Definition at line 450 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator<=() [2/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< bool > operator<= ( const VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 440 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator<=() [3/3]

template<class T>
ARCH_HOSTDEV VecSimple< bool > operator<= ( const VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 429 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator==() [1/2]

template<class T, class S>
ARCH_HOSTDEV VecSimple< bool > operator== ( const VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 296 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator==() [2/2]

template<class T>
ARCH_HOSTDEV VecSimple< bool > operator== ( const VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 286 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator>() [1/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< bool > operator> ( const S l,
const VecSimple< T > & r )
inlinestatic

Definition at line 350 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator>() [2/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< bool > operator> ( const VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 338 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator>() [3/3]

template<class T>
ARCH_HOSTDEV VecSimple< bool > operator> ( const VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 327 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator>=() [1/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< bool > operator>= ( const S l,
const VecSimple< T > & r )
inlinestatic

Definition at line 384 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator>=() [2/3]

template<class T, class S>
ARCH_HOSTDEV VecSimple< bool > operator>= ( const VecSimple< T > & l,
const S r )
inlinestatic

Definition at line 372 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator>=() [3/3]

template<class T>
ARCH_HOSTDEV VecSimple< bool > operator>= ( const VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 361 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ operator||()

template<class T>
ARCH_HOSTDEV VecSimple< bool > operator|| ( const VecSimple< T > & l,
const VecSimple< T > & r )
inlinestatic

Definition at line 265 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ roundi()

template<class T>
ARCH_HOSTDEV VecSimple< int > roundi ( VecSimple< T > const & a)
inlinestatic

Definition at line 587 of file vectorclass_fallback.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ select() [1/4]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > select ( VecSimple< bool > const & a,
S const b,
VecSimple< T > const & c )
inlinestatic

Definition at line 522 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ select() [2/4]

template<class T>
ARCH_HOSTDEV VecSimple< T > select ( VecSimple< bool > const & a,
T const b,
T const c )
inlinestatic

Definition at line 542 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ select() [3/4]

template<class T, class S>
ARCH_HOSTDEV VecSimple< T > select ( VecSimple< bool > const & a,
VecSimple< T > const & b,
S const c )
inlinestatic

Definition at line 532 of file vectorclass_fallback.h.

Here is the call graph for this function:

◆ select() [4/4]

template<class T>
ARCH_HOSTDEV VecSimple< T > select ( VecSimple< bool > const & a,
VecSimple< T > const & b,
VecSimple< T > const & c )
inlinestatic

Definition at line 512 of file vectorclass_fallback.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sqrt()

template<class T>
ARCH_HOSTDEV VecSimple< T > sqrt ( const VecSimple< T > & l)
inlinestatic

Definition at line 91 of file vectorclass_fallback.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ to_double()

template<class T>
ARCH_HOSTDEV VecSimple< double > to_double ( VecSimple< T > const & a)
inlinestatic

Definition at line 607 of file vectorclass_fallback.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ to_float()

template<class T>
ARCH_HOSTDEV VecSimple< float > to_float ( VecSimple< T > const & a)
inlinestatic

Definition at line 616 of file vectorclass_fallback.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ truncate_to_int()

template<class T>
ARCH_HOSTDEV VecSimple< int > truncate_to_int ( VecSimple< T > const & a)
inlinestatic

Definition at line 578 of file vectorclass_fallback.h.

Here is the call graph for this function:
Here is the caller graph for this function: