Broadcasting, methods and multiple-dispatch

Image for post
Image for post

This is part 9 of the Julia Tutorials (a series of tutorials on Julia). If you are not familiar with Julia functions, please go through part 8 for better understanding.

If you are not familiar with Julia and want to get started with it, feel free to check out the complete series @ —

Note: Use Julia’s REPL to quickly follow along with the codes in this tutorial

Broadcasting

Broadcasting in Julia helps to write performant code. Think of an application where you want to update an iterable such as an array element-wise, the most straight forward approach is iterating through each entry of the array using a for loop and updating them. But, this can be made more efficient by using Julia’s built-in broadcasting operators. …


Single, multiple, compound expressions, anonymous functions and scopes

Image for post
Image for post

This is part 8 of the Julia Tutorials (a series of tutorials on Julia). If you are not familiar with Julia Control flows, please go through part 7 for better understanding.

If you are not familiar with Julia and want to get started with it, feel free to check out the complete series @ —

Note: Use Julia’s REPL to quickly follow along with the codes in this tutorial

Functions are the important building blocks in Julia, a function is simply a block of code used to perform a single/set of tasks. …


if/elseif/else, ternary, boolean switching, while and for

Image for post
Image for post

This is part 7 of the Julia Tutorials (a series of tutorials on Julia). If you are not familiar with Julia Operators, please go through part 6 for better understanding.

If you are not familiar with Julia and want to get started with it, feel free to check out the complete series @ —

Note: Use Julia’s REPL to quickly follow along with the codes in this tutorial

Control flow (or flow of control) is the order in which individual statements, instructions or function calls of an imperative program are executed or evaluated.

if/elseif/else

Simple if
Used to execute a block of code if it satisfies a condition. …

About

Adarsh Ms

Tech-savvy | Information geek | Keeper of creative mind | Night-Thinker

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store