public class InvertMatrix extends Object
Constructor and Description |
---|
InvertMatrix() |
Modifier and Type | Method and Description |
---|---|
static INDArray |
invert(INDArray arr,
boolean inPlace)
Inverts a matrix
|
static INDArray |
pinvert(INDArray arr,
boolean inPlace)
Calculates pseudo inverse of a matrix using QR decomposition
|
static INDArray |
pLeftInvert(INDArray arr,
boolean inPlace)
Compute the left pseudo inverse.
|
static INDArray |
pRightInvert(INDArray arr,
boolean inPlace)
Compute the right pseudo inverse.
|
public static INDArray invert(INDArray arr, boolean inPlace)
arr
- the array to invertinPlace
- Whether to store the result in arr
public static INDArray pinvert(INDArray arr, boolean inPlace)
arr
- the array to invertpublic static INDArray pLeftInvert(INDArray arr, boolean inPlace)
arr
- Input matrixinPlace
- Whether to store the result in arr
arr
IllegalArgumentException
- Input matrix arr
did not have full column rank.public static INDArray pRightInvert(INDArray arr, boolean inPlace)
arr
- Input matrixinPlace
- Whether to store the result in arr
arr
IllegalArgumentException
- Input matrix arr
did not have full row rank.Copyright © 2021. All rights reserved.