sf.math.right_matmul_at_modes¶
- math.right_matmul_at_modes(b_partial, modes)¶
Right matrix multiplication of a full matrix and a partial matrix.
It assumes that that
b_partialis a matrix operating onMmodes and thatmodesis a list ofMintegers, i.e., it will applyb_partialon the corresponding M modes ofa_fullfrom the right.- Parameters:
a_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\) arrayb_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\) arraymodes (
Sequence[int]) – A list of M modes 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