✳flΓ’neur β€” a map of the web's best reading

torch.linalg.solve β€” PyTorch 2.12 documentation

docs.pytorch.org Β· 846 words Β· saved by 1 readers

Letting 𝐾 K be 𝑅 R or 𝐢 C , this function computes the solution 𝑋 ∈ 𝐾 𝑛 Γ— π‘˜ X∈K nΓ—k of the linear system associated to 𝐴 ∈ 𝐾 𝑛 Γ— 𝑛 , 𝐡 ∈ 𝐾 𝑛 Γ— π‘˜ A∈K nΓ—n ,B∈K nΓ—k , which is defined as If left= False, this function returns the matrix 𝑋 ∈ 𝐾 𝑛 Γ— π‘˜ X∈K nΓ—k that solves the system This system of linear equations has one solution if and only if 𝐴 A is invertible. This function assumes that 𝐴 A is invertible. Supports inputs of float, double, cfloat and cdouble dtypes. Also supports batches of matrices, and if the inputs are batches of matrices then the output has the same batch dimensions. Letting * be zero or more batch dimensions, If A has shape (*, n, n) and B has shape (*, n) (a batch of vectors) or shape (*, n, k) (a batch of matrices or β€œmultiple right-hand sides”), this function returns X of shape (*, n) or (*, n, k) respectively. Otherwise, if A has shape (*, n, n) and B has shape (n,) or (n, k), B is broadcasted to have shape (*, n) or (*, n, k) res

torch.linalg.solve # torch.linalg. solve ( A , B , * , left = True , out = None ) → Tensor # Computes the solution of a square system of linear equations with a unique solution. Letting K \mathbb{K} K be R \mathbb{R} R or C \mathbb{C} C , this function computes the solution X ∈ K n Γ— k X \in \mathbb{K}^{n \times k} X ∈ K n Γ— k of the linear system associated to A ∈ K n Γ— n , B ∈ K n Γ— k A \in \mathbb{K}^{n \times n}, B \in \mathbb{K}^{n \times k} A ∈ K n Γ— n , B ∈ K n Γ— k , which is defined as A X = B AX = B A X = B If left = False , this function returns the matrix X ∈ K n Γ— k X \in \m

Explore this link on the map β†’

related reading