Mask classes are abstractions for the results of vector comparisons. The actual implementation differs depending on the SIMD instruction set. On SSE they contain a full 128-bit datatype while on a different architecture they might be bit-fields.
|
template<typename T , typename Abi > |
std::ostream & | operator<< (std::ostream &out, const Vc::Mask< T, Abi > &m) |
| Prints the contents of a mask into a stream object.
|
|
|
using | double_m = Mask<double> |
| mask type for double_v vectors
|
|
using | float_m = Mask< float> |
| mask type for float_v vectors
|
|
using | int_m = Mask< int> |
| mask type for int_v vectors
|
|
using | uint_m = Mask< uint> |
| mask type for uint_v vectors
|
|
using | short_m = Mask< short> |
| mask type for short_v vectors
|
|
using | ushort_m = Mask<ushort> |
| mask type for ushort_v vectors
|
|
◆ operator<<()
template<typename T , typename Abi >
std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const Vc::Mask< T, Abi > & | m ) |
|
inline |
Prints the contents of a mask into a stream object.
std::cout << m << std::endl;
The main SIMD mask class.
static Vector IndexesFromZero()
Returns a vector with the entries initialized to 0, 1, 2, 3, 4, 5, ...
will output (with SSE):
m[1110 0000]
- Parameters
-
out | Any standard C++ ostream object. For example std::cout or a std::stringstream object. |
m | Any Vc::Mask object. |
- Returns
- The ostream object: to chain multiple stream operations.
- Note
- With the GNU standard library this function will check whether the output stream is a tty in which case it colorizes the output.
Definition at line 157 of file IO.