00001 /* 00002 * MatrixFunctionErrorMessages.h 00003 * 00004 * Created on: Feb 28, 2011 00005 * Author: Brenda Javornik (e-mail: brendaj (at) nwra.com) 00006 */ 00007 00008 #ifndef MATRIXFUNCTIONERRORMESSAGES_H_ 00009 #define MATRIXFUNCTIONERRORMESSAGES_H_ 00010 00011 const static char FileOpenError[] = "Could not open file"; 00012 const static char UnsupportedFitsFormat[] = "Only 1D or 2D images are supported"; 00013 const static char DGESVFailed[] = "dgesv_ fails"; 00014 const static char DGETRFFailed[] = "Error computing LU factorization of matrix: dgetrf_ failed"; 00015 const static char DGETRIFailed[] = "Error computing inverse of matrix: dgetri_ failed"; 00016 const static char DGETRSFailed[] = "Error solving system of linear equations: dgetrs_ failed"; 00017 const static char DPOTRFFailed[] = "Error computing Cholesky factorization of matrix: dpotrf_ failed"; 00018 const static char LinearEqSolveExpectedColVector[] = "not a column vector as expected"; 00019 const static char ToVectorFailes[] = "Unable to convert fits2d to vector because both dimensions are greater than 1. "; 00020 const static char DivByZero[] = "Operation causes division by zero. "; 00021 const static char LinearEqSolveFirst[] = "LUDecomp is Null. Must call linearEqSolve prior to LinearEqSolveNRHS to calculate LUDecomp"; 00022 const static char RealMatrixExpected[] = "Expected a Real matrix"; 00023 const static char ComplexMatrixExpected[] = "Expected a Complex matrix"; 00024 const static char FftwShiftNoComplexData[] = "fftwShift not implemented for complex data"; 00025 const static char matrixMultipyMMIncompatibleMatrixSizes[] = "Columns of Matrix A are not compatible with Rows of Matrix B"; 00026 const static char matrixMultipyMMUnknownMatrixTypes[] = "unknown combination of matrix types"; 00027 const static char MatrixAPlusLambdaBNotImplCombination[] = "code not implemented to handle COMPLEX, REAL variation"; 00028 const static char MatrixAPlusLambdaBMatricesNotSameSize[] = "matrices are not compatible; they must all be the same size"; 00029 const static char MatrixNorm2NotImpl[] = "not implemented for Real Matrices"; 00030 const static char MatrixConvertToRealNotComplex[] = "matrix is not complex"; 00031 const static char MatrixConvertToComplexNotReal[] = "matrix is not real"; 00032 const static char MatrixComplexNotImpl[] = "not implemented for Complex Matrices"; 00033 const static char MatrixConvertToRealConvFail[] = "conversion failed"; 00034 const static char MatrixMatrixToVectorComplexNotImpl[] = "Conversion from COMPLEX matrix to complex vector not implemented"; 00035 const static char MatrixMatrixToVectorNoRowOrColVec[] = "Cannot convert matrix to vector; matrix is neither a column nor row vector"; 00036 const static char MatrixUnrecognizedOperator[] = "Unrecognized operator. Expected 'N', 'C', or 'T'."; 00037 00038 const static char MapDepthMatrixReadUnexpectedDim[] = "Unexpected dimensions on fits file"; 00039 const static char MapDepthMatrixBadInsert[] = "cannot insert the 2d matrix into 4d matrix"; 00040 const static char MapDepthMatrixNotEnoughFilenames[] = "Not enough filenames to print MapDepthMatrix"; 00041 00042 const static char ReadWriteFitsBadZDimension[] = "The specified plane is outside the range for Z-Dimension"; 00043 const static char ReadWriteFitsBadTDimension[] = "The specified plane is outside the range for T-Dimension"; 00044 const static char WriteFitsFileNotOpen[] = "Must open FITS file before writing to it"; 00045 const static char WriteFitsHeaderError[] = "Error writing header parameters to fits file"; 00046 const static char ReadFitsFileBadDimensions[] = "Expected 1D, 2D or 3D image; instead, opened FITS file with dimensions"; 00047 const static char MatrixNoConjugateReal[] = "cannot take conjugate of Real matrix"; 00048 const static char MatrixIncompatibleSizes[] = "Incompatible matrix sizes"; 00049 const static char MatrixStarMultiplySameSize[] = "Operands must have same number of rows and columns"; 00050 const static char MatrixStarMultiplySameType[] = "no mixed matrix types"; 00051 const static char MatrixBiggerDim[] = "New dimensions must be bigger than current matrix dimensions"; 00052 const static char MatrixEmbedEvenDim[] = "must have Nx == Ny and even"; 00053 00054 const static char SuperYAvgKNoiseExceed[] = "Cannot pack super vectorY, Averaging Kernel and Noise exceed the size of superY"; 00055 const static char SuperYAvgKIToReal[] = "Could not convert averaging kernel from complex to real"; 00056 const static char SuperYNoiseIToReal[] = "Could not convert noise from complex to real"; 00057 const static char SuperYCannotConvertCToI[] = "Cannot convert from complex to real; imaginary part is not zero at element %1d: %f + %fi\n"; 00058 const static char SuperYRDataNull[] = "rData is NULL"; 00059 const static char SuperYCDataNull[] = "cData is NULL"; 00060 const static char MaskReadUnexpectedDim[] = "Unexpected dimensions on fits file"; 00061 const static char FftwSystemWisdomImport[] = "Error importing system wisdom"; 00062 const static char FftwWisdomImport[] = "Unable to open wisdom file"; 00063 const static char FftwWisdomRead[] = "Unable to read wisdom file"; 00064 const static char FftwWisdomWrite[] = "Unable to open wisdom file for writing"; 00065 const static char FftwForwardPlanNull[] = "Unable to generate forward plan using wisdom"; 00066 const static char FftwReversePlanNull[] = "Unable to generate reverse plan using wisdom"; 00067 #endif /* MATRIXFUNCTIONERRORMESSAGES_H_ */