それではstd.arrayのreplicateはどうでしょうか?
auto array = replicate([0.0], 100); // 長さ1の配列を100回繰り返す