Blaze  3.6
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:

// ... 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:

// ... Initializing the matrices
M2 = !M1; // Elementwise logical NOT of a dense row-major matrix


Previous: Logical Operations     Next: Logical AND