github.com/jingcheng-WU/gonum@v0.9.1-0.20210323123734-f1a2a11a8f7b/lapack/gonum/errors.go (about)

     1  // Copyright ©2015 The Gonum Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package gonum
     6  
     7  // This list is duplicated in netlib/lapack/netlib. Keep in sync.
     8  const (
     9  	// Panic strings for bad enumeration values.
    10  	badApplyOrtho      = "lapack: bad ApplyOrtho"
    11  	badBalanceJob      = "lapack: bad BalanceJob"
    12  	badDiag            = "lapack: bad Diag"
    13  	badDirect          = "lapack: bad Direct"
    14  	badEVComp          = "lapack: bad EVComp"
    15  	badEVHowMany       = "lapack: bad EVHowMany"
    16  	badEVJob           = "lapack: bad EVJob"
    17  	badEVSide          = "lapack: bad EVSide"
    18  	badGSVDJob         = "lapack: bad GSVDJob"
    19  	badGenOrtho        = "lapack: bad GenOrtho"
    20  	badLeftEVJob       = "lapack: bad LeftEVJob"
    21  	badMatrixType      = "lapack: bad MatrixType"
    22  	badNorm            = "lapack: bad Norm"
    23  	badPivot           = "lapack: bad Pivot"
    24  	badRightEVJob      = "lapack: bad RightEVJob"
    25  	badSVDJob          = "lapack: bad SVDJob"
    26  	badSchurComp       = "lapack: bad SchurComp"
    27  	badSchurJob        = "lapack: bad SchurJob"
    28  	badSide            = "lapack: bad Side"
    29  	badSort            = "lapack: bad Sort"
    30  	badStoreV          = "lapack: bad StoreV"
    31  	badTrans           = "lapack: bad Trans"
    32  	badUpdateSchurComp = "lapack: bad UpdateSchurComp"
    33  	badUplo            = "lapack: bad Uplo"
    34  	bothSVDOver        = "lapack: both jobU and jobVT are lapack.SVDOverwrite"
    35  
    36  	// Panic strings for bad numerical and string values.
    37  	badIfst     = "lapack: ifst out of range"
    38  	badIhi      = "lapack: ihi out of range"
    39  	badIhiz     = "lapack: ihiz out of range"
    40  	badIlo      = "lapack: ilo out of range"
    41  	badIloz     = "lapack: iloz out of range"
    42  	badIlst     = "lapack: ilst out of range"
    43  	badIsave    = "lapack: bad isave value"
    44  	badIspec    = "lapack: bad ispec value"
    45  	badJ1       = "lapack: j1 out of range"
    46  	badJpvt     = "lapack: bad element of jpvt"
    47  	badK1       = "lapack: k1 out of range"
    48  	badK2       = "lapack: k2 out of range"
    49  	badKacc22   = "lapack: invalid value of kacc22"
    50  	badKbot     = "lapack: kbot out of range"
    51  	badKtop     = "lapack: ktop out of range"
    52  	badLWork    = "lapack: insufficient declared workspace length"
    53  	badMm       = "lapack: mm out of range"
    54  	badN1       = "lapack: bad value of n1"
    55  	badN2       = "lapack: bad value of n2"
    56  	badNa       = "lapack: bad value of na"
    57  	badName     = "lapack: bad name"
    58  	badNh       = "lapack: bad value of nh"
    59  	badNw       = "lapack: bad value of nw"
    60  	badPp       = "lapack: bad value of pp"
    61  	badShifts   = "lapack: bad shifts"
    62  	i0LT0       = "lapack: i0 < 0"
    63  	kGTM        = "lapack: k > m"
    64  	kGTN        = "lapack: k > n"
    65  	kLT0        = "lapack: k < 0"
    66  	kLT1        = "lapack: k < 1"
    67  	kdLT0       = "lapack: kd < 0"
    68  	mGTN        = "lapack: m > n"
    69  	mLT0        = "lapack: m < 0"
    70  	mmLT0       = "lapack: mm < 0"
    71  	n0LT0       = "lapack: n0 < 0"
    72  	nGTM        = "lapack: n > m"
    73  	nLT0        = "lapack: n < 0"
    74  	nLT1        = "lapack: n < 1"
    75  	nLTM        = "lapack: n < m"
    76  	nanCFrom    = "lapack: cfrom is NaN"
    77  	nanCTo      = "lapack: cto is NaN"
    78  	nbGTM       = "lapack: nb > m"
    79  	nbGTN       = "lapack: nb > n"
    80  	nbLT0       = "lapack: nb < 0"
    81  	nccLT0      = "lapack: ncc < 0"
    82  	ncvtLT0     = "lapack: ncvt < 0"
    83  	negANorm    = "lapack: anorm < 0"
    84  	negZ        = "lapack: negative z value"
    85  	nhLT0       = "lapack: nh < 0"
    86  	notIsolated = "lapack: block is not isolated"
    87  	nrhsLT0     = "lapack: nrhs < 0"
    88  	nruLT0      = "lapack: nru < 0"
    89  	nshftsLT0   = "lapack: nshfts < 0"
    90  	nshftsOdd   = "lapack: nshfts must be even"
    91  	nvLT0       = "lapack: nv < 0"
    92  	offsetGTM   = "lapack: offset > m"
    93  	offsetLT0   = "lapack: offset < 0"
    94  	pLT0        = "lapack: p < 0"
    95  	recurLT0    = "lapack: recur < 0"
    96  	zeroCFrom   = "lapack: zero cfrom"
    97  
    98  	// Panic strings for bad slice lengths.
    99  	badLenAlpha    = "lapack: bad length of alpha"
   100  	badLenBeta     = "lapack: bad length of beta"
   101  	badLenIpiv     = "lapack: bad length of ipiv"
   102  	badLenJpvt     = "lapack: bad length of jpvt"
   103  	badLenK        = "lapack: bad length of k"
   104  	badLenSelected = "lapack: bad length of selected"
   105  	badLenSi       = "lapack: bad length of si"
   106  	badLenSr       = "lapack: bad length of sr"
   107  	badLenTau      = "lapack: bad length of tau"
   108  	badLenWi       = "lapack: bad length of wi"
   109  	badLenWr       = "lapack: bad length of wr"
   110  
   111  	// Panic strings for insufficient slice lengths.
   112  	shortA     = "lapack: insufficient length of a"
   113  	shortAB    = "lapack: insufficient length of ab"
   114  	shortAuxv  = "lapack: insufficient length of auxv"
   115  	shortB     = "lapack: insufficient length of b"
   116  	shortC     = "lapack: insufficient length of c"
   117  	shortCNorm = "lapack: insufficient length of cnorm"
   118  	shortD     = "lapack: insufficient length of d"
   119  	shortDL    = "lapack: insufficient length of dl"
   120  	shortDU    = "lapack: insufficient length of du"
   121  	shortE     = "lapack: insufficient length of e"
   122  	shortF     = "lapack: insufficient length of f"
   123  	shortH     = "lapack: insufficient length of h"
   124  	shortIWork = "lapack: insufficient length of iwork"
   125  	shortIsgn  = "lapack: insufficient length of isgn"
   126  	shortQ     = "lapack: insufficient length of q"
   127  	shortS     = "lapack: insufficient length of s"
   128  	shortScale = "lapack: insufficient length of scale"
   129  	shortT     = "lapack: insufficient length of t"
   130  	shortTau   = "lapack: insufficient length of tau"
   131  	shortTauP  = "lapack: insufficient length of tauP"
   132  	shortTauQ  = "lapack: insufficient length of tauQ"
   133  	shortU     = "lapack: insufficient length of u"
   134  	shortV     = "lapack: insufficient length of v"
   135  	shortVL    = "lapack: insufficient length of vl"
   136  	shortVR    = "lapack: insufficient length of vr"
   137  	shortVT    = "lapack: insufficient length of vt"
   138  	shortVn1   = "lapack: insufficient length of vn1"
   139  	shortVn2   = "lapack: insufficient length of vn2"
   140  	shortW     = "lapack: insufficient length of w"
   141  	shortWH    = "lapack: insufficient length of wh"
   142  	shortWV    = "lapack: insufficient length of wv"
   143  	shortWi    = "lapack: insufficient length of wi"
   144  	shortWork  = "lapack: insufficient length of work"
   145  	shortWr    = "lapack: insufficient length of wr"
   146  	shortX     = "lapack: insufficient length of x"
   147  	shortY     = "lapack: insufficient length of y"
   148  	shortZ     = "lapack: insufficient length of z"
   149  
   150  	// Panic strings for bad leading dimensions of matrices.
   151  	badLdA    = "lapack: bad leading dimension of A"
   152  	badLdB    = "lapack: bad leading dimension of B"
   153  	badLdC    = "lapack: bad leading dimension of C"
   154  	badLdF    = "lapack: bad leading dimension of F"
   155  	badLdH    = "lapack: bad leading dimension of H"
   156  	badLdQ    = "lapack: bad leading dimension of Q"
   157  	badLdT    = "lapack: bad leading dimension of T"
   158  	badLdU    = "lapack: bad leading dimension of U"
   159  	badLdV    = "lapack: bad leading dimension of V"
   160  	badLdVL   = "lapack: bad leading dimension of VL"
   161  	badLdVR   = "lapack: bad leading dimension of VR"
   162  	badLdVT   = "lapack: bad leading dimension of VT"
   163  	badLdW    = "lapack: bad leading dimension of W"
   164  	badLdWH   = "lapack: bad leading dimension of WH"
   165  	badLdWV   = "lapack: bad leading dimension of WV"
   166  	badLdWork = "lapack: bad leading dimension of Work"
   167  	badLdX    = "lapack: bad leading dimension of X"
   168  	badLdY    = "lapack: bad leading dimension of Y"
   169  	badLdZ    = "lapack: bad leading dimension of Z"
   170  
   171  	// Panic strings for bad vector increments.
   172  	absIncNotOne = "lapack: increment not one or negative one"
   173  	badIncX      = "lapack: incX <= 0"
   174  	badIncY      = "lapack: incY <= 0"
   175  	zeroIncV     = "lapack: incv == 0"
   176  )