Wiki
Clone wikiblaze / Logical NOT
Vector/Vector Logical NOT
Via the logical NOT operator (i.e. operator!()
) it is possible to compute an elementwise logical NOT of a dense vector:
blaze::DynamicVector<bool> v1( 5UL ), v2;
// ... Initializing the vectors
v2 = !v1; // Elementwise logical NOT of a dense column vector
Matrix/Matrix Logical NOT
The logical NOT operator (i.e. operator!()
) can also be used to compute an elementwise logical NOT with dense matrices:
using blaze::rowMajor;
using blaze::columnMajor;
blaze::DynamicMatrix<bool,rowMajor> M1( 7UL, 3UL ), M2;
// ... Initializing the matrices
M2 = !M1; // Elementwise logical NOT of a dense row-major matrix
Previous: Logical Operations ---- Next: Logical AND
Updated