amprod.Rd
This R implementation is used for operations not covered by the specialized Cpp optimizations (like 4D Z).
amprod(A, M, k)