@@ -162,20 +162,11 @@ module stdlib_intrinsics
162162 !!
163163 !! Note: The matrices must be of compatible shapes to be multiplied
164164 #:for k, t, s in I_KINDS_TYPES + R_KINDS_TYPES + C_KINDS_TYPES
165- pure module function stdlib_matmul_${s}$_3 (a, b, c) result(d)
166- ${t}$, intent(in) :: a(:,:), b(:,:), c(:,:)
167- ${t}$, allocatable :: d(:,:)
168- end function stdlib_matmul_${s}$_3
169-
170- pure module function stdlib_matmul_${s}$_4 (a, b, c, d) result(e)
171- ${t}$, intent(in) :: a(:,:), b(:,:), c(:,:), d(:,:)
172- ${t}$, allocatable :: e(:,:)
173- end function stdlib_matmul_${s}$_4
174-
175- pure module function stdlib_matmul_${s}$_5 (a, b, c, d, e) result(f)
176- ${t}$, intent(in) :: a(:,:), b(:,:), c(:,:), d(:,:), e(:,:)
177- ${t}$, allocatable :: f(:,:)
178- end function stdlib_matmul_${s}$_5
165+ pure module function stdlib_matmul_${s}$ (m1, m2, m3, m4, m5) result(r)
166+ ${t}$, intent(in) :: m1(:,:), m2(:,:)
167+ ${t}$, intent(in), optional :: m3(:,:), m4(:,:), m5(:,:)
168+ ${t}$, allocatable :: r(:,:)
169+ end function stdlib_matmul_${s}$
179170 #:endfor
180171 end interface stdlib_matmul
181172 public :: stdlib_matmul
0 commit comments