14.2.42 Class WorkStack

mosek.fusion.WorkStack

Stack object used to store expression evaluations. For internal use.

Members:

WorkStack.Allocf64 – Allocate n doubles and return the stack index of the first

WorkStack.Alloci32 – Allocate n int32s and return the stack index of the first

WorkStack.Alloci64 – Allocate n int64s and return the stack index of the first

WorkStack.Clear – Clear all stacks

WorkStack.Ensuref64 – Make sure that the double stack has capacity for n new items

WorkStack.Ensurei32 – Make sure that the int32 stack has capacity for n new items

WorkStack.Ensurei64 – Make sure that the int64 stack has capacity for n new items

WorkStack.Peekf64 – Peek at one double item from stack

WorkStack.Peeki32 – Peek at one int32 item from stack

WorkStack.Peeki64 – Peek at one int64 item from stack

WorkStack.Popf64 – Pop one or more double items from stack

WorkStack.Popi32 – Pop one or more int32 items from stack

WorkStack.Popi64 – Pop one or more int64 items from stack

WorkStack.Pushf64 – Push an double value

WorkStack.Pushi32 – Push an int32 value

WorkStack.Pushi64 – Push an int64 value

WorkStack.Allocf64
int Allocf64(int n)

Allocate n doubles and return the stack index of the first

Parameters:

n (int)

Return:

(int)

WorkStack.Alloci32
int Alloci32(int n)

Allocate n int32s and return the stack index of the first

Parameters:

n (int)

Return:

(int)

WorkStack.Alloci64
int Alloci64(int n)

Allocate n int64s and return the stack index of the first

Parameters:

n (int)

Return:

(int)

WorkStack.Clear
void Clear()

Clear all stacks

WorkStack.Ensuref64
void Ensuref64(int n)

Make sure that the double stack has capacity for n new items

Parameters:

n (int) – Number of items to make space for

WorkStack.Ensurei32
void Ensurei32(int n)

Make sure that the int32 stack has capacity for n new items

Parameters:

n (int) – Number of items to make space for

WorkStack.Ensurei64
void Ensurei64(int n)

Make sure that the int64 stack has capacity for n new items

Parameters:

n (int) – Number of items to make space for

WorkStack.Peekf64
double Peekf64(int i)
double Peekf64()

Peek at one double item from stack

Parameters:

i (int) – Peek at this index on the stack (default is 0)

Return:

(double)

WorkStack.Peeki32
int Peeki32(int i)
int Peeki32()

Peek at one int32 item from stack

Parameters:

i (int) – Peek at this index on the stack (default is 0)

Return:

(int)

WorkStack.Peeki64
long Peeki64(int i)
long Peeki64()

Peek at one int64 item from stack

Parameters:

i (int) – Peek at this index on the stack (default is 0)

Return:

(long)

WorkStack.Popf64
double Popf64()
void Popf64(int n, double[] r, int ofs)
int Popf64(int n)

Pop one or more double items from stack

Parameters:
  • n (int) – Number of items to pop (default is 1)

  • r (double[]) – Copy popped item to this array

  • ofs (int) – Copy popped items to this offset in r

Return:
  • (double)

  • (int)

WorkStack.Popi32
int Popi32()
void Popi32(int n, int[] r, int ofs)
int Popi32(int n)

Pop one or more int32 items from stack

Parameters:
  • n (int) – Number of items to pop (default is 1)

  • r (int[]) – Copy popped item to this array

  • ofs (int) – Copy popped items to this offset in r

Return:

(int)

WorkStack.Popi64
long Popi64()
void Popi64(int n, long[] r, int ofs)
int Popi64(int n)

Pop one or more int64 items from stack

Parameters:
  • n (int) – Number of items to pop (default is 1)

  • r (long[]) – Copy popped item to this array

  • ofs (int) – Copy popped items to this offset in r

Return:
  • (long)

  • (int)

WorkStack.Pushf64
void Pushf64(double v)

Push an double value

Parameters:

v (double) – The value to store

WorkStack.Pushi32
void Pushi32(int v)

Push an int32 value

Parameters:

v (int) – The value to store

WorkStack.Pushi64
void Pushi64(long v)

Push an int64 value

Parameters:

v (long) – The value to store