Tensor Functions
[Functions]


Functions

tensor GAOpTensor (counter iAlgID, counter iOpID, list lLeftMask, list lRightMask, list lResMask)
 Generates the tensor representing a GA operation.
tensor MV2Tensor (list lA, list lMask)
 Gives the tensor representations of a list of multivector as the columns of a tensor.
tensor MV2Tensor (multivector vA, list lMask)
 Gives the tensor representation of a multivector as a column vector.
tensor Tensor (matrix mVal)
 Transforms a matrix into a tensor.
tensor Tensor (list lVal)
 Transforms a list into a tensor if possible.
tensor Tensor (counter iValence, list lDim)
 Create a tensor of given valence and dimensions.
list Tensor2MV (tensor tT)
 Gives the multivector representation of a tensor.

Detailed Description

Functions that deal with tensors.

Function Documentation

tensor GAOpTensor counter  iAlgID,
counter  iOpID,
list  lLeftMask,
list  lRightMask,
list  lResMask
 

Generates the tensor representing a GA operation.

Parameters:
iAlgID The ID-number of the algebra.
iOpID The ID-number of the operator.
lLeftMask (optional) The mask of the left operand.
lRightMask (optional) The mask of the right operand.
lResMask (optional) The mask of the resultant tensor.
Returns:
The tensor representing the respective GA operation.
Since:
v2.2
The algebra IDs that are currently defined in CLUScript are GA_E3, GA_P3, GA_N3, GA_C2. Possible values for the operator ID are MVOP_REVERSE, MVOP_INVOLUTE, MVOP_GEO, MVOP_INNER, MVOP_OUTER, MVOP_DUAL. See Working with Tensors for a detailed description.

tensor MV2Tensor list  lA,
list  lMask
 

Gives the tensor representations of a list of multivector as the columns of a tensor.

Parameters:
lA The list of multivectors.
lMask (optional) A masking list.
Returns:
The tensor representing the multivectors.
Since:
v2.2
See Working with Tensors for a detailed description.

tensor MV2Tensor multivector  vA,
list  lMask
 

Gives the tensor representation of a multivector as a column vector.

Parameters:
vA The multivector.
lMask (optional) A masking list.
Returns:
The tensor representing the multivector.
Since:
v2.2
See Working with Tensors for a detailed description.

tensor Tensor matrix  mVal  ) 
 

Transforms a matrix into a tensor.

Parameters:
mVal The matrix.
Returns:
A 2-valence tensor containing the matrix components.
Since:
v2.2
See Working with Tensors for a detailed description.

tensor Tensor list  lVal  ) 
 

Transforms a list into a tensor if possible.

Parameters:
lVal A list of scalar values, which must have the form of a tensor.
Returns:
A tensor containing the components of the list.
Since:
v2.2
See Working with Tensors for a detailed description.

tensor Tensor counter  iValence,
list  lDim
 

Create a tensor of given valence and dimensions.

Parameters:
iValence The valence of the tensor (the number of its indices).
lDim A list of counters giving the dimensions of the tensor.
Returns:
A tensor of the specified size containing zeros.
Since:
v2.2
See Working with Tensors for a detailed description.

list Tensor2MV tensor  tT  ) 
 

Gives the multivector representation of a tensor.

Parameters:
tT The tensor.
Returns:
A list of multivectors, one for each column of the tensor.
Since:
v2.2
See Working with Tensors for a detailed description.