Scippy

SCIP

Solving Constraint Integer Programs

Detailed Description

packing single and dual bit values

Author
Thorsten Koch
Tobias Achterberg

Definition in file bitencode.c.

#include <assert.h>
#include "scip/def.h"
#include "scip/bitencode.h"

Go to the source code of this file.

Functions

void SCIPencodeSingleBit (const int *inp, SCIP_SINGLEPACKET *out, int count)
 
void SCIPdecodeSingleBit (const SCIP_SINGLEPACKET *inp, int *out, int count)
 
void SCIPencodeDualBit (const int *inp, SCIP_DUALPACKET *out, int count)
 
void SCIPdecodeDualBit (const SCIP_DUALPACKET *inp, int *out, int count)
 

Function Documentation

◆ SCIPencodeSingleBit()

void SCIPencodeSingleBit ( const int *  inp,
SCIP_SINGLEPACKET out,
int  count 
)

encode a single bit vector into packed format

Parameters
inpunpacked input vector
outbuffer to store the packed vector
countnumber of elements

Definition at line 41 of file bitencode.c.

References NULL, and SCIP_SINGLEPACKETSIZE.

◆ SCIPdecodeSingleBit()

void SCIPdecodeSingleBit ( const SCIP_SINGLEPACKET inp,
int *  out,
int  count 
)

decode a packed single bit vector into unpacked format

Parameters
inppacked input vector
outbuffer to store unpacked vector
countnumber of elements

Definition at line 131 of file bitencode.c.

References NULL, and SCIP_SINGLEPACKETSIZE.

◆ SCIPencodeDualBit()

void SCIPencodeDualBit ( const int *  inp,
SCIP_DUALPACKET out,
int  count 
)

encode a dual bit vector into packed format

Parameters
inpunpacked input vector
outbuffer to store the packed vector
countnumber of elements

Definition at line 238 of file bitencode.c.

References NULL, and SCIP_DUALPACKETSIZE.

Referenced by lpistatePack().

◆ SCIPdecodeDualBit()

void SCIPdecodeDualBit ( const SCIP_DUALPACKET inp,
int *  out,
int  count 
)

decode a packed dual bit vector into unpacked format

Parameters
inppacked input vector
outbuffer to store unpacked vector
countnumber of elements

Definition at line 308 of file bitencode.c.

References NULL, and SCIP_DUALPACKETSIZE.

Referenced by lpistateUnpack().