IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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 struct

RowBoundsPtr

struct RowBoundsPtr

Row bounds read from a [rows] int32 device buffer.

Fields​

  • ​bounds (Pointer[Int32, ImmUntrackedOrigin]): Device pointer to one int32 bound per row.

Implemented traits​

AnyType, Copyable, Deinitable, DevicePassable, ImplicitlyCopyable, Movable, RegisterPassable, RowBound, TrivialRegisterPassable

comptime members​

device_type​

comptime device_type = RowBoundsPtr

Device-side type alias; the struct is trivially device-passable.

Sink​

comptime Sink = PlainSink

Selections go to the output buffer unchanged.

Methods​

__init__​

def __init__(bounds: Pointer[Int32, ImmutAnyOrigin]) -> Self

Wraps a device buffer of per-row bounds.

Args:

row​

def row(self, row: Int, out_idxs: Pointer[Int32, MutAnyOrigin]) -> Tuple[Int, PlainSink]

Returns bounds[row] and a plain sink.

Args:

Returns:

Tuple[Int, PlainSink]: The stored bound and a sink over out_idxs.

get_type_name​

static def get_type_name() -> String

Returns the type name for runtime diagnostics.

Returns:

String: Always "RowBoundsPtr".

Was this page helpful?