Top "Linear-algebra" questions

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

Why is numpy.linalg.pinv() preferred over numpy.linalg.inv() for creating inverse of a matrix in linear regression

If we want to search for the optimal parameters theta for a linear regression model by using the normal equation …

python numpy matrix linear-algebra linear-regression
Power Method in MATLAB

I would like to implement the Power Method for determining the dominant eigenvalue and eigenvector of a matrix in MATLAB. …

matlab matrix linear-algebra numerical-methods eigenvector
Vectorizing a gradient descent algorithm

I am coding gradient descent in matlab. For two features, I get for the update step: temp0 = theta(1,1) - (alpha/…

java python matlab machine-learning linear-algebra
Make the matrix multiplication operator @ work for scalars in numpy

In python 3.5, the @ operator was introduced for matrix multiplication, following PEP465. This is implemented e.g. in numpy as the …

python numpy signal-processing linear-algebra matrix-multiplication
Can't understand the cost function for Linear Regression

I really can't understand the following equation, especially 1/(2m). What's the purpose of this equation? And where does 1/(2m) came …

math machine-learning linear-algebra
Given Three Points Compute Affine Transformation

I have two images and found three similar 2D points using a sift. I need to compute the affine transformation …

matlab image-processing geometry computer-vision linear-algebra
How to implement Matlab's mldivide (a.k.a. the backslash operator "\")

I'm currently trying to develop a small matrix-oriented math library (I'm using Eigen 3 for matrix data structures and operations) and …

c++ matlab matrix linear-algebra equation-solving
numpy arbitrary precision linear algebra

I have a numpy 2d array [medium/large sized - say 500x500]. I want to find the eigenvalues of the …

python math numpy linear-algebra arbitrary-precision
3D Camera coordinates to world coordinates (change of basis?)

Suppose I have the coordinates X, Y, Z and orientation Rx, Ry, Rz of an object with respect to a …

opencv geometry computer-vision linear-algebra projective-geometry
Calculating the trace of a matrix to the power k

I need to calculate the trace of a matrix to the power of 3 and 4 and it needs to be as …

math optimization linear-algebra mathematical-optimization adjacency-matrix