objc2_metal_performance_shaders_graph/generated/MPSGraphMatrixInverseOps.rs
1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9/// MPSGraphMatrixInverseOps.
10#[cfg(all(feature = "MPSGraph", feature = "MPSGraphCore"))]
11impl MPSGraph {
12 extern_methods!(
13 #[cfg(feature = "MPSGraphTensor")]
14 /// Computes the inverse of an input tensor.
15 ///
16 /// The framework computes the inverse of a square matrix by calling LU decomposition and LU solver.
17 /// All dimensions after the first 2 are treated as batch dimensions and the inverse for each batch is computed.
18 /// Results are undefined for ill conditioned matrices.
19 ///
20 /// - Parameters:
21 /// - inputTensor: The input tensor.
22 /// - name: The name for the operation.
23 /// - Returns: A valid ``MPSGraphTensor`` object containing the inverse of the input tensor.
24 #[unsafe(method(inverseOfTensor:name:))]
25 #[unsafe(method_family = none)]
26 pub unsafe fn inverseOfTensor_name(
27 &self,
28 input_tensor: &MPSGraphTensor,
29 name: Option<&NSString>,
30 ) -> Retained<MPSGraphTensor>;
31 );
32}