qimpy.algorithms.MatrixArray
- class MatrixArray(M, group)
Bases:
objectArray 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
Global vector-space dot product collected over process group.
Attributes
Array of matrices with dimension ..., N x N
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)