@@ -557,6 +557,26 @@ module stdlib_linalg
557
557
558
558
! Function interface
559
559
interface inv
560
+ !! version: experimental
561
+ !!
562
+ !! Inverse of a square matrix
563
+ !! ([Specification](../page/specs/stdlib_linalg.html#inv-inverse-of-a-square-matrix))
564
+ !!
565
+ !!### Summary
566
+ !! This interface provides methods for computing the inverse of a square `real` or `complex` matrix.
567
+ !! The inverse \( A^{-1} \) is defined such that \( A \cdot A^{-1} = A^{-1} \cdot A = I_n \).
568
+ !!
569
+ !!### Description
570
+ !!
571
+ !! This function interface provides methods that return the inverse of a square matrix.
572
+ !! Supported data types include `real` and `complex`.
573
+ !! The inverse matrix \( A^{-1} \) is returned as a function result.
574
+ !! Exceptions are raised in case of singular matrix or invalid size, and trigger an `error stop` if
575
+ !! the state flag `err` is not provided.
576
+ !!
577
+ !!@note The provided functions are intended for square matrices.
578
+ !!@note BLAS/LAPACK backends do not currently support extended precision (``xdp``).
579
+ !!
560
580
#:for rk,rt,ri in RC_KINDS_TYPES
561
581
#:if rk!="xdp"
562
582
module function stdlib_linalg_inverse_${ri}$(a,err) result(inva)
@@ -584,7 +604,7 @@ module stdlib_linalg
584
604
!!
585
605
!!### Description
586
606
!!
587
- !! This operator interface provides a convenient way to compute the inverse of a matrix.
607
+ !! This subroutine interface provides a way to compute the inverse of a matrix in-place .
588
608
!! Supported data types include `real` and `complex`.
589
609
!! On completion, matrix `a` is replaced by the inverse matrix. Pre-allocated storage may be provided
590
610
!! for the array of pivot indices, `pivot`. If all pre-allocated work spaces are provided, no internal
0 commit comments