Questions tagged [determinants]

Anything related to the computation of matrix determinants. The determinant of a square matrix is a number, computed from the matrix elements, that is extremely important in matrix algebra and its applications (geometry, linear systems solving, etc.).

Anything related to the computation of matrix determinants. The determinant of a square matrix is a number, computed from the matrix elements, that is extremely important in matrix algebra and its applications (geometry, linear systems solving, etc.).

See Wikipedia on matrix determinants.

225 questions
3
votes
1 answer

numpy: Possible for zero determinant matrix to be inverted?

By definition, a square matrix that has a zero determinant should not be invertible. However, for some reason, after generating a covariance matrix, I take the inverse of it successfully, but taking the determinant of the covariance matrix ends up…
kk415kk
  • 1,227
  • 1
  • 14
  • 30
3
votes
1 answer

How to efficiently use inverse and determinant in Eigen?

In Eigen there are recommendations that warn against the explicit calculation of determinants and inverse matrices. I'm implementing the posterior predictive for the multivariate normal with a normal-inverse-wishart prior distribution. This can be…
Anne van Rossum
  • 3,091
  • 1
  • 35
  • 39
3
votes
1 answer

Next step in calculating a matrix determinant

I am writing a method that will calculate the determinant of a matrix (here, a two-dimensional array) containing doubles. Here is what I've written: /// /// Checks to see if a matrix is square, and then computes its determinant ///…
3
votes
0 answers

Generating random coplanar points in a 3-D space

I need to generate random coplanar points in a 3-D space. The plane equation is: a*x + b*y + c*z = d I generate the plane by randomizing a, b, c and d. In order to generate random points on this plane, I use this code: …
user1310377
3
votes
3 answers

How do I solve a determinant in MATLAB?

As a simple example, let's say you have this matrix: M = [omega 1; 2 omega]; and you need to solve for the values of omega that satisfy the condition det M = 0. How do you do this in MATLAB? It is surely something simple, but I haven't…
Rook
  • 60,248
  • 49
  • 165
  • 242
3
votes
0 answers

Determinant of a square binary matrix c++

What is the faster algorith for solve the determinant of a square binary matrix in C++?
Trouner
  • 316
  • 2
  • 13
3
votes
1 answer

Symbolic perturbation of plane-based geometry

I know it's possible to apply a symbolic perturbation scheme like 'Simulation of Simplicity'(SoS) to geometric predicates like the 4-point orient, to avoid handling degenerate cases. I'm assuming it's also valid to do the same with plane-based…
mr grumpy
  • 1,513
  • 1
  • 10
  • 17
3
votes
2 answers

Matlab: determinant of a matrix of vectors

I have a 2x2 matrix, each element of which is a 1x5 vector. something like this: x = 1:5; A = [ x x.^2; x.^2 x]; Now I want to find the determinant, but this happens B = det(A); Error using det Matrix must be square. Now I can see why this…
Eddy
  • 6,661
  • 21
  • 58
  • 71
2
votes
5 answers

3x3 Matrix determinant function - making it faster

I'm writing a bigger program and getting the determinants of 3x3 matrices as fast as possible is pretty important for it to work well. I've read that I could use numPy to do it, but I thought that maybe writing my own code would be more educational…
Protagonist
  • 492
  • 1
  • 6
  • 17
2
votes
1 answer

Applying symbolic determinant in Matlab to an abstract class

I have implemented a class in Matlab, which overloads the '+', '-' and '*' operator. Now I am interested in calculating the determinant of a Matrix whose entries consist of instances of this class. Is there a lazy way to use the symbolic determinant…
Igor
  • 153
  • 5
2
votes
1 answer

How to define determinant of a matrix as a function in mathematica?

Let A(t)=(f1(t), f2(t); f3(t), f4(t)) be a 2*2 matrix first of all how can I define the matrix A(t) as a function of t then I would like to define the determinant of A as a function, i.e. d(t)=Det(A(t)) and then plot d(t). Actually I want to…
asd
  • 337
  • 3
  • 5
  • 13
2
votes
2 answers

Calculating the Determinant in C++

I was trying to calculate the determinant of a 3 * 3 matrix (or more) with the matrix values ranging from (-1, to 1). However, I get a result of 0 when I calculate the determinant. [...] srand(time(NULL)); //Random generation of values between…
Josh
  • 3,231
  • 8
  • 37
  • 58
2
votes
1 answer

Haskell implementation of Determinant, Rank and Inverse Matrix calculation- input matrix size limitation

I'm new to Haskell. As a part of an academic course, I was requested to implement a function in Haskell that calculates the determinant, rank and inverse matrix of a given matrix. I use gaussian elimination (performing same row operations on both…
Menish
  • 21
  • 3
2
votes
1 answer

matrix determinant in CUDA

Recently I started to study the CUDA technology, which allows me to increase the speed of calculations by several times thanks to the paralleling technology. The program I wrote has to calculate the determinant of a square matrix using the Gaussian…
Fillenbill
  • 21
  • 3
2
votes
1 answer

Determinant in sympy

Hello I have this code: import numpy as np from sympy import * import sympy x = Symbol('x') x0 = Symbol('x0') B = Symbol('B') E = Symbol('E') linewidth = Symbol('linewidth') f = 1/pi*(linewidth/2)/((x - (E+2*B))**2 + (linewidth/2)**2) def…
JohnDoe122
  • 638
  • 9
  • 23
1 2
3
14 15