tiny.simd.writeVector
Defined in print.
Source
Source: lib/simd/src/print.zig:218
zig
pub fn writeVector( writer: *std.Io.Writer, comptime D: type, caption: []const u8, value: D.Vector, options: Window,) std.Io.Writer.Error!void { const is_bfloat = @hasDecl(D, "is_bfloat16") and D.is_bfloat16; const T = if (is_bfloat) bfloat.BFloat16 else D.Lane; validateType(T); const bounds = try writeHeader(writer, T, caption, D.lane_count, options); const lanes: [D.lane_count]D.Lane = @bitCast(value); for (bounds.begin..bounds.end) |index| { if (is_bfloat) { try writeValue(writer, bfloat.BFloat16.fromBits(lanes[index])); } else { try writeValue(writer, lanes[index]); } try writer.writeByte(','); } try writeFooter(writer, bounds);}Source: lib/simd/src/root.zig:258
zig
pub const writeVector = print.writeVector;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |