Bit::Vector for Linux v.6.9

Advertisement
Advertisement

Bit::Vector is an efficient bit vector, set of integers and "big int" math library.CLASS METHODSVersion$version = Bit::Vector->Version();Word_Bits$bits = Bit::Vector->Word_Bits(); # bits in a machine wordLong_Bits$bits = Bit::Vector->Long_Bits(); # bits in an unsigned longnew$vector = Bit::Vector->new($bits); # bit vector constructor@veclist = Bit::Vector->new($bits,$count);new_Hex$vector = Bit::Vector->new_Hex($bits,$string);new_Bin$vector = Bit::Vector->new_Bin($bits,$string);new_Dec$vector = Bit::Vector->new_Dec($bits,$string);new_Enum$vector = Bit::Vector->new_Enum($bits,$string);Concat_List$vector = Bit::Vector->Concat_List(@vectors);OBJECT METHODSnew$vec2 = $vec1->new($bits); # alternative call of constructor@veclist = $vec->new($bits,$count);Shadow$vec2 = $vec1->Shadow(); # new vector, same size but emptyClone$vec2 = $vec1->Clone(); # new vector, exact duplicateConcat$vector = $vec1->Concat($vec2);Concat_List$vector = $vec1->Concat_List($vec2,$vec3,...);Size$bits = $vector->Size();Resize$vector->Resize($bits);$vector->Resize($vector->Size()+5);$vector->Resize($vector->Size()-5);Copy$vec2->Copy($vec1);Empty$vector->Empty();Fill$vector->Fill();Flip$vector->Flip();Primes$vector->Primes(); # Sieve of ErathostenesReverse$vec2->Reverse($vec1);Interval_Empty$vector->Interval_Empty($min,$max);Interval_Fill$vector->Interval_Fill($min,$max);Interval_Flip$vector->Interval_Flip($min,$max);Interval_Reverse$vector->Interval_Reverse($min,$max);Interval_Scan_incif (($min,$max) = $vector->Interval_Scan_inc($start))Interval_Scan_decif (($min,$max) = $vector->Interval_Scan_dec($start))Interval_Copy$vec2->Interval_Copy($vec1,$offset2,$offset1,$length);Interval_Substitute$vec2->Interval_Substitute($vec1,$off2,$len2,$off1,$len1);is_emptyif ($vector->is_empty())is_fullif ($vector->is_full())equalif ($vec1->equal($vec2))Lexicompare (unsigned)if ($vec1->Lexicompare($vec2) == 0)if ($vec1->Lexicompare($vec2) != 0)if ($vec1->Lexicompare($vec2) Lexicompare($vec2) Lexicompare($vec2) > 0)if ($vec1->Lexicompare($vec2) >= 0)Compare (signed)if ($vec1->Compare($vec2) == 0)if ($vec1->Compare($vec2) != 0)if ($vec1->Compare($vec2) Compare($vec2) Compare($vec2) > 0)if ($vec1->Compare($vec2) >= 0)to_Hex$string = $vector->to_Hex();from_Hex$vector->from_Hex($string);to_Bin$string = $vector->to_Bin();from_Bin$vector->from_Bin($string);to_Dec$string = $vector->to_Dec();from_Dec$vector->from_Dec($string);to_Enum$string = $vector->to_Enum(); # e.g. "2,3,5-7,11,13-19"from_Enum$vector->from_Enum($string);Bit_Off$vector->Bit_Off($index);Bit_On$vector->Bit_On($index);bit_flip$bit = $vector->bit_flip($index);bit_testcontains$bit = $vector->bit_test($index);$bit = $vector->contains($index);if ($vector->bit_test($index))if ($vector->contains($index))Bit_Copy$vector->Bit_Copy($index,$bit);LSB (least significant bit)$vector->LSB($bit);MSB (most significant bit)$vector->MSB($bit);lsb (least significant bit)$bit = $vector->lsb();msb (most significant bit)$bit = $vector->msb();rotate_left$carry = $vector->rotate_left();rotate_right$carry = $vector->rotate_right();shift_left$carry = $vector->shift_left($carry);shift_right$carry = $vector->shift_right($carry);Move_Left$vector->Move_Left($bits); # shift left "$bits" positionsMove_Right$vector->Move_Right($bits); # shift right "$bits" positionsInsert$vector->Insert($offset,$bits);Delete$vector->Delete($offset,$bits);increment$carry = $vector->increment();decrement$carry = $vector->decrement();inc$overflow = $vec2->inc($vec1);dec$overflow = $vec2->dec($vec1);add$carry = $vec3->add($vec1,$vec2,$carry);($carry,$overflow) = $vec3->add($vec1,$vec2,$carry);subtract$carry = $vec3->subtract($vec1,$vec2,$carry);($carry,$overflow) = $vec3->subtract($vec1,$vec2,$carry);NegNegate$vec2->Neg($vec1);$vec2->Negate($vec1);AbsAbsolute$vec2->Abs($vec1);$vec2->Absolute($vec1);Signif ($vector->Sign() == 0)if ($vector->Sign() != 0)if ($vector->Sign() Sign() Sign() > 0)if ($vector->Sign() >= 0)Multiply$vec3->Multiply($vec1,$vec2);Divide$quot->Divide($vec1,$vec2,$rest);GCD (Greatest Common Divisor)$vecgcd->GCD($veca,$vecb);$vecgcd->GCD($vecx,$vecy,$veca,$vecb);Power$vec3->Power($vec1,$vec2);Block_Store$vector->Block_Store($buffer);Block_Read$buffer = $vector->Block_Read();Word_Size$size = $vector->Word_Size(); # number of words in "$vector"Word_Store$vector->Word_Store($offset,$word);Word_Read$word = $vector->Word_Read($offset);Word_List_Store$vector->Word_List_Store(@words);Word_List_Read@words = $vector->Word_List_Read();Word_Insert$vector->Word_Insert($offset,$count);Word_Delete$vector->Word_Delete($offset,$count);Chunk_Store$vector->Chunk_Store($chunksize,$offset,$chunk);Chunk_Read$chunk = $vector->Chunk_Read($chunksize,$offset);Chunk_List_Store$vector->Chunk_List_Store($chunksize,@chunks);Chunk_List_Read@chunks = $vector->Chunk_List_Read($chunksize);Index_List_Remove$vector->Index_List_Remove(@indices);Index_List_Store$vector->Index_List_Store(@indices);Index_List_Read@indices = $vector->Index_List_Read();OrUnion$vec3->Or($vec1,$vec2);$set3->Union($set1,$set2);AndIntersection$vec3->And($vec1,$vec2);$set3->Intersection($set1,$set2);AndNotDifference$vec3->AndNot($vec1,$vec2);$set3->Difference($set1,$set2);XorExclusiveOr$vec3->Xor($vec1,$vec2);$set3->ExclusiveOr($set1,$set2);NotComplement$vec2->Not($vec1);$set2->Complement($set1);subsetif ($set1->subset($set2)) # true if $set1 is subset of $set2Norm$norm = $set->Norm();$norm = $set->Norm2();$norm = $set->Norm3();Min$min = $set->Min();Max$max = $set->Max();Multiplication$matrix3->Multiplication($rows3,$cols3,$matrix1,$rows1,$cols1,$matrix2,$rows2,$cols2);Product$matrix3->Product($rows3,$cols3,$matrix1,$rows1,$cols1,$matrix2,$rows2,$cols2);Closure$matrix->Closure($rows,$cols);Transpose$matrix2->Transpose($rows2,$cols2,$matrix1,$rows1,$cols1);

