Top "Linear-algebra" questions

Linear Algebra is a core body of mathematics studying vector spaces and linear mappings between these spaces.

Calculating an inverse matrix in Matlab

I'm running an optimization algorithm that requires calculation of the inverse of a matrix. The goal of the algorithm is …

matlab linear-algebra matrix-inverse numerical-stability
Sample from multivariate normal/Gaussian distribution in C++

I've been hunting for a convenient way to sample from a multivariate normal distribution. Does anyone know of a readily …

c++ statistics linear-algebra gaussian normal-distribution
Fastest algorithm for computing the determinant of a matrix?

For a research paper, I have been assigned to research the fastest algorithm for computing the determinant of a matrix. …

algorithm matrix complexity-theory linear-algebra determinants
Why does numpy.linalg.solve() offer more precise matrix inversions than numpy.linalg.inv()?

I do not quite understand why numpy.linalg.solve() gives the more precise answer, whereas numpy.linalg.inv() breaks down …

python arrays numpy matrix linear-algebra
Eigenvalues in MATLAB

In MATLAB, when I run the command [V,D] = eig(a) for a symmetric matrix, the largest eigenvalue (and its …

matlab linear-algebra eigenvector eigenvalue
How to create random orthonormal matrix in python numpy

Is there a method that I can call to create a random orthonormal matrix in python? Possibly using numpy? Or …

python numpy linear-algebra orthogonal
System of linear equations in C++?

I need to solve a system of linear equations in my program. Is there a simple linear algebra library for …

c++ linear-algebra
Equivalent of `polyfit` for a 2D polynomial in Python

I'd like to find a least-squares solution for the a coefficients in z = (a0 + a1*x + a2*y + a3*x**2 + …

python math numpy linear-algebra polynomial-math
How do axis-angle rotation vectors work and how do they compare to rotation matrices?

I'm having a bit of trouble understanding how axis-angle rotation vectors are used when rotating a vector in 3D space. …

matlab matrix linear-algebra rotational-matrices
Link ATLAS/MKL to an installed Numpy

TL;DR how to link ATLAS/MKL to existing Numpy without rebuilding. I have used Numpy to calculate with the …

python performance numpy linear-algebra blas