Fleshed out the math of kernel creation using vector functions from Accelerate.