Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1035363 // invertMatrix

JavaX fragment (include) [tags: use-pretranspiled]

Uses 652K of libraries. Click here for Pure Java version (62L/1K).

1  
!include once #1035331 // EJML Include (Matrix library)
2  
3  
static double[][] invertMatrix(double[][] matrixData) {
4  
  var matrix = new DMatrixRMaj(matrixData);
5  
  if (!CommonOps_DDRM.invert(matrix))
6  
    null; // unable to invert matrix
7  
  ret ejmlMatrixToArray(matrix);
8  
}

Author comment

Began life as a copy of #1035324

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035363
Snippet name: invertMatrix
Eternal ID of this version: #1035363/2
Text MD5: 2ad42a4e56f9e5406928e5133b309396
Transpilation MD5: d10281498eab706fd8e7b6516b5fc100
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-02 13:08:14
Source code size: 273 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 127 / 178
Version history: 1 change(s)
Referenced in: [show references]