sf.math.left_matmul_at_modes¶
- math.left_matmul_at_modes(b_full, modes)¶
Left matrix multiplication of a partial matrix and a full matrix.
It assumes that that
a_partialis a matrix operating on M modes and thatmodesis a list ofMintegers, i.e., it will applya_partialon the correspondingMmodes ofb_fullfrom the left.- Parameters:
a_partial (
ndarray[Tuple[int,...],Union[TypeVar(R,float16,float32,float64),TypeVar(C,complex64,complex128),TypeVar(Z,int16,int32,int64),TypeVar(N,uint16,uint32,uint64)]]) – The \(2M\times 2M\) arrayb_full (
ndarray[Tuple[int,...],Union[TypeVar(R,float16,float32,float64),TypeVar(C,complex64,complex128),TypeVar(Z,int16,int32,int64),TypeVar(N,uint16,uint32,uint64)]]) – The \(2N\times 2N\) arraymodes (
Sequence[int]) – A list ofMmodes to perform the multiplication on
- Return type:
ndarray[Tuple[int,...],Union[TypeVar(R,float16,float32,float64),TypeVar(C,complex64,complex128),TypeVar(Z,int16,int32,int64),TypeVar(N,uint16,uint32,uint64)]]- Returns:
The \(2N\times 2N\) array