- qspec.transform ( t , vec , axis = -1 )[source]
-
- Parameters:
-
- tarray_like
The transformation matrix which must hold t.shape[axis+1] == vec.shape[axis].
- vecarray_like
The vector to be transformed.
- axisNone
The axis along which the vector components of 'vec' are aligned and that is summed over.
- Returns:
-
- outndarray
The transformed vector vec_new = t * vec.