首页 技术 正文
技术 2022年11月6日
0 收藏 778 点赞 1,038 浏览 1115 个字

Linear algebra

简介

When SciPy is built using the optimized ATLAS LAPACK and BLAS libraries, it has very fast linear algebra capabilities.

If you dig deep enough, all of the raw lapack and blas libraries are available for your use for even more speed.

All of these linear algebra routines expect an object that can be converted into a 2-dimensional array. The output of these routines is also a two-dimensional array.

1.模块文档


2.可用方法

'bench','cholesky','cond','det','division','eig','array','eigh','eigvals','eigvalsh','info','inv','lapack_lite','linalg','lstsq','matrix_power','matrix_rank','multi_dot','norm','pinv','print_function','qr','slogdet','solve','svd','tensorinv','tensorsolve','test'
eig : eigenvalues and right eigenvectors of general arrays
eigvalsh : eigenvalues of symmetric or Hermitian arrays.
eigh : eigenvalues and eigenvectors of symmetric/Hermitian arrays.

3.常用方法

首先导入相关模块

import numpy as np
from scipy import linalg as LA
#or
#from numpy import linalg as LA

3.1求数组的行列式:det

数据分析基础之Linalg的使用

数据分析基础之Linalg的使用

3.2求方阵的特征值、特征向量:eig

数据分析基础之Linalg的使用

3.3求方阵的逆矩阵::inv

数据分析基础之Linalg的使用

数据分析基础之Linalg的使用

3.4求解线性方程组:solve

Solve the system of equations 3 * x0 + x1 = 9 and x0 + 2 * x1 = 8:

数据分析基础之Linalg的使用

3.5一个方阵的整数次幂:matrix_power

数据分析基础之Linalg的使用

数据分析基础之Linalg的使用

3.6计算在一个函数调用两个或两个以上的阵列的点积:multi_dot

数据分析基础之Linalg的使用

4.官网文档

https://docs.scipy.org/doc/numpy/reference/routines.linalg.html

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,075
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,551
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,399
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,176
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,811
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,893