What result do you expect? Elementwise exponentiation? If so, you’ll have to broadcast the function to apply it to each element, like this: exp.(matrix)
.
Note the dot between the function name and the arguments - this is broadcasting.
What result do you expect? Elementwise exponentiation? If so, you’ll have to broadcast the function to apply it to each element, like this: exp.(matrix)
.
Note the dot between the function name and the arguments - this is broadcasting.