Terms, Conventions, and Syntax Defined
Ivec Class Syntax Conventions
Indicates floating point (
F) or integer (
Indicates signed (
s) or unsigned (
u). For the Ivec class, leaving this field blank indicates an intermediate class. For the Fvec classes, this field is blank because there are no unsigned Fvec classes.
Specifies the number of bits per element.
Specifies the number of elements.
Special Terms and Conventions
- Nearest Common Ancestor: This is the intermediate or parent class of two classes of the same size. For example, the nearest common ancestor ofIu8vec8andIs8vec8isI8vec8, and the nearest common ancestor betweenIu8vec8andI16vec4isM64.
- Casting:Changes the data type from one class to another. When an operation uses different data types as operands, the return value of the operation must be assigned to a single data type, and one or more of the data types must be converted to a required data type. This conversion is known as a typecast. While typecasting is occasionally automatic, in cases where it is not automatic you must use special syntax to explicitly typecast it yourself.
- Operator Overloading:This is the ability to use various operators on the user-defined data type of a given class. In the case of the Ivec and Fvec classes, once you declare a variable, you can add, subtract, multiply, and perform a range of operations. Each family of classes accepts a specified range of operators, and must comply by rules and restrictions regarding typecasting and operator overloading as defined in the header files.