support of operations with multiple matrix variables