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
Efficient conditional in-place assignment for arrays?
Performance
arrays
7
490
January 14, 2022
Zeroing elements of matrix A depending on matrix B. Fast?
Performance
performance
19
1300
November 4, 2017
For loop inside an if condition statement
New to Julia
4
393
July 21, 2021
Style question: ternary operator or short circuit operator or if-end
General Usage
17
1333
February 6, 2020
Use condition result inside conditional
General Usage
8
925
January 6, 2021