Index: trunk/psLib/src/dataManip/psMatrix.c
===================================================================
--- trunk/psLib/src/dataManip/psMatrix.c	(revision 2213)
+++ trunk/psLib/src/dataManip/psMatrix.c	(revision 2214)
@@ -20,6 +20,6 @@
  *  @author Ross Harman, MHPCC
  *   
- *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-27 20:11:47 $
+ *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-10-27 20:20:11 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -42,5 +42,5 @@
 
 /** Preprocessor macro to generate error a NULL image */
-#define PS_VECTOR_CHEC_NULL(NAME, RETURN)                                                          \
+#define PS_VECTOR_CHECK_NULL(NAME, RETURN)                                                          \
 if (NAME == NULL || NAME->data.V == NULL) {                                                         \
     psError(__func__,"Invalid operation: %s or its data is NULL.", #NAME);                          \
@@ -62,5 +62,5 @@
 
 /** Preprocessor macro to generate error a NULL image */
-#define PS_CHECK_NULL_IMAGE(NAME, RETURN)                                                           \
+#define PS_IMAGE_CHECK_NULL(NAME, RETURN)                                                           \
 if (NAME == NULL || NAME->data.V == NULL) {                                                         \
     psError(__func__,"Invalid operation: %s or its data is NULL.", #NAME);                          \
@@ -128,5 +128,5 @@
     // Error checks
     PS_CHECK_POINTERS(inImage, outImage, outImage);
-    PS_CHECK_NULL_IMAGE(inImage, outImage);
+    PS_IMAGE_CHECK_NULL(inImage, outImage);
     PS_CHECK_DIMEN_AND_TYPE(inImage, PS_DIMEN_IMAGE, outImage);
     PS_CHECK_SIZE_IMAGE(inImage, outImage);
@@ -135,5 +135,5 @@
     PS_CHECK_SIZE_IMAGE(outImage, outImage);
     PS_CHECK_ALLOC_VECTOR(outPerm, inImage->numRows, inImage->type.type);
-    PS_VECTOR_CHEC_NULL(outPerm, outImage);
+    PS_VECTOR_CHECK_NULL(outPerm, outImage);
     PS_CHECK_DIMEN_AND_TYPE(outPerm, PS_DIMEN_VECTOR, outImage);
 
@@ -177,13 +177,13 @@
     PS_CHECK_POINTERS(inVector, inPerm, outVector);
     PS_CHECK_POINTERS(outVector, inPerm, outVector);
-    PS_CHECK_NULL_IMAGE(inImage, outVector);
+    PS_IMAGE_CHECK_NULL(inImage, outVector);
     PS_CHECK_DIMEN_AND_TYPE(inImage, PS_DIMEN_IMAGE, outVector);
     PS_CHECK_SIZE_IMAGE(inImage, outVector);
     PS_CHECK_ALLOC_VECTOR(outVector, inImage->numRows, inImage->type.type);
-    PS_VECTOR_CHEC_NULL(outVector, outVector);
+    PS_VECTOR_CHECK_NULL(outVector, outVector);
     PS_CHECK_DIMEN_AND_TYPE(outVector, PS_DIMEN_VECTOR, outVector);
-    PS_VECTOR_CHEC_NULL(inVector, outVector);
+    PS_VECTOR_CHECK_NULL(inVector, outVector);
     PS_CHECK_DIMEN_AND_TYPE(inVector, PS_DIMEN_VECTOR, outVector);
-    PS_VECTOR_CHEC_NULL(inPerm, outVector);
+    PS_VECTOR_CHECK_NULL(inPerm, outVector);
     PS_CHECK_DIMEN_AND_TYPE(inPerm, PS_DIMEN_VECTOR, outVector);
 
@@ -231,5 +231,5 @@
     }
     PS_CHECK_POINTERS(inImage, outImage, outImage);
-    PS_CHECK_NULL_IMAGE(inImage, outImage);
+    PS_IMAGE_CHECK_NULL(inImage, outImage);
     PS_CHECK_DIMEN_AND_TYPE(inImage, PS_DIMEN_IMAGE, outImage);
     PS_CHECK_SIZE_IMAGE(inImage, outImage);
@@ -280,5 +280,5 @@
 
     // Error checks
-    PS_CHECK_NULL_IMAGE(inImage, NULL);
+    PS_IMAGE_CHECK_NULL(inImage, NULL);
     PS_CHECK_DIMEN_AND_TYPE(inImage, PS_DIMEN_IMAGE, NULL);
     PS_CHECK_SIZE_IMAGE(inImage, NULL);
@@ -323,8 +323,8 @@
     PS_CHECK_POINTERS(inImage1, outImage, outImage);
     PS_CHECK_POINTERS(inImage1, inImage2, outImage);
-    PS_CHECK_NULL_IMAGE(inImage1, outImage);
+    PS_IMAGE_CHECK_NULL(inImage1, outImage);
     PS_CHECK_DIMEN_AND_TYPE(inImage1, PS_DIMEN_IMAGE, outImage);
     PS_CHECK_SIZE_IMAGE(inImage1, outImage);
-    PS_CHECK_NULL_IMAGE(inImage2, outImage);
+    PS_IMAGE_CHECK_NULL(inImage2, outImage);
     PS_CHECK_DIMEN_AND_TYPE(inImage2, PS_DIMEN_IMAGE, outImage);
     PS_CHECK_SIZE_IMAGE(inImage2, outImage);
@@ -362,5 +362,5 @@
     // Error checks
     PS_CHECK_POINTERS(inImage, outImage, outImage);
-    PS_CHECK_NULL_IMAGE(inImage, outImage);
+    PS_IMAGE_CHECK_NULL(inImage, outImage);
     PS_CHECK_DIMEN_AND_TYPE(inImage, PS_DIMEN_IMAGE, outImage);
     PS_CHECK_SIZE_IMAGE(inImage, outImage);
@@ -401,5 +401,5 @@
     // Error checks
     PS_CHECK_POINTERS(inImage, outImage, outImage);
-    PS_CHECK_NULL_IMAGE(inImage, outImage);
+    PS_IMAGE_CHECK_NULL(inImage, outImage);
     PS_CHECK_DIMEN_AND_TYPE(inImage, PS_DIMEN_IMAGE, outImage);
     PS_CHECK_SIZE_IMAGE(inImage, outImage);
@@ -439,5 +439,5 @@
 
     // Error checks
-    PS_CHECK_NULL_IMAGE(inImage, outVector);
+    PS_IMAGE_CHECK_NULL(inImage, outVector);
     PS_CHECK_DIMEN_AND_TYPE(inImage, PS_DIMEN_IMAGE, outVector);
     PS_CHECK_SIZE_IMAGE(inImage, outVector);
@@ -456,5 +456,5 @@
     }
 
-    PS_VECTOR_CHEC_NULL(outVector, outVector);
+    PS_VECTOR_CHECK_NULL(outVector, outVector);
 
     // More checks
@@ -498,5 +498,5 @@
 
     // Error checks
-    PS_VECTOR_CHEC_NULL(inVector, outImage);
+    PS_VECTOR_CHECK_NULL(inVector, outImage);
 
     if (inVector->type.dimen == PS_DIMEN_VECTOR) {
@@ -531,5 +531,5 @@
     }
 
-    PS_CHECK_NULL_IMAGE(outImage, outImage);
+    PS_IMAGE_CHECK_NULL(outImage, outImage);
     PS_CHECK_DIMEN_AND_TYPE(outImage, PS_DIMEN_IMAGE, outImage);
 
