summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/auxiliaryFunctions/includes/length.h
blob: f8939f18dd40be2a92283b0713810fa3cd000989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
 *  Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 *  Copyright (C) 2007-2008 - INRIA - Bruno JOFRET
 *  Copyright (C) 2007-2008 - POLIBA - Raffaele Nutricato
 *
 *  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
 *
 */

#ifndef __LENGTH_H__
#define __LENGTH_H__

#include "dynlib_auxiliaryfunctions.h"

/**
 ** WARNING :
 ** We assume size of arrays are known, so we
 ** use #define to avoid compilation warnings
 ** such as "unused parameter"
 **/

/**
 ** \brief Float Size Scalar function
 ** Determine the size of an array.
 ** \param in : the float array we must determine size.
 ** \param size : the number of elements.
 ** \return the size of in.
 **/
#define	slengths(in)		1.0f

/**
 ** \brief Float length Scalar function
 ** Determine the length of an array.
 ** \param in : the float array we must determine length.
 ** \param length : the number of elements.
 ** \return the length of in.
 **/
#define	dlengths(in)		1.0

/**
 ** \brief Complex Float length Scalar function
 ** Determine the length of an array.
 ** \param in : the float array we must determine length.
 ** \param length : the number of elements.
 ** \return the length of in.
 **/
#define	clengths(in)		1.0f

/**
 ** \brief Complex Double length Array function
 ** Determine the length of an array.
 ** \param in : the float array we must determine length.
 ** \param length : the number of elements.
 ** \return the length of in.
 **/
#define	zlengths(in)		1.0

/**
 ** \brief Float length Array function
 ** Determine the length of an array.
 ** \param in : the float array we must determine length.
 ** \param length : the number of elements.
 ** \return the length of in.
 **/
#define	slengtha(in, size)	(float)size

/**
 ** \brief Double length Array function
 ** Determine the length of an array.
 ** \param in : the float array we must determine length.
 ** \param length : the number of elements.
 ** \return the length of in.
 **/
#define	dlengtha(in, size)	(double)size

/**
 ** \brief Complex Float length Array function
 ** Determine the length of an array.
 ** \param in : the float array we must determine length.
 ** \param length : the number of elements.
 ** \return the length of in.
 **/
#define	clengtha(in, size)	(float)size

/**
 ** \brief Complex Double length Array function
 ** Determine the length of an array.
 ** \param in : the float array we must determine length.
 ** \param length : the number of elements.
 ** \return the length of in.
 **/
#define	zlengtha(in, size)	(double)size

#endif /* !__LENGTH_H__ */