# How to perform an operation on a 3D array and a matrix whilst returning a 3D array?

In R, let’s have an array and a matrix: a <- array(rep(1:3, each = 4), dim = c(2, 2, 3)) b <- matrix(seq(0, 1, length.out = 6), nrow = 2, ncol = 3) I want to use an function that utilises matrices from a along the 3rd dimension and columns in b as its two… Read More How to perform an operation on a 3D array and a matrix whilst returning a 3D array?