Questions tagged [matrix-inverse]

The matrix inverse, A^{-1}, is a mathematical relationship such that given a square n x n matrix A, A*A^{-1} = A^{-1}*A = I, where I is the identity matrix. Use this tag with regards to any numerical methods or computations that require the use or calculation of the matrix inverse.

Computation of the inverse of a square matrix, provided it is invertible (i.e., full-rank), is often via LU factorization. When the matrix is positive-definite, Cholesky factorization is often used. In standard numerical linear algebra library , dgesv and dpotrf respectively performs LU and Cholesky factorization.

In reality it is rare that a matrix inverse needs be explicitly formed, and matrix multiplications involving a matrix inverse is done by one of the factorizations above, and a triangular system solving.

509 questions
-1
votes
1 answer

Adapt existing code and Kernel code to perform a high number of 3x3 matrix inversion

Following a previous question ( Performing high number of 4x4 matrix inversion - PyCuda ), considering the inversion of 4x4 matrix, I would like to do the same but with 3x3 matrix. As @Robert Crovella said, this change implies a complete…
user1773603
-1
votes
1 answer

Performing high number of 4x4 matrix inversion - PyCuda

I am looking for a solution with Python to perform matrix inversions. I think there should be a way with CUBLAS or MAGMA to execute these operations in a batch or concurrent mode since each matrix is independent of all the others. So I am looking…
user1773603
-1
votes
1 answer

Does any equation holds for inverse(A- B)?

is it possible to calculate inverse of A-B, i have calculated inverse of A and B already.
Maddy.Shik
  • 6,609
  • 18
  • 69
  • 98
-1
votes
2 answers

Can we get a Matrix from its inverse?

Is there a way to get back a matrix if we know the inverse of the required matrix? Suppose I have Y=inv(A); How can I get A in MATLAB?
sanjeev
  • 39
  • 1
  • 6
-1
votes
2 answers

Matrix m1 multiplied by tf.inverse(m1) does not yield identity matrix

Using TensorFlow in python, I have the following code: sess = tf.InteractiveSession() # so I can eval() t1 = tf.convert_to_tensor([[1,4,5],[34,5,1],[53,1,4]],dtype=tensorflow.float32) t1.eval() OUTPUT>> array([[ 1., 4., 5.], [ 34., 5.,…
-1
votes
1 answer

How to distribute matrix into inverse of sum of two matrices

For matrices A, B, and C, is there a way to bring the C into the inverse here: (A+B)^(-1)*C
B. Washington
  • 139
  • 1
  • 6
-1
votes
1 answer

mahalanobis distance singular matrix error

I have two groups of data. Both groups have 25 variables and 114 observations. The goal is to take one of the variables in either group, calculate the mahalanobis distance from both of the groups mean. The group with the smallest distance is the one…
-1
votes
2 answers

Inverting tridiagonal matrix

I am having an equation Ax=By Where A and B are tridiagonal matrices. I want to calculate a matrix C=inv (A).B there are different x,s which will give different y,s hence calculation of C is handy. Can someone please tell me a faster method to…
hsinghal
  • 152
  • 1
  • 10
-1
votes
1 answer

Gramm Schmidt QR factorisation doesn't return Q and R correctly

I have implemented a MATLAB function for Gramm-Schmidt QR factorisation. Q's inverse should be equal to it's inverse, but it's not, and I can't see why. I even tried with somebody else's function, which is identical, and the result was the same.…
Vlad Iordache
  • 468
  • 1
  • 5
  • 16
-1
votes
1 answer

Gaussian Elimination: Inverse 4x4 Matrix

Question The following will give me an identity matrix for the variable "cur", and will attempt to give me the inverse for the variable "tmp", but will fail. Can anyone tell me what I did wrong? P.S. The matrix is column major. Matrix Input 1 | 0 |…
Red XIII
  • 1
  • 6
-1
votes
2 answers

Inverting a sparse Matrix

I have a sparse, square, symmetric matrix with the following structure: (Let's say the size of the matrix is N x N) Here, the area under the blue stripes is the non-zero elements. Could someone tell me if there is a algorithm to invert this kind of…
rnels12
  • 639
  • 6
  • 12
-1
votes
1 answer

How to understand the formula c=A(i:j,:)*inv(A)*b

I am trying to understand the formula c=A(i:j,:)*inv(A)*b where i,j=1:length(A). Assume that A is invertible The above formula allow us copy all element from index i to index j in vector b. I also implemented it by matlab code as follow code.…
John
  • 2,838
  • 7
  • 36
  • 65
-1
votes
1 answer

Matlab: Unable to perform inverse operation - How to create non-singular square matrix

I am trying Matrix operations. The data is a time series model - Autoregressive model, AR(2) where the model order p =2 represented by the variable Y excited by white Gaussian noise, epsilon. I am stuck with conceptual questions for which I will be…
SKM
  • 959
  • 2
  • 19
  • 45
-1
votes
1 answer

BOOST Library inverse output -1.#IND

I'm using BOOST library for inversing a matrix and it is giving me bad results like -1.#IND I was wondering if anybody ran into this problem. the code is like this: void tryLib(){ AG_Matrix AG_Matrix_1=AG_Matrix(4,4,3.0); AG_Matrix…
Megidd
  • 7,089
  • 6
  • 65
  • 142
-1
votes
1 answer

To inverse a sparse matrix

I'm working with the sparse matrix, and I need to invert it. Actually, I'm looking for a some library, that can store and invert sparse matrixes. Does anyone knows some?
a3dsfcv
  • 1,146
  • 2
  • 20
  • 35
1 2 3
33
34