14.2.43 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