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
0
votes
1 answer

I don't find the LU decomposition on the device with cuSolver

I need to calculate the determinant of a matrix (array of double) with cuda and I want use the LU decomposition to do this. I don't find the device function in cusolverSp.h but only the host function cusolverSpDcsrlsvluHost. I look in cuda 7.0 and…
TuDa
  • 77
  • 1
  • 1
  • 8
0
votes
0 answers

Indirect Recursion in C++ Using const Keyword

In my program I am trying to calculate the determinant of a matrix (2D array) using indirect recursion to perform cofactor expansion (i.e. two functions recursively call each other each). However, the compiler complains that it cannot convert the…
0
votes
1 answer

Perl - Determinant of Matrix Containing Variables

I have a Perl program containing the following methods: det To find the determinant of a matrix. identityMatrix Return an n by n identity matrix (1s on the main diagnal, rest 0s). matrixAdd To add two matrices together. matrixScalarMultiply To…
Kolibrie
  • 139
  • 1
  • 13
0
votes
0 answers

Roots of transcendental equation formed from determinant of a matrix containing bessel functions in Matlab

I need to find roots of a transcendental equation formed by taking determinant of the following matrix. As you can see it is full of Bessel functions. I tired using the "fzero" command but it is not working. All the bessel function inputs such as…
0
votes
1 answer

Getting Non-Type error while trying to find the determinant of an N*N matrix

I am trying to make a program to find the determinant of an N*N matrix and here is my code: from copy import deepcopy n = input() myMatrix = [] for i in range(n): myMatrix.append(raw_input().split()) def findMinor(matrix, i): minor =…
Mehdi Alali
  • 163
  • 1
  • 11
0
votes
1 answer

Matlab: Determinant of VarianceCovariance matrix

When solving the log likelihood expression for autoregressive models, I cam across the variance covariance matrix Tau given under slide 9 Parameter estimation of time series tutorial. Now, in order to use fminsearch to maximize the likelihood…
SKM
  • 959
  • 2
  • 19
  • 45
0
votes
2 answers

determinant algorithm of a 4x4 matrix

I pick the first row and multiply each element by its cofactor, but in some cases the method is returning nan. For example, 1 0 0 1 0 2 0 0 0 0 3 0 0 0 0 4 in this case the method returns nan. Does anyone know what I did wrong? getDet3 returns…
user
  • 85
  • 3
  • 13
0
votes
2 answers

How do I find the determinant of a 2x2 matrix?

It has to be ad-bc Here is my code but it says that a aList is not defined def findDeterminate(alist): value=0 aList = [[a,b],[c,d]] for i in range (0, len(aList)): value = aList[0][1]*aList[1][2] - aList[0][2]*aList[1][1] def…
PattyIce
  • 1
  • 1
  • 1
0
votes
1 answer

Computing Array Determinant for NxN Recursive C#

Well, this is giving me a real headache. I'm building a matrix determinant function to compute NxN determinant, and I'm using recursion. The logic is working right but I'm not able to get the final value computed correctly. Here is my code for…
WT86
  • 823
  • 5
  • 13
  • 34
0
votes
1 answer

Determinant of a matrix by Gaussian elimination C++

I was trying to find the code for finding the determinant of a square matrix , and I came across this code. int det(vector > mat) { int n = mat.size(); for(int col = 0; col < n; ++col) { bool found =…
Tamim Addari
  • 7,591
  • 9
  • 40
  • 59
0
votes
1 answer

Python: Solving equation system (coefficients are arrays)

I can solve a system equation (using NumPY) like this: >>> a = np.array([[3,1], [1,2]]) >>> b = np.array([9,8]) >>> y = np.linalg.solve(a, b) >>> y array([ 2., 3.]) But, if I got something like this: >>> x = np.linspace(1,10) >>> a =…
nandhos
  • 681
  • 2
  • 16
  • 31
0
votes
5 answers

Finding Determinant of a matrix in C

This is the C code for determinant of matrix, But it gives compilation errors. Code is: #include #include int m; float determinant(float b[][]); int main(void) { int i,j,m; printf("enter a no:…
user2696258
  • 1,159
  • 2
  • 14
  • 26
0
votes
3 answers

Does the function det() in matlab use parallel computing

I have this very nasty matrix that has in it long polynomials that came from a solution of a resultant of two polynomials in two variables . I need to get the determinant of this matrix, should I try to find an algorithm to use parallel computing or…
user1
  • 15
  • 6
0
votes
1 answer

Matrix Calculation in MATLAB

Could someone help me solve this problem in Matlab.. Suppose I have this Matriks A=[2-x 5 2 3-x ] where det(A)=0; So, it can be written as : (to alculate the detrminant) (2-x * 3-x)-(5*2)=0 But In matlab I cannot put x before I…
user3303896
  • 57
  • 1
  • 2
  • 6
0
votes
1 answer

Why would a simply quotient cause so much overhead?

I am coding in the analytic expression for a determinant a follows: detW = & (one+be*(u11+u22+u33)-& be2*(u12sq+u13sq-u11*u22+u23sq-u11*u33-u22*u33)-& al2*(-(u11*u22)+u13sq*(one+three*be*u22)-six*be*u12*u13*u23+u23sq+three*be*u11*u23sq-& …
drjrm3
  • 4,474
  • 10
  • 53
  • 91