Bit::Vector is an efficient bit vector, set of ... An efficient bit vector, set of integers and "big int" math library ...

 
  • Bit::Vector for Linux
  • 6.9
  • Steffen Beyer
  • Linux
  • Freeware
  • 133 Kb
  • 147
  • Free
 
 

Review Bit::Vector for Linux

  • captcha
 

Other software of Steffen Beyer

New Components & Libraries software
  • Mgosoft PCL Converter SDK  v.9.2.8Convert PCL (pcl, pxl, px3) files to PDF, XPS, Text, PS and dozens of image formats, such as TIFF, JPEG, PNG, BMP, PCX, GIF, WMF, EMF, TGA and so on, it retains the layout, images, text, line, ellipse, color, and formatting of the original PCL file.
  • GeoDLL  v.20.09GeoDLL is a Geodetic Development Kit / Geodetic Function Library with worldwide 2D and 3D Coordinate Transformation, Datum Shift, Meridian Convergence and Extra Parameter with highest accuracy. Helmert, NTv2, HARN, INSPIRE, EPSG, DEM and much more ...
  • Mgosoft PS To PDF SDK  v.9.2.3Mgosoft PS To PDF is a simple tool that supports converting PostScript (PS) documents effectively, into Portable Document Format (PDF) format files.
  • Mgosoft PCL To PDF SDK  v.12.1.2Mgosoft PCL To PDF Converter is a fast, affordable way to batch convert your LaserJet PCL print files to industry standard PDF (Portable Document Format).
  • Ciscoconfparse  v.0.8.2Parse through Cisco IOS-style configurations and retrieve portions of the config using a variety of query methods ...
  • Libchamplain  v.0.12.0libchamplain is a C library created to provide a GTK+ widget to display rasterized maps.