Changeset 8232 for trunk/psLib/src/math/psBinaryOp.c
- Timestamp:
- Aug 8, 2006, 1:32:23 PM (20 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
math/psBinaryOp.c (modified) (23 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src
- Property svn:ignore
-
old new 10 10 libpslib.la.temp 11 11 config.h.in 12 psErrorText.h13 12 *.bb 14 13 *.bbg
-
- Property svn:ignore
-
trunk/psLib/src/math/psBinaryOp.c
r7766 r8232 30 30 * @author Robert DeSonia, MHPCC 31 31 * 32 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $33 * @date $Date: 2006-0 6-30 02:20:06$32 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 33 * @date $Date: 2006-08-08 23:32:23 $ 34 34 * 35 35 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 50 50 #include "psLogMsg.h" 51 51 #include "psAssert.h" 52 #include "psErrorText.h" 52 53 53 54 54 /***************************************************************************** … … 107 107 long n2 = ((psVector*)IN2)->n; \ 108 108 if (n1 != n2) { \ 109 psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, n1, n2); \109 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d. Number of elements must match."), n1, n2); \ 110 110 if (OUT != IN1 && OUT != IN2) { \ 111 111 psFree(OUT); \ … … 129 129 if (((psVector*)IN1)->type.dimen == PS_DIMEN_VECTOR) { /* Regular vectors */ \ 130 130 if (n1 != numRows2) { \ 131 psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, n1, numRows2); \131 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d. Number of elements must match."), n1, numRows2); \ 132 132 if (OUT != IN1 && OUT != IN2) { \ 133 133 psFree(OUT); \ … … 146 146 } else { /* Transposed vectors */ \ 147 147 if (n1 != numCols2) { \ 148 psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, n1, numCols2); \148 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d. Number of elements must match."), n1, numCols2); \ 149 149 if (OUT != IN1 && OUT != IN2) { \ 150 150 psFree(OUT); \ … … 187 187 if (((psVector*)IN2)->type.dimen == PS_DIMEN_VECTOR) { /* Regular vectors */ \ 188 188 if (n2 != numRows1) { \ 189 psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, n2, numRows1); \189 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d. Number of elements must match."), n2, numRows1); \ 190 190 if (OUT != IN1 && OUT != IN2) { \ 191 191 psFree(OUT); \ … … 204 204 } else { /* Transposed vectors */ \ 205 205 if (n2 != numCols1) { \ 206 psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, n2, numCols1); \206 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d. Number of elements must match."), n2, numCols1); \ 207 207 if (OUT != IN1) { \ 208 208 psFree(OUT); \ … … 229 229 long numCols2 = ((psImage*)IN2)->numCols; \ 230 230 if (numRows1 != numRows2 || numCols1 != numCols2) { \ 231 psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_IMAGE_SIZE_DIFFERS, \231 psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified psImage dimensions differed, %dx%d vs %dx%d."), \ 232 232 numCols1, numRows1, numCols2, numRows2); \ 233 233 if (OUT != IN1 && OUT != IN2) { \ … … 278 278 PS_TYPE_NAME(strType,IN1->type); \ 279 279 psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ 280 PS_ERRORTEXT_psMatrix_TYPE_MISMATCH, \280 _("Specified data type, %s, is not supported."), \ 281 281 strType); */ \ 282 282 if (OUT != IN1 && OUT != IN2) { \ … … 329 329 PS_TYPE_NAME(strType,IN1->type); \ 330 330 psError(PS_ERR_BAD_PARAMETER_TYPE, true, \ 331 PS_ERRORTEXT_psMatrix_TYPE_MISMATCH, \331 _("Specified data type, %s, is not supported."), \ 332 332 strType); */ \ 333 333 if (OUT != IN1 && OUT != IN2) { \ … … 372 372 if (PS_IS_PSELEMTYPE_COMPLEX(IN1->type)) { \ 373 373 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 374 PS_ERRORTEXT_psMatrix_MIN_COMPLEX_SUPPORT); \374 _("The minimum operation is not supported with complex data.")); \ 375 375 if (OUT != IN1 && OUT != IN2) { \ 376 376 psFree(OUT); \ … … 383 383 if (PS_IS_PSELEMTYPE_COMPLEX(IN1->type)) { \ 384 384 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 385 PS_ERRORTEXT_psMatrix_MAX_COMPLEX_SUPPORT); \385 _("The maximum operation is not supported with complex data.")); \ 386 386 if (OUT != IN1 && OUT != IN2) { \ 387 387 psFree(OUT); \ … … 393 393 } else { \ 394 394 psError(PS_ERR_BAD_PARAMETER_VALUE, true, \ 395 PS_ERRORTEXT_psMatrix_OPERATION_UNSUPPORTED, \395 _("Specified operation, %s, is not supported."), \ 396 396 OP); \ 397 397 if (OUT != IN1 && OUT != IN2) { \ … … 469 469 if (out == NULL) { 470 470 psError(PS_ERR_UNKNOWN, false, 471 PS_ERRORTEXT_psMatrix_OUTPUT_VECTOR_NOT_CREATED);471 _("Couldn't create a proper output psVector.")); 472 472 return NULL; 473 473 } … … 478 478 if (out == NULL) { 479 479 psError(PS_ERR_UNKNOWN, false, 480 PS_ERRORTEXT_psMatrix_OUTPUT_IMAGE_NOT_CREATED);480 _("Couldn't create a proper output psImage.")); 481 481 return NULL; 482 482 } … … 484 484 } else { 485 485 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 486 PS_ERRORTEXT_psMatrix_DIMEN_INVALID,486 _("Specified parameter, %s, has invalid dimensionality, %d."), 487 487 "in2",dim2); 488 488 psBinaryOp_EXIT; … … 493 493 if (out == NULL) { 494 494 psError(PS_ERR_UNKNOWN, false, 495 PS_ERRORTEXT_psMatrix_OUTPUT_VECTOR_NOT_CREATED);495 _("Couldn't create a proper output psVector.")); 496 496 return NULL; 497 497 } … … 502 502 if (out == NULL) { 503 503 psError(PS_ERR_UNKNOWN, false, 504 PS_ERRORTEXT_psMatrix_OUTPUT_VECTOR_NOT_CREATED);504 _("Couldn't create a proper output psVector.")); 505 505 return NULL; 506 506 } … … 511 511 if (out == NULL) { 512 512 psError(PS_ERR_UNKNOWN, false, 513 PS_ERRORTEXT_psMatrix_OUTPUT_IMAGE_NOT_CREATED);513 _("Couldn't create a proper output psImage.")); 514 514 return NULL; 515 515 } … … 517 517 } else { 518 518 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 519 PS_ERRORTEXT_psMatrix_DIMEN_INVALID,519 _("Specified parameter, %s, has invalid dimensionality, %d."), 520 520 "in2",dim2); 521 521 psBinaryOp_EXIT; … … 525 525 if (out == NULL) { 526 526 psError(PS_ERR_UNKNOWN, false, 527 PS_ERRORTEXT_psMatrix_OUTPUT_IMAGE_NOT_CREATED);527 _("Couldn't create a proper output psImage.")); 528 528 return NULL; 529 529 } … … 536 536 } else { 537 537 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 538 PS_ERRORTEXT_psMatrix_DIMEN_INVALID,538 _("Specified parameter, %s, has invalid dimensionality, %d."), 539 539 "in2",dim2); 540 540 psBinaryOp_EXIT; … … 542 542 } else { 543 543 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 544 PS_ERRORTEXT_psMatrix_DIMEN_INVALID,544 _("Specified parameter, %s, has invalid dimensionality, %d."), 545 545 "in1",dim1); 546 546 psBinaryOp_EXIT;
Note:
See TracChangeset
for help on using the changeset viewer.
