Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyiyin97 committed Apr 27, 2022
1 parent 007f8bc commit 93640d2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions 10_intro_julia.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -815,12 +815,12 @@
"id": {
"block": "YGbd9s4sS5lt5mBitmkJ",
"project": "4qWjnDwuuPUd70Df3LsC",
"version": 1
"version": 2
}
}
},
"source": [
"The core design to make Julia fast is type-stability through specialization via multiple-dispatch. A single function in Julia can take different types of input and compile the function in specialized ways. This \"specialization\" brings huge performance gains to Julia. Let's first go over a simple example, namely scalar multiplication, and use the macro `@code_llvm` to check what Julia compiles it to (LLVM is a type of portable assembly language)."
"The core design to make Julia fast is type-stability through specialization via multiple-dispatch. A single function in Julia can take different types of input and compile the function in specialized ways. This \"specialization\" brings huge performance gains to Julia. Let's first go over a simple example, namely scalar multiplication, and use the macro `@which` to check the method being used"
]
},
{
Expand Down Expand Up @@ -866,12 +866,12 @@
"id": {
"block": "rRJvyj4tLEoUJ4PPgVCr",
"project": "4qWjnDwuuPUd70Df3LsC",
"version": 1
"version": 2
}
}
},
"source": [
"In this example, we want to compute the multiplication of 2 integers. As we can see, the underlying assembly code is running the multiplication of integers."
"In this example, we want to compute the multiplication of 2 integers. As we can see, the underlying method is running the multiplication of integers."
]
},
{
Expand Down Expand Up @@ -917,12 +917,12 @@
"id": {
"block": "2T7liWcDr9NnK9O1YPKi",
"project": "4qWjnDwuuPUd70Df3LsC",
"version": 1
"version": 2
}
}
},
"source": [
"If we multiply 2 floating point numbers, we can see that a different (specialized) assembly code is used, which is designed specifically for the type `double` (`Float64` in Julia)."
"If we multiply 2 floating point numbers, we can see that a different method is used, which is designed specifically for the type `double` (`Float64` in Julia)."
]
},
{
Expand Down Expand Up @@ -1768,7 +1768,7 @@
"id": {
"block": "75XEhpExCShLZopzZkJe",
"project": "4qWjnDwuuPUd70Df3LsC",
"version": 5
"version": 6
}
},
"kernelspec": {
Expand Down

0 comments on commit 93640d2

Please sign in to comment.