Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Broadcast for Array of Array

$
0
0

@hasanOryx wrote:

I’ve the below function

sigmoid(z::Real) = one(z) / (one(z) + exp(-z))

And want to broadcast it for all the element of x, where:

X = [
           [1, 2, 3],
           [3, 4, 5],
           [5, 6, 7]
       ]

I tried the normal way but failed

sigmoid.(X)

Posts: 17

Participants: 5

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images