Top "Linear-algebra" questions

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

How expensive is it to compute the eigenvalues of a matrix?

How expensive is it to compute the eigenvalues of a matrix? What is the complexity of the best algorithms? How …

r matrix linear-algebra sparse-matrix eigenvalue
Fast sparse matrix multiplication

for class I have to write my own linear equation solver for sparse matrices. I am free to use any …

c++ matrix linear-algebra sparse-matrix matrix-multiplication
Left Matrix Division and Numpy Solve

I am trying to convert code that contains the \ operator from Matlab (Octave) to Python. Sample code B = [2;4] b = [4;4] B \ …

python matlab numpy octave linear-algebra
Efficient & pythonic check for singular matrix

Working on some matrix algebra here. Sometimes I need to invert a matrix that may be singular or ill-conditioned. I …

python numpy linear-algebra
Fitting a line in 3D

Are there any algorithms that will return the equation of a straight line from a set of 3D data points? …

python numpy linear-algebra curve-fitting
Numpy Adding two vectors with different sizes

If I have two numpy arrays of different sizes, how can I superimpose them. a = numpy([0, 10, 20, 30]) b = numpy([20, 30, 40, 50, 60, 70]) What is …

python numpy linear-algebra
C library for linear algebra

Please, give me some tips for a HIGH PERFORMANCE C library for linear algebra (matrix algebra, eigenvalues, eigenvectors etc.). Can …

c linear-algebra
Is there any fast method of matrix exponentiation?

Is there any faster method of matrix exponentiation to calculate Mn (where M is a matrix and n is an …

algorithm linear-algebra matrix-multiplication
Understanding tensordot

After I learned how to use einsum, I am now trying to understand how np.tensordot works. However, I am …

python numpy linear-algebra tensor dot-product
How to change elements in sparse matrix in Python's SciPy?

I have built a small code that I want to use for solving eigenvalue problems involving large sparse matrices. It's …

python math linear-algebra sparse-matrix