Posts by Gabriel Camelo • 11 points
1 post
-
0
votes2
answers526
viewsQ: Apply a function to each element of a python matrix
I need to apply a lambda function to all elements of a matrix in and it returns a matrix of the same size type like this: i have the matrix mat in numpy style: mat = array[[1, 2, 3], [4, 5, 6]] and…