[Date Index] [Thread Index] [Author Index]
Can you pass a matrix or a list into a module?
I have a module that has 5 input parameters. The first four input parameters are simple. The 5th parameter, I would like to pass in a matrix/list. I would like the output to be exactly the same size as the matrix/list. For example, let's pretend I have a matrix of stock prices. I have a module that calculates the Black Scholes options price given a stock price and other parameters. Can I pass this matrix into the module along with the other parameters so that it spits out the the matrix with all the option prices?