The concatenation operator allowed concatenating together vectors to form a larger vector. But sometimes you want the same thing concatenated together many times, and it is still tedious to do something like assign a = {b,b,b,b,b,b};. The replication operator allows repeating a vector and concatenating them together:
{num{vector}}
num必须是常数,且被复制num次
连接运算符允许将向量连接在一起以形成更大的向量。但有时您希望将同一事物多次连接在一起,并且执行诸如 assign a = {b,b,b,b,b,b}; 之类的操作仍然很乏味。复制运算符允许重复一个向量并将它们连接在一起:
This replicates vector by num times. num must be a constant. Both sets of braces are required.
Examples:两个大