I’m currently initializing with the following code:
const fd2: [16][16]@Vector(4, f32) = .{
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
[_]@Vector(4, f32){.{1.0, 1.0, 0.0, 1.0}} ** 16,
};
Is there a more compact way to do this? Preferably with fewer @Vector declarations on the right hand side?
Thanks.