bitvec

package standard library
go1.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BitVec

type BitVec struct {
	N int32    // number of bits in vector
	B []uint32 // words holding bits
}

A BitVec is a bit vector.

func New

func New(n int32) BitVec

func (BitVec) And

func (dst BitVec) And(src1, src2 BitVec)

intersection

func (BitVec) AndNot

func (dst BitVec) AndNot(src1, src2 BitVec)

difference

func (BitVec) Clear

func (bv BitVec) Clear()

func (BitVec) Copy

func (dst BitVec) Copy(src BitVec)

func (BitVec) Eq

func (bv1 BitVec) Eq(bv2 BitVec) bool

func (BitVec) Get

func (bv BitVec) Get(i int32) bool

func (BitVec) IsEmpty

func (bv BitVec) IsEmpty() bool

func (BitVec) Next

func (bv BitVec) Next(i int32) int32

bvnext returns the smallest index >= i for which bvget(bv, i) == 1. If there is no such index, bvnext returns -1.

func (BitVec) Not

func (bv BitVec) Not()

func (BitVec) Or

func (dst BitVec) Or(src1, src2 BitVec)

union

func (BitVec) Set

func (bv BitVec) Set(i int32)

func (BitVec) String

func (bv BitVec) String() string

func (BitVec) Unset

func (bv BitVec) Unset(i int32)

type Bulk

type Bulk struct {
	// contains filtered or unexported fields
}

func NewBulk

func NewBulk(nbit int32, count int32) Bulk

func (*Bulk) Next

func (b *Bulk) Next() BitVec

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL