Defined ctranspose for ranges. Addresses #4619
Merge pull request #4669 from malmaud/n4619

Defined ctranspose for ranges. Addresses #4619