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
raw_pointer
def raw_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 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.
Returns:
MutPointer[Scalar[dtype], MutUntrackedOrigin]: The tensor's base address, without its origin or address space.