vm_math  1.0.7
Linear combinations

Functions

static void vm_VMath< T_fp, N_len >::lincomb (T_fp res[], T_fp c1, T_fp const v1[], T_fp c2, T_fp const v2[])
 

Detailed Description

Function Documentation

template<class T_fp, int N_len>
void vm_VMath< T_fp, N_len >::lincomb ( T_fp  res[],
T_fp  c1,
T_fp const  v1[],
T_fp  c2,
T_fp const  v2[] 
)
inlinestatic

form linear combination: res = c1 * v1 + c2 * v2.

  For each i:  res[i] = c1 * v1[i] + c2 * v2[i]
Parameters
resresult vector
c11st T_fp
v11st vector
c22nd T_fp
v22nd vector

Definition at line 441 of file vm_vmath.h.