Learn about the "dot operator" in Julia, which can be used to perform operations on each element of an array.
- [Instructor] When working with sets of data, … it's fairly common to have to apply … a transformation to all of the data items in a collection. … And some languages provide a map function for this … but Julia actually has a built in operator … that performs this function as part of the language itself. … It's called the vectorization operator … and sometimes it's just known as the dot operator … because of the syntax. … So let's see how this works. … And I'm going to open up the vector_start file. … So here I have an array of some data … and we're going to learn … more about arrays later in the course, … but for now just know that an array is a list of data items. … So let's suppose I wanted to multiply … each of these data items by two. … Now I could do that by looping over each item in the array … and multiplying each one, … but it's much easier to use the dot notation. … So here's what I'm going to do. … I'm going to write result is equal to array1 … and then I'm going to put a dot operator …
- Using the Julia REPL tool
- Differences between Julia and other languages
- Variables and data types
- Numbers in Julia
- Defining and operating on strings
- Using built-in functions in Julia
- Conditional statements
- Using array functions
- String processing
Skill Level Beginner
Python Basics for Java Developerswith Deepa Muralidhar42m 53s Beginner
Programming Foundations: Algorithmswith Joe Marini1h 45m Beginner
What you should know1m 26s
2. Language Basics
3. Language Features
4. Control Structures
5. Data Structures
6. Julia Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.