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¶
allocf64(int n) -> int
Allocate n doubles and return the stack index of the first
- Parameters
n
(int
)- Return
(
int
)
- WorkStack.alloci32¶
alloci32(int n) -> int
Allocate n int32s and return the stack index of the first
- Parameters
n
(int
)- Return
(
int
)
- WorkStack.alloci64¶
alloci64(int n) -> int
Allocate n int64s and return the stack index of the first
- Parameters
n
(int
)- Return
(
int
)
- WorkStack.clear¶
clear()
Clear all stacks
- WorkStack.ensuref64¶
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¶
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¶
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¶
peekf64(int i) -> float peekf64() -> float
Peek at one double item from stack
- Parameters
i
(int
) – Peek at this index on the stack (default is 0)- Return
(
float
)
- WorkStack.peeki32¶
peeki32(int i) -> int peeki32() -> int
Peek at one int32 item from stack
- Parameters
i
(int
) – Peek at this index on the stack (default is 0)- Return
(
int
)
- WorkStack.peeki64¶
peeki64(int i) -> int peeki64() -> int
Peek at one int64 item from stack
- Parameters
i
(int
) – Peek at this index on the stack (default is 0)- Return
(
int
)
- WorkStack.popf64¶
popf64() -> float popf64(int n, float[] r, int ofs) popf64(int n) -> int
Pop one or more double items from stack
- Parameters
n
(int
) – Number of items to pop (default is 1)r
(float
[]) – Copy popped item to this arrayofs
(int
) – Copy popped items to this offset in r
- Return
(
float
)(
int
)
- WorkStack.popi32¶
popi32() -> int popi32(int n, int[] r, int ofs) popi32(int n) -> int
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 arrayofs
(int
) – Copy popped items to this offset in r
- Return
(
int
)
- WorkStack.popi64¶
popi64() -> int popi64(int n, int[] r, int ofs) popi64(int n) -> int
Pop one or more int64 items from stack
- Parameters
n
(int
) – Number of items to pop (default is 1)r
(int
[]) – Copy popped item to this arrayofs
(int
) – Copy popped items to this offset in r
- Return
(
int
)
- WorkStack.pushf64¶
pushf64(float v)
Push an double value
- Parameters
v
(float
) – The value to store
- WorkStack.pushi32¶
pushi32(int v)
Push an int32 value
- Parameters
v
(int
) – The value to store
- WorkStack.pushi64¶
pushi64(int v)
Push an int64 value
- Parameters
v
(int
) – The value to store