diff options
author | torset | 2009-02-26 14:11:57 +0000 |
---|---|---|
committer | torset | 2009-02-26 14:11:57 +0000 |
commit | 26836dbcb34bce7288eeac72e89b24abc0b0285f (patch) | |
tree | 8b13e5ffa3888cf07367e3c5ef90df1728e8cf27 /src/Scilab2C | |
parent | 4f3dbb2e7d3bac73d88b0b074deb8bc777f8292e (diff) | |
download | scilab2c-26836dbcb34bce7288eeac72e89b24abc0b0285f.tar.gz scilab2c-26836dbcb34bce7288eeac72e89b24abc0b0285f.tar.bz2 scilab2c-26836dbcb34bce7288eeac72e89b24abc0b0285f.zip |
Add OpLogNot
Diffstat (limited to 'src/Scilab2C')
-rw-r--r-- | src/Scilab2C/Scilab2C/CFiles/sci2cincludes/OpLogNot.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/Scilab2C/Scilab2C/CFiles/sci2cincludes/OpLogNot.h b/src/Scilab2C/Scilab2C/CFiles/sci2cincludes/OpLogNot.h new file mode 100644 index 00000000..6184265c --- /dev/null +++ b/src/Scilab2C/Scilab2C/CFiles/sci2cincludes/OpLogNot.h @@ -0,0 +1,42 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + * + */ + +/* THIS IS AN AUTOMATICALLY GENERATED FILE : DO NOT EDIT BY HAND. */ + +#ifndef __INT_OPLOGNOT_H__ +#define __INT_OPLOGNOT_H__ + +#define s0OpLogNots0(in) (in==0) ? (float)1 : (float)0 + +#define d0OpLogNotd0(in) (in==0) ? (double)1 : (double)0 + +#define c0OpLogNotc0(in) (creals(in)==0) ? FloatComplex(1,0) : FloatComplex(0,0) + +#define z0OpLogNotz0(in) (zreals(in)==0) ? DoubleComplex(1,0) : DoubleComplex(0,0) + +#define s2OpLogNots2(in,size,out) {int i;\ + for (i=0;i<size[0]*size[1];i++) out[i]=s0OpLogNots0(in[i]);\ + } + +#define d2OpLogNotd2(in,size,out) {int i;\ + for (i=0;i<size[0]*size[1];i++) out[i]=d0OpLogNotd0(in[i]);\ + } + +#define c2OpLogNotc2(in,size,out) {int i;\ + for (i=0;i<size[0]*size[1];i++) out[i]=c0OpLogNotc0(in[i]);\ + } + +#define z2OpLogNotz2(in,size,out) {int i;\ + for (i=0;i<size[0]*size[1];i++) out[i]=z0OpLogNotz0(in[i]);\ + } + +#endif /* !__INT_OPLOGNOT_H__ */ |