man > Bit::Vector

đŸˇī¸ NAME

Bit::Vector - Efficient bit vector, set of integers and "big int" math library

🚀 Quick Reference

Use CaseCommandDescription
đŸ“Ļ Create a new bit vectorBit::Vector->new($bits)Create a new bit vector with $bits bits, all cleared.
đŸ”ĸ Create from hex stringBit::Vector->new_Hex($bits, $hex)Create and initialize from hexadecimal string.
🔘 Set a single bit$vec->Bit_On($index)Set bit at $index to 1.
🔘 Clear a single bit$vec->Bit_Off($index)Set bit at $index to 0.
🔍 Test a bit$vec->bit_test($index)Return 1 if bit is set, 0 otherwise.
🔗 Bitwise OR (Union)$vec3->Or($vec1, $vec2)Compute bitwise OR of two vectors.
🔗 Bitwise AND (Intersection)$vec3->And($vec1, $vec2)Compute bitwise AND of two vectors.
🔗 Bitwise NOT (Complement)$vec2->Not($vec1)Compute bitwise complement (flip all bits).
➕ Arithmetic addition$vec3->add($vec1, $vec2, $carry)Add two numbers with carry, store result.
➖ Arithmetic subtraction$vec3->subtract($vec1, $vec2, $carry)Subtract two numbers with borrow.
âœ–ī¸ Multiplication$vec3->Multiply($vec1, $vec2)Multiply two signed numbers.
đŸ”ĸ Convert to hex string$vec->to_Hex()Return hexadecimal representation.
đŸ”ĸ Convert from hex string$vec->from_Hex($hex)Load vector from hexadecimal string.
📏 Get size$vec->Size()Return number of bits in vector.
📐 Resize$vec->Resize($bits)Change size, preserving as many bits as possible.

📋 SYNOPSIS

🔁 OVERLOADED OPERATORS

See Bit::Vector::Overload(3).

🔤 MORE STRING IMPORT/EXPORT

See Bit::Vector::String(3).

đŸ› ī¸ CLASS METHODS

🧰 OBJECT METHODS

âš ī¸ IMPORTANT NOTES

📖 DESCRIPTION

🔁 OVERLOADED OPERATORS

See Bit::Vector::Overload(3).

🔤 MORE STRING IMPORT/EXPORT

See Bit::Vector::String(3).

đŸ› ī¸ CLASS METHODS

🧰 OBJECT METHODS

📚 SEE ALSO

Bit::Vector::Overload(3), Bit::Vector::String(3), Storable(3).

Set::IntRange(3), Math::MatrixBool(3), Math::MatrixReal(3), DFA::Kleene(3), Math::Kleene(3), Graph::Kruskal(3).

đŸˇī¸ VERSION

This man page documents Bit::Vector version 7.4.

👤 AUTHOR

Steffen Beyer
mailto:STBEY AT cpan.org
http://www.engelschall.com/u/sb/download/

ÂŠī¸ COPYRIGHT

Copyright (c) 1995 - 2013 by Steffen Beyer. All rights reserved.

📄 LICENSE

This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e., under the terms of the "Artistic License" or the "GNU General Public License".

The C library at the core of this Perl module can additionally be redistributed and/or modified under the terms of the "GNU Library General Public License".

Please refer to the files "Artistic.txt", "GNU_GPL.txt" and "GNU_LGPL.txt" in this distribution for details!

âš ī¸ DISCLAIMER

This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the "GNU General Public License" for more details.

Bit::Vector
đŸˇī¸ NAME 🚀 Quick Reference 📋 SYNOPSIS
🔁 OVERLOADED OPERATORS 🔤 MORE STRING IMPORT/EXPORT đŸ› ī¸ CLASS METHODS 🧰 OBJECT METHODS
âš ī¸ IMPORTANT NOTES 📖 DESCRIPTION
🔁 OVERLOADED OPERATORS 🔤 MORE STRING IMPORT/EXPORT đŸ› ī¸ CLASS METHODS 🧰 OBJECT METHODS
📚 SEE ALSO đŸˇī¸ VERSION 👤 AUTHOR ÂŠī¸ COPYRIGHT 📄 LICENSE âš ī¸ DISCLAIMER

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-12 07:53 @2600:1f28:365:80b0:6f72:a904:73b0:e266
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^