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
dense_pointer
def dense_pointer[dtype: DType](t: TileTensor[dtype, Engine=t.Engine, address_space=t.address_space, linear_idx_type=t.linear_idx_type]) -> MutPointer[Scalar[dtype], MutUntrackedOrigin]
Returns a generic pointer to a row-major tensor's first element.
Parameters:
- dtype (
DType): The element type.
Args:
- t (
TileTensor[dtype, Engine=t.Engine, address_space=t.address_space, linear_idx_type=t.linear_idx_type]): The tensor, which a kernel indexes as dense row-major.
Returns:
MutPointer[Scalar[dtype], MutUntrackedOrigin]: The tensor's base address, without its origin or address space.