线性代数向量乘法

Prerequisite: Linear Algebra | Defining a Vector

先决条件: 线性代数| 定义向量

Linear algebra is the branch of mathematics concerning linear equations by using vector spaces and through matrices. In other words, a vector is a matrix in n-dimensional space with only one column. In linear algebra, there are two types of multiplication:

线性代数是使用向量空间和矩阵的线性方程组的数学分支。 换句话说,向量是n维空间中只有一列的矩阵。 在线性代数中,有两种类型的乘法:

  1. Scalar Multiplication

    标量乘法

  2. Cross Multiplication

    交叉乘法

In a scalar product, each component of the vector is multiplied by the same a scalar value. As a result, the vector’s length is increased by scalar value.

在标量积中,向量的每个分量都乘以相同的标量值。 结果,向量的长度增加了标量值。

For example: Let a vector a = [4, 9, 7], this is a 3 dimensional vector (x,y and z)

例如:令向量a = [4、9、7],这是3维向量(x,y和z)

So, a scalar product will be given as b = c*a

因此,标量积将给出为b = c * a

Where c is a constant scalar value (from the set of all real numbers R). The length vector b is c times the length of vector a.

其中c是常数标量值(来自所有实数R的集合)。 长度矢量b是向量a的长度c倍。

向量标量乘法的Python代码 (Python code for Scalar Multiplication of Vector)

# Vectors in Linear Algebra Sequnce (5)
# Scalar Multiplication of Vector
def scalar(c, a):
b = []
for i in range(len(a)):
b.append(c*a[i])
return b
a = [3, 5, -5, 8] # This is a 4 dimensional vector
print("Vector a = ", a)
c = int(input("Enter the value of scalar multiplier: "))
# The vector b will have the same dimensions
# but the overall magnitute is c times a
print("Vector (b = c*a) = ", scalar(c, a))

Output

输出量

Vector a =  [3, 5, -5, 8]
Enter the value of scalar multiplier: 3
Vector (b = c*a) =  [9, 15, -15, 24]

翻译自: https://www.includehelp.com/python/scalar-multiplication-of-vector.aspx

线性代数向量乘法

线性代数向量乘法_向量的标量乘法| 使用Python的线性代数相关推荐

  1. 线性代数向量内积_向量的外积| 使用Python的线性代数

    线性代数向量内积 Prerequisites: 先决条件: Defining Vector using Numpy 使用Numpy定义向量 Learn: how to code for outer p ...

  2. python 向量二范数_向量的范数| 使用Python的线性代数

    python 向量二范数 Prerequisite: 先决条件: Defining Vector using Numpy 使用Numpy定义向量 Here, we are going to learn ...

  3. 线性代数向量乘法_标量乘法属性1 | 使用Python的线性代数

    线性代数向量乘法 Prerequisite: Linear Algebra | Defining a Vector 先决条件: 线性代数| 定义向量 Linear algebra is the bra ...

  4. 线性代数矩阵行列式_矩阵的行列式 使用Python的线性代数

    线性代数矩阵行列式 In linear algebra, the determinant is a scalar value that can be computed for a square mat ...

  5. 使用python学线性代数_最简单的神经网络简介| 使用Python的线性代数

    使用python学线性代数 A neural network is a powerful tool often utilized in Machine Learning because neural ...

  6. 使用python学线性代数_二项式过程| 使用Python的线性代数

    使用python学线性代数 When we flip a coin, there are two possible outcomes as head or tail. Each outcome has ...

  7. 机器学习和深度学习之数学基础-线性代数 第一节 向量及线性映射

    转自:https://blog.csdn.net/yong_bai/article/details/80033516 yong_bai 发布于2018-04-18 21:40:15 阅读数 1440  ...

  8. 人工智能数学基础-线性代数2:向量的点积、內积、数量积和外积

    ☞ ░ 老猿Python博文目录░ 一.内积 1.1.定义 内积(inner product)又称数量积( scalar product).点积(dot product),是指接受在实数R上的两个向量 ...

  9. 怎么用python自制计算公式_手把手教你用python制作简易计算器,能够记录你使用的情况...

    话不多说,首先先看效果图,它能够记录你在使用过程中的历史,方便你查看是否有错: 接下来就仔细分析一下是如何制作的: 简易计算器 第一步:导入资源库 在过程中使用到了tkinter这个资源库,win+R ...

最新文章

  1. ASP.NET页面缓存介绍
  2. 撤消尚未推送的Git合并
  3. hosts文件配置不生效的解决办法
  4. matlab读取pdb文件,使用BioPython读取.pdb文件的整个目录
  5. 一个略显复杂的transformation算子_distinct
  6. 【Mybatis-Plus】(四)分页、乐观锁插件 通用枚举 多数据源
  7. java 生产者消费者代码_Java生产者和消费者代码
  8. 拟真机器人拯救者怎么来_笔点聊科技 篇九:3499起、卷土重来?理性聊聊刚发布的联想拯救者手机Pro...
  9. 【MySQL】MySQL监视器无法启动的可能情况
  10. eclipse中maven工程添加本地库至Maven Dependencies
  11. python应用系列教程——python使用smtp协议发送邮件:html文本邮件、图片邮件、文件附件邮件
  12. 华为交换机怎么关闭信息提示_iPhone 关闭支付宝自动扣费服务提示“无法解约”怎么办?...
  13. vs2019安装和使用教程(详细)
  14. CSS中animation动画-详解
  15. 你真的知道什么是元音什么是辅音吗?
  16. android学习资源大整合(持续更新ing)
  17. 单相全桥逆变器仿真,simulink,matlab
  18. 在VS中怎么用vb画矩形_怎样画颜色绚丽的插画?
  19. 微信开发者工具:单个安装微信开发者工具中没有的扩展(通过vsix 离线安装)
  20. 【C语言中“%d %%d %%%d“代表的意思】

热门文章

  1. BulletProof vs snark vs stark性能对比
  2. Redis知识点整理(详讲)
  3. 机器人香囊_中山街道仪凤街社区开展“能手包粽子 巧手绣香包”欢度端午节活动...
  4. 行走在数据库上的行癫(三)
  5. 小白学编程必备的三大网站
  6. uniapp做自己的启动页
  7. 详细理解JS的三座大山
  8. Spark On Yarn --jars/spark.yarn.jars 踩坑 与 提升spark submit速度
  9. Map和String互相转换
  10. Flink 生产环境配置建议