- Hands-On Artificial Intelligence for Beginners
- Patrick D. Smith
- 51字
- 2021-06-10 19:33:44
Scalar operations
Scalar operations involve a vector (or matrix) and a scalar. To perform an operation with a scalar on a matrix, simply apply to the scalar to every item in the matrix:

In Python, we would simply do the following:
vector = np.array([[1,2], [1,2]])
new_vector = vector + 2
推薦閱讀
- Instant Raspberry Pi Gaming
- Big Data Analytics with Hadoop 3
- 計(jì)算機(jī)應(yīng)用
- Excel 2007函數(shù)與公式自學(xué)寶典
- 輕松學(xué)PHP
- WOW!Illustrator CS6完全自學(xué)寶典
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- Spark大數(shù)據(jù)技術(shù)與應(yīng)用
- Google SketchUp for Game Design:Beginner's Guide
- 工業(yè)機(jī)器人安裝與調(diào)試
- Red Hat Linux 9實(shí)務(wù)自學(xué)手冊
- Mastering Geospatial Analysis with Python
- 青少年VEX IQ機(jī)器人實(shí)訓(xùn)課程(初級)
- 大數(shù)據(jù):從基礎(chǔ)理論到最佳實(shí)踐
- Office 2010輕松入門