genscal.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int C2F() genscal (integer *typ, integer *n, int *da, int *dx, integer *incx)


Function Documentation

int C2F() genscal ( integer typ,
integer n,
int da,
int dx,
integer incx 
)

Definition at line 18 of file genscal.c.

References i, i1, i2, incx, n, SCAL, and typ.

00019 {
00020   static integer i, i1, i2, nincx;
00021   if (*n <= 0 || *incx <= 0) return 0;
00022   nincx = *n * (*incx);
00023   i1 = nincx;
00024   i2 = *incx;
00025 
00026   switch (*typ) {
00027   case 1:
00028     SCAL(integer1);
00029     break;
00030   case 2:
00031     SCAL(integer2);
00032     break;
00033   case 4:
00034     SCAL(integer);
00035     break;
00036   case 11:
00037     SCAL(unsigned char);
00038     break;
00039   case 12:
00040     SCAL(unsigned short);
00041     break;
00042   case 14:
00043     SCAL(unsigned int);
00044     break;
00045   }
00046   return 0;
00047 }


Generated on Sun Mar 4 16:07:59 2007 for Scilab [trunk] by  doxygen 1.5.1