# tf.raw_ops.TridiagonalMatMul

<br />

Calculate product with tridiagonal matrix.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.TridiagonalMatMul`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/TridiagonalMatMul)

<br />

    tf.raw_ops.TridiagonalMatMul(
        superdiag, maindiag, subdiag, rhs, name=None
    )

Calculates product of two matrices, where left matrix is a tridiagonal matrix.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `superdiag` | A `Tensor`. Must be one of the following types: `float64`, `float32`, `complex64`, `complex128`. Tensor of shape `[..., 1, M]`, representing superdiagonals of tri-diagonal matrices to the left of multiplication. Last element is ignored. |
| `maindiag` | A `Tensor`. Must have the same type as `superdiag`. Tensor of shape `[..., 1, M]`, representing main diagonals of tri-diagonal matrices to the left of multiplication. |
| `subdiag` | A `Tensor`. Must have the same type as `superdiag`. Tensor of shape `[..., 1, M]`, representing subdiagonals of tri-diagonal matrices to the left of multiplication. First element is ignored. |
| `rhs` | A `Tensor`. Must have the same type as `superdiag`. Tensor of shape `[..., M, N]`, representing MxN matrices to the right of multiplication. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`. Has the same type as `superdiag`. ||

<br />