vm_math  1.0.7
vm_VMath< T_fp, N_len > Class Template Reference

#include <vm_math/vm_vmath.h>

Public Types

typedef T_fp value_type
 

Static Public Member Functions

static void copy (T_fp v[], T_fp const cv[])
 
static void set (T_fp v[], T_fp r)
 
static void add_eq (T_fp v[], T_fp const cv[])
 
static void sub_eq (T_fp v[], T_fp const cv[])
 
static void mul_eq (T_fp v[], T_fp const cv[])
 
static void div_eq (T_fp v[], T_fp const cv[])
 
static void add_eq (T_fp v[], T_fp r)
 
static void sub_eq (T_fp v[], T_fp r)
 
static void mul_eq (T_fp v[], T_fp r)
 
static void div_eq (T_fp v[], T_fp r)
 
static void negate (T_fp v[])
 
static void add (T_fp v[], T_fp const cv1[], T_fp const cv2[])
 
static void sub (T_fp v[], T_fp const cv1[], T_fp const cv2[])
 
static void mul (T_fp v[], T_fp const cv1[], T_fp const cv2[])
 
static void div (T_fp v[], T_fp const cv1[], T_fp const cv2[])
 
static void add (T_fp v[], T_fp const cv[], T_fp r)
 
static void sub (T_fp v[], T_fp const cv[], T_fp r)
 
static void mul (T_fp v[], T_fp const cv[], T_fp r)
 
static void div (T_fp v[], T_fp const cv[], T_fp r)
 
static void add (T_fp v[], T_fp r, T_fp const cv[])
 
static void sub (T_fp v[], T_fp r, T_fp const cv[])
 
static void mul (T_fp v[], T_fp r, T_fp const cv[])
 
static void div (T_fp v[], T_fp r, T_fp const cv[])
 
static void lincomb (T_fp res[], T_fp c1, T_fp const v1[], T_fp c2, T_fp const v2[])
 
static std::ostream & print_on (std::ostream &os, T_fp const v[], int by, char const prefix[]="", char const postfix[]="")
 
static void cprint_on (FILE *of, T_fp const v[], int by, char const prefix[]="", char const postfix[]="")
 

Detailed Description

template<class T_fp, int N_len>
class vm_VMath< T_fp, N_len >

A template class providing common numerical operations on N_len-long 1 dimensional arrays of T_fp .

T_fp is a floating point type.

N_len is the length of the vector.

The array data are assumed to be stored as a contiguous one-dimensional array of N_len T_fp's, properly aligned for type T_fp.

Unless otherwise noted, the operations are component by component, e.g.,

    vm_VMath<float,4>::mul(prod, v1, v2)

corresponds to

    prod[i] = v1[i] * v2[i], where i = 0,1,2,3.

vm_VMath has only static member functions; there are no data members.

Where possible, the static member functions are inlined.

Definition at line 78 of file vm_vmath.h.

Member Typedef Documentation

template<class T_fp, int N_len>
vm_VMath< T_fp, N_len >::value_type

a typedef for the floating point type;

Definition at line 91 of file vm_vmath.h.


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