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

◆ strideproduct()

template<typename T , int I>
static T aff::util::Inline< T, I >::strideproduct ( const T *  A,
const T *  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 128 of file rawarfun.h.

Referenced by aff::inline_strideproduct().

129  {
130  return((*A)+(*B)*Inline<T, I-1>::strideproduct(&(A[1]),&(B[1])));
131  }
static T strideproduct(const T *A, const T *B)
calculate stride product
Definition: rawarfun.h:128
Here is the caller graph for this function: