qimpy.algorithms.MatrixArray

class MatrixArray(M, group)

Bases: object

Array of matrices implementing the Optimizable protocol. This is convenient as an independent variable for optimizing over subspace rotations, such as in LCAO and Wannier.

Parameters:
  • M (Tensor)

  • group (ProcessGroup)

__init__(M, group)
Parameters:
  • M (Tensor)

  • group (ProcessGroup)

Return type:

None

Methods

__init__

vdot

Global vector-space dot product collected over process group.

Attributes

M

Array of matrices with dimension ..., N x N

group

Process group where M is split on some dimension(s)

vdot(other)

Global vector-space dot product collected over process group.

Parameters:

other (MatrixArray)

Return type:

Tensor

M: Tensor

Array of matrices with dimension …, N x N

group: ProcessGroup

Process group where M is split on some dimension(s)