BRL-CAD
Loading...
Searching...
No Matches
dvec< LEN > Class Template Reference

#include <dvec.h>

Data Structures

class  add
 
class  mul
 
class  sqrt
 
class  sub
 

Public Member Functions

 dvec (double s)
 
 dvec (const double *vals)
 
 dvec (const float *vals)
 
 dvec (const dvec< LEN > &p)
 
dvec< LEN > & operator= (const dvec< LEN > &p)
 
double operator[] (int index) const
 
void u_store (double *arr) const
 
void u_store (float *arr) const
 
void a_store (double *arr) const
 
void a_store (float *arr) const
 
bool operator== (const dvec< LEN > &b) const
 
dvec< LENoperator+ (const dvec< LEN > &b)
 
dvec< LENoperator- (const dvec< LEN > &b)
 
dvec< LENoperator* (const dvec< LEN > &b)
 
dvec< LENoperator/ (const dvec< LEN > &b)
 
dvec< LENmadd (const dvec< LEN > &s, const dvec< LEN > &b)
 
dvec< LENmadd (const double s, const dvec< LEN > &b)
 
dvec< LENmap (const dvec_unop &operation, int limit=LEN)
 
double foldr (double proto, const dvec_op &operation, int limit=LEN)
 
double foldl (double proto, const dvec_op &operation, int limit=LEN)
 

Detailed Description

template<int LEN>
class dvec< LEN >

Definition at line 74 of file dvec.h.

Constructor & Destructor Documentation

◆ dvec() [1/4]

◆ dvec() [2/4]

template<int LEN>
dvec ( const double vals)

◆ dvec() [3/4]

template<int LEN>
dvec ( const float vals)

◆ dvec() [4/4]

template<int LEN>
dvec ( const dvec< LEN > &  p)

Member Function Documentation

◆ operator=()

template<int LEN>
dvec< LEN > & operator= ( const dvec< LEN > &  p)

◆ operator[]()

template<int LEN>
double operator[] ( int  index) const

◆ u_store() [1/2]

template<int LEN>
void u_store ( double arr) const

◆ u_store() [2/2]

template<int LEN>
void u_store ( float arr) const

◆ a_store() [1/2]

template<int LEN>
void a_store ( double arr) const

◆ a_store() [2/2]

template<int LEN>
void a_store ( float arr) const

◆ operator==()

template<int LEN>
bool operator== ( const dvec< LEN > &  b) const

◆ operator+()

template<int LEN>
dvec< LEN > operator+ ( const dvec< LEN > &  b)

◆ operator-()

template<int LEN>
dvec< LEN > operator- ( const dvec< LEN > &  b)

◆ operator*()

template<int LEN>
dvec< LEN > operator* ( const dvec< LEN > &  b)

◆ operator/()

template<int LEN>
dvec< LEN > operator/ ( const dvec< LEN > &  b)

◆ madd() [1/2]

template<int LEN>
dvec< LEN > madd ( const dvec< LEN > &  s,
const dvec< LEN > &  b 
)

◆ madd() [2/2]

template<int LEN>
dvec< LEN > madd ( const double  s,
const dvec< LEN > &  b 
)

◆ map()

template<int LEN>
dvec< LEN > map ( const dvec_unop operation,
int  limit = LEN 
)

◆ foldr()

template<int LEN>
double foldr ( double  proto,
const dvec_op operation,
int  limit = LEN 
)

Referenced by mat2d_inverse(), and v2mag().

◆ foldl()

template<int LEN>
double foldl ( double  proto,
const dvec_op operation,
int  limit = LEN 
)

The documentation for this class was generated from the following file: