单位矩阵的逆| 使用Python的线性代数
Prerequisites:
先决条件:
Defining a Matrix
定义矩阵
Identity Matrix
身份矩阵
There are matrices whose inverse is the same as the matrices and one of those matrices is the identity matrix.
有些矩阵的逆与矩阵相同,并且这些矩阵之一是单位矩阵。
I-.1 = I
Syntax:
句法:
inv_M = numpy.linalg.inv(I)
Here, "M" is the an identity matrix.
在此,“ M”是单位矩阵。
Python代码查找单位矩阵的逆矩阵 (Python code to find the inverse of an identity matrix)
# Linear Algebra Learning Sequence
# Inverse of a Identity Matrix
import numpy as np
I = np.eye(6)
print("---Matrix I---\n", I)
ai = np.linalg.inv(I)
print('\n\nInverse of A as ----\n', ai)
print('\n\nThe Matrices are same')
Output:
输出:
---Matrix I---
[[1. 0. 0. 0. 0. 0.]
[0. 1. 0. 0. 0. 0.]
[0. 0. 1. 0. 0. 0.]
[0. 0. 0. 1. 0. 0.]
[0. 0. 0. 0. 1. 0.]
[0. 0. 0. 0. 0. 1.]]
Inverse of A as ----
[[1. 0. 0. 0. 0. 0.]
[0. 1. 0. 0. 0. 0.]
[0. 0. 1. 0. 0. 0.]
[0. 0. 0. 1. 0. 0.]
[0. 0. 0. 0. 1. 0.]
[0. 0. 0. 0. 0. 1.]]
The Matrices are same
翻译自: https://www.includehelp.com/python/inverse-of-an-identity-matrix.aspx
单位矩阵的逆| 使用Python的线性代数相关推荐
- 使用python学线性代数_最简单的神经网络简介| 使用Python的线性代数
使用python学线性代数 A neural network is a powerful tool often utilized in Machine Learning because neural ...
- 使用python学线性代数_二项式过程| 使用Python的线性代数
使用python学线性代数 When we flip a coin, there are two possible outcomes as head or tail. Each outcome has ...
- 线性代数分块矩阵求逆矩阵_单位矩阵属性(AI = A)| 使用Python的线性代数
线性代数分块矩阵求逆矩阵 Prerequisites: 先决条件: Defining Matrix 定义矩阵 Identity matrix 身份矩阵 numpy.matmul( ) matrix m ...
- 单位矩阵属性(I ^ k = I)| 使用Python的线性代数
Prerequisites: 先决条件: numpy.matmul( ) matrix multiplication numpy.matmul()矩阵乘法 Identity matrix 身份矩阵 I ...
- python与线性代数 矩阵
1.标量相乘 每个元素与标量相乘 设A,B,CA,B,CA,B,C是相同维数的矩阵,rrr与s" role="presentation" style="posi ...
- 矩阵形状| 使用Python的线性代数
Prerequisite: Linear Algebra | Defining a Matrix 先决条件: 线性代数| 定义矩阵 In the python code, we will add tw ...
- 线性代数 向量长度_用户定义长度的向量| 使用Python的线性代数
线性代数 向量长度 Prerequisite: Defining a vector 先决条件: 定义向量 Linear algebra is the branch of mathematics con ...
- 调用向量的第i维分量| 使用Python的线性代数
Prerequisite: Linear Algebra | Defining a Vector 先决条件: 线性代数| 定义向量 Linear algebra is the branch of ma ...
- 线性方程组 python_线性方程组的表示 使用Python的线性代数
线性方程组 python Prerequisites: 先决条件: Defining a Vectors 定义向量 Defining a Matrix 定义矩阵 In this article, we ...
最新文章
- C#在WinForm中实现清空指定类型控件的内容
- SecureCRT上传和下载文件(下载默认目录)
- 新闻系统粗略说明文档
- thinkphp5如何使用ajax(变化的核心,也就是ajax作用的核心是什么)
- linux的vi把文件合并一行,学习Vim合并行的方法和技巧
- 若依项目如何打war包后在tomcat中运行呢?
- verilog中的initial块、always块详细解释
- RoaringBitmap分析及使用
- Chivas 芝华士12年-广告歌Sarah Khider《Mermaid Song》
- 如何清除手机拍照的图片 exif 防止泄露你的隐私
- 推荐两本 Spark 好书
- chm文件打不开的问题
- 时寒冰说经济大棋局我们怎么办_女王的棋局:艺术才华是闯天下的最佳武器
- 对于PS选区的初步认识
- android 充电模式deamon_它是首款无线充电手机,也是雷军十年前的最爱|极客博物馆...
- 【OpenVINO】OpenVINO 2022.1 安装教程(Windows)
- html加入图片如何自动平铺,css怎么让图片平铺?
- 奶爸日记 - 祝你生日快乐
- 绝地求生进游戏显示服务器未正常运行,绝地求生大逃杀BE服务器未正常运行简单解决办法一览...
- Failed to connect to gitee.com port 443: Timed out
热门文章
- java openmp库_OpenMP的环境变量及库函数
- Segmentaion标签的三种表示:poly、mask、rle
- archlinux详细安装步骤_最新Centos的liunx安装宝塔的详细步骤
- spring boot admin 2.2 获取日志失败_SB实战20-Spring Boot的日志和报告
- cad常青藤插件_原来还有这么好用的CAD插件,半小时就能做完一张图
- 计算机休眠怎么唤醒,电脑休眠后,就无法唤醒了?怎么办?快速教你解决这个问题...
- 蓝牙扫描过程解析_智慧定位系统之蓝牙网关在室内定位技术的原理浅析-新导智能...
- torch.view(), squeeze, unsqueeze
- 如何更新Postgresql的Jsonb数组
- vue中用数组语法绑定class