5656
5757const libblas = Base. libblas_name
5858
59- import .. LinAlg: BlasReal, BlasComplex, BlasFloat, BlasInt, DimensionMismatch, chksquare , axpy!
59+ import .. LinAlg: BlasReal, BlasComplex, BlasFloat, BlasInt, DimensionMismatch, checksquare , axpy!
6060
6161"""
6262 blas_set_num_threads(n)
@@ -682,7 +682,7 @@ for (fname, elty) in ((:dtrmv_,:Float64),
682682 # * .. Array Arguments ..
683683 # DOUBLE PRECISION A(LDA,*),X(*)
684684 function trmv! (uplo:: Char , trans:: Char , diag:: Char , A:: StridedMatrix{$elty} , x:: StridedVector{$elty} )
685- n = chksquare (A)
685+ n = checksquare (A)
686686 if n != length (x)
687687 throw (DimensionMismatch (" A has size ($n ,$n ), x has length $(length (x)) " ))
688688 end
@@ -731,7 +731,7 @@ for (fname, elty) in ((:dtrsv_,:Float64),
731731 # .. Array Arguments ..
732732 # DOUBLE PRECISION A(LDA,*),X(*)
733733 function trsv! (uplo:: Char , trans:: Char , diag:: Char , A:: StridedMatrix{$elty} , x:: StridedVector{$elty} )
734- n = chksquare (A)
734+ n = checksquare (A)
735735 if n != length (x)
736736 throw (DimensionMismatch (" size of A is $n != length(x) = $(length (x)) " ))
737737 end
@@ -795,7 +795,7 @@ for (fname, elty) in ((:dsyr_,:Float64),
795795 (:csyr_ ,:Complex64 ))
796796 @eval begin
797797 function syr! (uplo:: Char , α:: $elty , x:: StridedVector{$elty} , A:: StridedMatrix{$elty} )
798- n = chksquare (A)
798+ n = checksquare (A)
799799 if length (x) != n
800800 throw (DimensionMismatch (" A has size ($n ,$n ), x has length $(length (x)) " ))
801801 end
@@ -824,7 +824,7 @@ for (fname, elty, relty) in ((:zher_,:Complex128, :Float64),
824824 (:cher_ ,:Complex64 , :Float32 ))
825825 @eval begin
826826 function her! (uplo:: Char , α:: $relty , x:: StridedVector{$elty} , A:: StridedMatrix{$elty} )
827- n = chksquare (A)
827+ n = checksquare (A)
828828 if length (x) != n
829829 throw (DimensionMismatch (" A has size ($n ,$n ), x has length $(length (x)) " ))
830830 end
@@ -922,7 +922,7 @@ for (mfname, elty) in ((:dsymm_,:Float64),
922922 # DOUBLE PRECISION A(LDA,*),B(LDB,*),C(LDC,*)
923923 function symm! (side:: Char , uplo:: Char , alpha:: ($elty) , A:: StridedMatrix{$elty} , B:: StridedMatrix{$elty} , beta:: ($elty) , C:: StridedMatrix{$elty} )
924924 m, n = size (C)
925- j = chksquare (A)
925+ j = checksquare (A)
926926 if j != (side == ' L' ? m : n)
927927 throw (DimensionMismatch (" A has size $(size (A)) , C has size ($m ,$n )" ))
928928 end
@@ -991,7 +991,7 @@ for (mfname, elty) in ((:zhemm_,:Complex128),
991991 # DOUBLE PRECISION A(LDA,*),B(LDB,*),C(LDC,*)
992992 function hemm! (side:: Char , uplo:: Char , alpha:: ($elty) , A:: StridedMatrix{$elty} , B:: StridedMatrix{$elty} , beta:: ($elty) , C:: StridedMatrix{$elty} )
993993 m, n = size (C)
994- j = chksquare (A)
994+ j = checksquare (A)
995995 if j != (side == ' L' ? m : n)
996996 throw (DimensionMismatch (" A has size $(size (A)) , C has size ($m ,$n )" ))
997997 end
@@ -1050,7 +1050,7 @@ for (fname, elty) in ((:dsyrk_,:Float64),
10501050 function syrk! (uplo:: Char , trans:: Char ,
10511051 alpha:: ($elty) , A:: StridedVecOrMat{$elty} ,
10521052 beta:: ($elty) , C:: StridedMatrix{$elty} )
1053- n = chksquare (C)
1053+ n = checksquare (C)
10541054 nn = size (A, trans == ' N' ? 1 : 2 )
10551055 if nn != n throw (DimensionMismatch (" C has size ($n ,$n ), corresponding dimension of A is $nn " )) end
10561056 k = size (A, trans == ' N' ? 2 : 1 )
@@ -1103,7 +1103,7 @@ for (fname, elty, relty) in ((:zherk_, :Complex128, :Float64),
11031103 # COMPLEX A(LDA,*),C(LDC,*)
11041104 function herk! (uplo:: Char , trans:: Char , α:: $relty , A:: StridedVecOrMat{$elty} ,
11051105 β:: $relty , C:: StridedMatrix{$elty} )
1106- n = chksquare (C)
1106+ n = checksquare (C)
11071107 nn = size (A, trans == ' N' ? 1 : 2 )
11081108 if nn != n
11091109 throw (DimensionMismatch (" the matrix to update has dimension $n but the implied dimension of the update is $(size (A, trans == ' N' ? 1 : 2 )) " ))
@@ -1144,7 +1144,7 @@ for (fname, elty) in ((:dsyr2k_,:Float64),
11441144 function syr2k! (uplo:: Char , trans:: Char ,
11451145 alpha:: ($elty) , A:: StridedVecOrMat{$elty} , B:: StridedVecOrMat{$elty} ,
11461146 beta:: ($elty) , C:: StridedMatrix{$elty} )
1147- n = chksquare (C)
1147+ n = checksquare (C)
11481148 nn = size (A, trans == ' N' ? 1 : 2 )
11491149 if nn != n throw (DimensionMismatch (" C has size ($n ,$n ), corresponding dimension of A is $nn " )) end
11501150 k = size (A, trans == ' N' ? 2 : 1 )
@@ -1181,7 +1181,7 @@ for (fname, elty1, elty2) in ((:zher2k_,:Complex128,:Float64), (:cher2k_,:Comple
11811181 function her2k! (uplo:: Char , trans:: Char , alpha:: ($elty1) ,
11821182 A:: StridedVecOrMat{$elty1} , B:: StridedVecOrMat{$elty1} ,
11831183 beta:: ($elty2) , C:: StridedMatrix{$elty1} )
1184- n = chksquare (C)
1184+ n = checksquare (C)
11851185 nn = size (A, trans == ' N' ? 1 : 2 )
11861186 if nn != n throw (DimensionMismatch (" C has size ($n ,$n ), corresponding dimension of A is $nn " )) end
11871187 k = size (A, trans == ' N' ? 2 : 1 )
@@ -1258,7 +1258,7 @@ for (mmname, smname, elty) in
12581258 function trmm! (side:: Char , uplo:: Char , transa:: Char , diag:: Char , alpha:: Number ,
12591259 A:: StridedMatrix{$elty} , B:: StridedMatrix{$elty} )
12601260 m, n = size (B)
1261- nA = chksquare (A)
1261+ nA = checksquare (A)
12621262 if nA != (side == ' L' ? m : n)
12631263 throw (DimensionMismatch (" size of A, $(size (A)) , doesn't match $side size of B with dims, $(size (B)) " ))
12641264 end
@@ -1283,7 +1283,7 @@ for (mmname, smname, elty) in
12831283 function trsm! (side:: Char , uplo:: Char , transa:: Char , diag:: Char ,
12841284 alpha:: $elty , A:: StridedMatrix{$elty} , B:: StridedMatrix{$elty} )
12851285 m, n = size (B)
1286- k = chksquare (A)
1286+ k = checksquare (A)
12871287 if k != (side == ' L' ? m : n)
12881288 throw (DimensionMismatch (" size of A is $n , size(B)=($m ,$n ) and transa='$transa '" ))
12891289 end
0 commit comments