Tensor.project

Tensor.project(basis)[source]

Transforms tensor to a different set of basis.

Slice(None) can be used to indicate no transformation. Note that this can reduce the rank of the array, for example when projecting onto an orthogonal space.

Parameters

basis (NBasis) – New basis.

Returns

Tensor projected onto basis.

Return type

Self