ut3_weighted_inner#
- t3toolbox.uniform_tucker_tensor_train.ut3_weighted_inner(x_A, weights_A, x_B, weights_B, use_orthogonalization=True)#
def ut3_weighted_inner( x_A: 'UniformTuckerTensorTrain', weights_A: UT3Weights, x_B: 'UniformTuckerTensorTrain', weights_B: UT3Weights, use_orthogonalization: bool = True, ) -> NDArray: # weighted HS inner product, shape=stack_shape
Weighted Hilbert-Schmidt inner product
<absorb_weights(x_A, weights_A), absorb_weights(x_B, weights_B)>. Operands share physical shape; ranks/masks/weights may differ. Uniform twin oft3toolbox.tucker_tensor_train.t3_weighted_inner().- Parameters:
x_A (UniformTuckerTensorTrain)
weights_A (UT3Weights)
x_B (UniformTuckerTensorTrain)
weights_B (UT3Weights)
use_orthogonalization (bool)
- Return type: