For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
row_stride
def row_stride[dtype: DType, //, alignment: Int](t: TileTensor[dtype, Engine=t.Engine, address_space=t.address_space, linear_idx_type=t.linear_idx_type], name: StaticString) -> Int
Returns the row stride of a matrix whose rows are contiguous.
Parameters:
Args:
- βt (
TileTensor[dtype, Engine=t.Engine, address_space=t.address_space, linear_idx_type=t.linear_idx_type]): A rank-2 tensor with unit column stride. - βname (
StaticString): The tensor's name, for errors.
Returns:
Int: The distance between rows, in elements.
Raises:
If a row is not contiguous or does not start at alignment bytes.