ggml_get_f32_nd: Get Single Float Value by N-D Index

View source: R/operations.R

ggml_get_f32_ndR Documentation

Get Single Float Value by N-D Index

Description

Gets a single f32 value from the tensor at position [i0, i1, i2, i3]. Works with any tensor type (auto-converts to float).

Usage

ggml_get_f32_nd(tensor, i0, i1 = 0, i2 = 0, i3 = 0)

Arguments

tensor

Tensor pointer

i0, i1, i2, i3

Indices (0-based)

Value

Float value


ggmlR documentation built on July 14, 2026, 1:08 a.m.