Package maths_fns :: Module kronecker_product
[hide private]
[frames] | no frames]

Module kronecker_product

source code

Module for the calculation of the Kronecker product.

Functions [hide private]
ikxjl rank-2 numpy array
kron_prod(A, B)
Calculate the Kronecker product of the matrices A and B.
source code
 
transpose_12(matrix)
Perform the 1,2 transpose of a rank-4, 3D tensor.
source code
 
transpose_13(matrix)
Perform the 1,3 transpose of a rank-4, 3D tensor.
source code
 
transpose_14(matrix)
Perform the 1,4 transpose of a rank-4, 3D tensor.
source code
 
transpose_23(matrix)
Perform the 2,3 transpose of a rank-4, 3D tensor.
source code
 
transpose_24(matrix)
Perform the 2,4 transpose of a rank-4, 3D tensor.
source code
 
transpose_34(matrix)
Perform the 3,4 transpose of a rank-4, 3D tensor.
source code
Variables [hide private]
  __package__ = 'maths_fns'

Imports: concatenate, outer


Function Details [hide private]

kron_prod(A, B)

source code 

Calculate the Kronecker product of the matrices A and B.

Parameters:
  • A (rank-2 numpy array) - ixj matrix.
  • B (rank-2 numpy array) - kxl matrix.
Returns: ikxjl rank-2 numpy array
The Kronecker product.

transpose_12(matrix)

source code 

Perform the 1,2 transpose of a rank-4, 3D tensor.

Parameters:
  • matrix (numpy array) - The rank-4 tensor either in (9, 9) shape for a matrix or the (3, 3, 3, 3) shape for the tensor form.

transpose_13(matrix)

source code 

Perform the 1,3 transpose of a rank-4, 3D tensor.

Parameters:
  • matrix (numpy array) - The rank-4 tensor either in (9, 9) shape for a matrix or the (3, 3, 3, 3) shape for the tensor form.

transpose_14(matrix)

source code 

Perform the 1,4 transpose of a rank-4, 3D tensor.

Parameters:
  • matrix (numpy array) - The rank-4 tensor either in (9, 9) shape for a matrix or the (3, 3, 3, 3) shape for the tensor form.

transpose_23(matrix)

source code 

Perform the 2,3 transpose of a rank-4, 3D tensor.

Parameters:
  • matrix (numpy array) - The rank-4 tensor either in (9, 9) shape for a matrix or the (3, 3, 3, 3) shape for the tensor form.

transpose_24(matrix)

source code 

Perform the 2,4 transpose of a rank-4, 3D tensor.

Parameters:
  • matrix (numpy array) - The rank-4 tensor either in (9, 9) shape for a matrix or the (3, 3, 3, 3) shape for the tensor form.

transpose_34(matrix)

source code 

Perform the 3,4 transpose of a rank-4, 3D tensor.

Parameters:
  • matrix (numpy array) - The rank-4 tensor either in (9, 9) shape for a matrix or the (3, 3, 3, 3) shape for the tensor form.