Julia Programming Language
Quick 'for' and 'if' one-line loop
New to Julia
question
Nosferican
July 16, 2020, 11:38pm
5
A generic approach
c .= ifelse.(c .== 0, 1, c)
5 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Zeroing elements of matrix A depending on matrix B. Fast?
Performance
performance
19
1381
November 4, 2017
How to do one-liners and other short conditionals?
General Usage
10
1346
September 27, 2017
Style question: ternary operator or short circuit operator or if-end
General Usage
17
1417
February 6, 2020
Efficient looping statement in Julia
Performance
15
5727
January 10, 2019
Condition on a whole array
General Usage
6
2719
February 19, 2018