AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ strideproduct()

template<typename T1 , typename T2 , int I>
static T1 aff::util::Inline2< T1, T2, I >::strideproduct ( const T1 *  A,
const T2 *  B 
)
inlinestatic

calculate stride product

Parameters
A$ A_l $
B$ B_l $
Returns
$ A_{0}+\sum\limits_{l=1}^{I-1} \left(A_l\,\prod\limits_{k=0}^{l-1}B_k\right) =A_{0}+B_{0}\;(A_{1}+B_{1}\;(A_{2}+\ldots)) $

This is used to calculate offset values for the strided shape.

See also
aff::Strided

Definition at line 210 of file rawarfun.h.

211  {
212  return((*A)+(*B)*Inline2<T1, T2, I-1>::strideproduct(&(A[1]),&(B[1])));
213  }
static T1 strideproduct(const T1 *A, const T2 *B)
calculate stride product
Definition: rawarfun.h:210