# Method pseudoInvert

#### static member pseudoInvert: Tensor<'T> * 'T option -> Tensor<'T>

Computes the (batched) Moore-Penrose pseudo-inverse of the specified matrix.

##### Declaration

`static member pseudoInvert: a:Tensor<'T> * rCond:'T option -> Tensor<'T>`

##### Parameters

Type | Name | Description |
---|---|---|

Tensor<'T> | a | The input matrix or tensor to this operation. |

'T option | rCond | The cut-off value for the singular values. (default: 1e-15) |

##### Returns

Type | Description |
---|---|

Tensor<'T> | A new matrix or tensor containing the result of this operation. |

##### Remarks

If `a`

is a matrix, its pseudo-inverse is computed. The result is a matrix.

If `a`

is a tensor of shape `[b_1; ...; b_n; i; j]`

, the pseudo-inverse
of all matrices consisting of the last two dimensions of the tensor are computed.
The result is a tensor of shape `[b_1; ...; b_n; j; i]`

.