Part 2 : Configuration
The natives types are :
- bool : boolean (1 byte)
- char : character (1 byte)
- uchar : unsigned character (1 byte)
- short : short (2 bytes)
- ushort : unsigned short (2 bytes)
- int : integter (4 bytes)
- uint : unsigned integter (4 bytes)
- lint : long integer (8 bytes)
- luint : long unsigned integer (8 bytes)
- double : floating point double precision
- float : floating point simple precision
- string : text
Available containers are :
- Tensor : where its dimensions sizes have to be specified with previously declared attributes
- Vector : where its size is implicit
Exemple of
Tensor of
int :
1
2
3
4
5
6
7
8
9
|
///Test with a Shadok
Class Shadok{
///Number of rows of the matrix
luint nbRow;
///Number of columns of the matrix
luint nbCol;
///Matrix of values
Tensor(int, nbRow, nbCol) mat;
}
|
Exemple of
Vector of
int :
1
2
3
4
5
|
///Test with a Shadok
Class Shadok{
///Vector of values
Vector(int) vecInt;
}
|