Verifies that the inner dimensions of two or three given LazyTensor
are the same.
check_inner_dim(x, y, z = NA, check_type = "sameor1")
A boolean TRUE or FALSE.
A LazyTensor
or a ComplexLazyTensor
.
A LazyTensor
or a ComplexLazyTensor
.
A LazyTensor
or a ComplexLazyTensor
(optional, default = NA).
A character string among "same" and "sameor1" (default), to specify the desired type of inner dimension verification (see @details section).
Chloe Serre-Combe, Amelie Vernay
If x
and y
are of class LazyTensor
or ComplexLazyTensor
,
check_inner_dim(x, y, check_type = "same")
returns TRUE
if x
and y
inner dimensions are the same, and FALSE
otherwise, while
check_inner_dim(x, y, check_type = "sameor1")
returns TRUE
if x
and y
inner dimensions are the same or if at least one of these equals 1,
and FALSE
otherwise.
Same idea with a third input z
.