# simdFloatVector

A simd float vector record carrying label, capability, lanes, lowering, fallbackUsed, and related state.

Last updated: 2026-09-09

Package: compute.simd | Status: source-declared

Tags: compute, compute.simd, cpu, method, simd, source-example, thing, yeho

Describe and exercise bounded SIMD-style workloads and their fallback boundaries.

```yh
external thing simdFloatVector
```

- text label: Stores label as text.
- simdCapability capability: Stores capability as simdCapability.
- list of float lanes: Stores lanes as list of float.
- text lowering: Stores lowering as text.
- bool fallbackUsed: Stores fallback used as bool.
- text notes: Stores notes as text.
- simdFloatVector(text label, simdCapability capability, list of float lanes, text lowering, bool fallbackUsed, text notes): Simd float vector.
- LaneCount() returns int: Lane count.
- Readback() returns list of float: Readback.
- Describe() returns text: Describe.

## Use simdFloatVector

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
using compute.simd

// Describe and exercise bounded SIMD-style workloads and their fallback boundaries.
simdFloatVector sample = simdFloatVector("Player health", simdCapability("Nova", "target", "lane Family", 1, 1, true, "ready", "notes"), [], "lowering", true, "notes")
Console.Log(Text.From(sample.label))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_simd__simdfloatvector"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.simd"
version = "0.1.0"
path = "../../../yeho/packages/compute/simd"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.simd--simdFloatVector/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## simdFloatVector.LaneCount

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.simd

// Lane count.
simdFloatVector instance = simdFloatVector("Player health", simdCapability("Nova", "target", "lane Family", 1, 1, true, "ready", "notes"), [], "lowering", true, "notes")
int result = instance.LaneCount()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_simd__simdfloatvector"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.simd"
version = "0.1.0"
path = "../../../yeho/packages/compute/simd"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.simd--simdFloatVector/method-LaneCount-7 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## simdFloatVector.Readback

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.simd

// Readback.
simdFloatVector instance = simdFloatVector("Player health", simdCapability("Nova", "target", "lane Family", 1, 1, true, "ready", "notes"), [], "lowering", true, "notes")
list of float result = instance.Readback()
Console.Log(Text.From(result.count))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_simd__simdfloatvector"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.simd"
version = "0.1.0"
path = "../../../yeho/packages/compute/simd"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.simd--simdFloatVector/method-Readback-8 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## simdFloatVector.Describe

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using compute.simd

// Describe.
simdFloatVector instance = simdFloatVector("Player health", simdCapability("Nova", "target", "lane Family", 1, 1, true, "ready", "notes"), [], "lowering", true, "notes")
text result = instance.Describe()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.compute_simd__simdfloatvector"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.simd"
version = "0.1.0"
path = "../../../yeho/packages/compute/simd"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/compute.simd--simdFloatVector/method-Describe-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

Source: yeho/packages/compute/simd/simd_values.yh

AI training permission: https://demonhunterlabs.com/ai-use
