Questions tagged [linear-algebra]

Linear Algebra is a core body of mathematics studying vector spaces and linear mappings between these spaces. Key topics include: matrices, vectors, simultaneous systems of linear equations, diagonal form, eigenvalues, eigenvectors, projections, points, lines, planes, hyperplanes, rotations and reflections.

Linear Algebra is a core body of mathematics studying vector spaces and linear mappings between these spaces. It has extensive applications in computer graphics, economics, engineering, and control systems, among other fields.

Key topics include: matrices, vectors, simultaneous systems of linear equations, diagonal form, eigenvalues, eigenvectors, projections, points, lines, planes, hyperplanes, rotations, reflections, shears, scaling.

Popular packages for solving linear algebra problems include , , , and .

4466 questions
2
votes
1 answer

How to determine the eigenvalues of sympy.matrices.dense.MutableDenseMatrix?

The Python SymPy Matrix API has a method to determine the eigenvalue. I would like to do similar thing with SymPy MutableDenseMatrix. Unfortunately, the API doesn't allow me to do it. Is there any way to do it?
Omar Shehab
  • 1,004
  • 3
  • 14
  • 26
2
votes
2 answers

MathNumerics.LinearAlgebra Matrix.mapRows dimensionality issues

So I have verified that the starting version of what I'm trying to do works, but for some reason when putting it into the Matrix.map high order function it breaks down. Here is the failing function: let SumSquares (theta:Vector)…
David Crook
  • 2,722
  • 3
  • 23
  • 49
2
votes
2 answers

Transforming a set of symbolic linear equations in to matrix form

I would like to transform a set of symbolic linear equations in to a form like: {0} = [M]*{v} where {0} is vector of zeros, [M] is the matrix of variables and {v} is the vector of coefficients. Just for the sake of presenting you my problem, I would…
mcluka
  • 285
  • 1
  • 7
  • 17
2
votes
0 answers

LAPACK: Solving large periodic banded system of equations

I have to solve a large number of simultaneous equations (~1000s) to solve at every time step for a general mean curvature flow problem. The problem is defined over closed manifolds so the boundary condition is periodic. I am using…
hkrish
  • 1,259
  • 1
  • 10
  • 11
2
votes
2 answers

How to see scaling matrices from a geometric perspective

I'm using XNA but it doesn't matter too much for this example. So let's say I have a sprite. I then apply a scaling matrix before anything. Is the scaling matrix applied scaling the local axis of the sprite or just moving the points down? In other…
Ilya
  • 1,215
  • 1
  • 14
  • 25
2
votes
1 answer

How to compute the symmetric of a point (high dimension space) with respect to a hyperplane formed by a set of points?

I'm using C++ and I want to calculate the symmetric of a point with respect to a hyperplane. I'm in a dimension given at execution time. I have the points in the hyperplane. So I calculated the normal vector by solving a set of linear equations.…
dev93
  • 337
  • 4
  • 14
2
votes
3 answers

Creating a sparse matrix from lists of sub matrices (Python)

This is my first SO question ever. Let me know if I could have asked it better :) I am trying to find a way to splice together lists of sparse matrices into a larger block matrix. I have python code that generates lists of square sparse matrices,…
Geoffrey Sametz
  • 618
  • 1
  • 6
  • 17
2
votes
0 answers

computing null space via opencv

Is there an alternative command in OpenCV to null command in MATLAB, which given a vector v computes an orthogonal basis for the null space which v is one of its basis vectors?
2
votes
1 answer

numpy.linalg.pinv() hangs for some infinite values (but not for others)

In my code I need to compute pseudoinverse of matrices and it may happen that some of the elements of the matrix are infinite (np.inf). Sometimes the pinv() function handles it well and returns something, but sometimes it just hangs with 100% CPU…
zegkljan
  • 8,051
  • 5
  • 34
  • 49
2
votes
0 answers

Matlab Multiply A Matrix By Individual Sections of Another Matrix And Get the Diagonal Elements

The title of this post may be a bit confusing. Please allow me to provide a bit of context and then elaborate on what I'm asking. For your reference, the question I'm asking is toward the end and is denoted by bold letters. I provide some code,…
DMML
  • 1,422
  • 4
  • 22
  • 39
2
votes
1 answer

Get vertexes of object by simplex method

I'd like to find a vertexes of objects, which is determined by some equations. For example. Eq1: 2x + y + z <= 12; Eq2: x + y >= 23; Eq3: x + y + z <= 10; And it's limited by x >= 0 y >= 0 z => 0 And it gives a hexahedron. I want to…
Pavvi
  • 73
  • 11
2
votes
1 answer

Solve linear equation of AX=B

I currently solve Ax=b equation two times. where A is sparse matrix NxN x, b are vectors of size N. (I have b1 and b2) I want to reduce times by solving both of them in one shot using cusparse functions. so what I though is to build from the 2 b's I…
Rotem.O
  • 93
  • 1
  • 11
2
votes
1 answer

Compute the change of basis matrix in Matlab

I've an assignment where I basically need to create a function which, given two basis (which I'm representing as a matrix of vectors), it should return the change of basis matrix from one basis to the other. So far this is the function I came up…
nbro
  • 15,395
  • 32
  • 113
  • 196
2
votes
2 answers

summing outer product of multiple vectors in einsum

I have read through the einsum manual and ajcr's basic introduction I have zero experience with einstein summation in a non-coding context, although I have tried to remedy that with some internet research (would provide links but don't have the…
dWitty
  • 494
  • 9
  • 22
2
votes
2 answers

Python - Get steps needed to convert matrix to RREF

I have the following problem: I have two binary matrices, that might look like this: | 1 | 0 | 1 | 0 | 0 | 1 | | 1 | 0 | 0 | 0 | 0 | 0 | | 0 | 1 | 1 | 1 | 0 | 1 | | 0 | 1 | 0 | 0 | 0 | 0 | a = | 0 | 0 | 0 | 1 | 1 | 0 | b = | 0…
Morten Jensen
  • 113
  • 1
  • 2
  • 6