poITensorDefine SetFormat

Sets the tensor format.

Syntax

poITensorDefine_handle SetFormat format

Application

HyperView Tcl Modify

Description

This command, valid only in HyperView - MultiCore profile, sets the tensor format for the result definition. Returns Success (0) or an error code.

Inputs

format
The format string: "principal" or "normal".

Example

To set the tensor format to normal:

hwi OpenStack
hwi GetSessionHandle sess
sess GetProjectHandle proj
proj GetPageHandle page [proj GetActivePage]
page GetWindowHandle win [page GetActiveWindow]
win GetClientHandle client
client GetResultHandle tdefine 3 tensor
tdefine SetFormat normal
hwi CloseStack

Errors

Returns an error code if there was an error setting the tensor format and sets error condition on the session handle. See session_handle GetError.

Related Topics

See the HyperView - MultiCore APIs topic for additional information regarding the various Tcl/Tk commands that have been added for this workflow.