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