The computational complexity of torch.cat

how can I calculate the complexity O of torch.cat and torch.stack ?
and thank you