# Calculating transpose in Paraview

**URL:** https://discourse.paraview.org/t/calculating-transpose-in-paraview/4088
**Category:** ParaView Support
**Created:** [April 16, 2020, 10:08am UTC](https://discourse.paraview.org/t/calculating-transpose-in-paraview/4088 "2020-04-16T10:08:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Giri](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/8baadc/32.png) [@Giri](https://discourse.paraview.org/u/Giri)
#### Post date: [April 16, 2020, 10:08am UTC](https://discourse.paraview.org/t/calculating-transpose-in-paraview/4088/1 "2020-04-16T10:08:20Z")

</div>

I am required to calculate the transpose of a tensor. How can I calculate the transpose in Paraview. Can someone please provide some inputs how this can be done?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 17, 2020, 10:38am UTC](https://discourse.paraview.org/t/calculating-transpose-in-paraview/4088/2 "2020-04-17T10:38:20Z")

</div>

You should be able to write any single-element operation in a PythonCalculator filter.

---

<div class="post-metadata">

### Author: ![Giri](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/g/8baadc/32.png) [@Giri](https://discourse.paraview.org/u/Giri)
#### Post date: [April 17, 2020, 12:03pm UTC](https://discourse.paraview.org/t/calculating-transpose-in-paraview/4088/3 "2020-04-17T12:03:20Z")

</div>

I had to calculate the transpose of the velocity gradient tensor. I followed the following steps:

1. First I calculated the gradient of the velocity using the Gradients of Unstructured DataSet filter. The Result Array Name was given as _Gradient_
2. Then I applied the PythonCalculator filter. The code I entered was _numpy.transpose(Gradient)_

I got an error which says _Could not find a suitable VTK type for object_

Can you please tell where I have made a mistake and whether the steps I followed are correct?
