Internal function for the Tensor times Vector calculation
ttvCalculation(A, v, dim)
A
v
dim
Result of tensor times vector calculation
ttv