用法
matvec(
x, adjoint=False, name='matvec'
)参数
-
xTensor形状兼容,dtype与self相同。x被视为 [batch] 向量,意思是每组前导维度,最后一个维度定义一个向量。有关兼容性的定义,请参见类文档字符串。 -
adjointPythonbool。如果True,左乘伴随:A^H x。 -
name此Op的名称。
返回
-
形状为
[..., M]的Tensor和与self相同的dtype。
用左乘法变换 [batch] 向量x:x --> Ax。
# Make an operator acting like batch matrix A. Assume A.shape = [..., M, N]
operator = LinearOperator(...)
X = ... # shape [..., N], batch vector
Y = operator.matvec(X)
Y.shape
==> [..., M]
Y[...,:] = sum_j A[...,:, j] X[..., j]
相关用法
- Python tf.linalg.LinearOperatorKronecker.matmul用法及代码示例
- Python tf.linalg.LinearOperatorKronecker.diag_part用法及代码示例
- Python tf.linalg.LinearOperatorKronecker.solve用法及代码示例
- Python tf.linalg.LinearOperatorKronecker.solvevec用法及代码示例
- Python tf.linalg.LinearOperatorKronecker.assert_non_singular用法及代码示例
- Python tf.linalg.LinearOperatorKronecker用法及代码示例
- Python tf.linalg.LinearOperatorFullMatrix.matvec用法及代码示例
- Python tf.linalg.LinearOperatorToeplitz.solve用法及代码示例
- Python tf.linalg.LinearOperatorIdentity.solvevec用法及代码示例
- Python tf.linalg.LinearOperatorPermutation.solve用法及代码示例
- Python tf.linalg.LinearOperatorToeplitz.matvec用法及代码示例
- Python tf.linalg.LinearOperatorBlockLowerTriangular.solvevec用法及代码示例
- Python tf.linalg.LinearOperatorLowerTriangular.matvec用法及代码示例
- Python tf.linalg.LinearOperatorCirculant2D.solve用法及代码示例
- Python tf.linalg.LinearOperatorCirculant3D.diag_part用法及代码示例
- Python tf.linalg.LinearOperatorToeplitz.solvevec用法及代码示例
- Python tf.linalg.LinearOperatorCirculant2D.assert_non_singular用法及代码示例
- Python tf.linalg.LinearOperatorPermutation.diag_part用法及代码示例
- Python tf.linalg.LinearOperatorToeplitz用法及代码示例
- Python tf.linalg.LinearOperatorCirculant2D.matvec用法及代码示例
注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.linalg.LinearOperatorKronecker.matvec。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
