[−][src]Function arrayfire::pinverse
pub fn pinverse<T>(
input: &Array<T>,
tolerance: f64,
option: MatProp
) -> Array<T> where
T: HasAfEnum + FloatingPoint,
Psuedo Inverse of Matrix
Parameters
input
is input matrixtolerance
defines the lower threshold for singular values from SVDoption
must be MatProp::NONE (more options might be supported in the future)
Notes:
- Tolerance is not the actual lower threshold, but it is passed in as a parameter to the calculation of the actual threshold relative to the shape and contents of input.
- First, try setting tolerance to 1e-6 for single precision and 1e-12 for double.
Return
Pseudo Inverse matrix for the input matrix