Struct ena::bitvec::BitMatrix [] [src]

pub struct BitMatrix { /* fields omitted */ }

A "bit matrix" is basically a square matrix of booleans represented as one gigantic bitvector. In other words, it is as if you have N bitvectors, each of length N. Note that elements here is N/

Methods

impl BitMatrix
[src]

Do the bits from source contain target?

Put another way, if the matrix represents (transitive) reachability, can source reach target?

Returns those indices that are reachable from both a and b. This is an O(n) operation where n is the number of elements (somewhat independent from the actual size of the intersection, in particular).

Add the bits from read to the bits from write, return true if anything changed.

This is used when computing transitive reachability because if you have an edge write -> read, because in that case write can reach everything that read can (and potentially more).

Trait Implementations

impl Clone for BitMatrix
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more