Blaze 3.9
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
Efficient implementation of an arbitrary sized vector.
Definition: DynamicVector.h:223


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
Efficient implementation of a dynamic matrix.
Definition: DynamicMatrix.h:242
constexpr bool rowMajor
Storage order flag for row-major matrices.
Definition: StorageOrder.h:71
constexpr bool columnMajor
Storage order flag for column-major matrices.
Definition: StorageOrder.h:99


Previous: Logical Operations     Next: Logical AND