Function ams::isContiguous

Function Documentation

bool ams::isContiguous(const AMSTensor &tensor)

Check if a tensor is contiguous in memory.

Parameters:

tensor – The tensor to check

Returns:

true if tensor is contiguous, false otherwise