New functions to fetch invariants from tensors