I am using nengo_spa to form semantic pointers that can vary dynamically in scale. Implementing this bring up the error: NotImplementedError: Dynamic scaling of the semantic pointer not implemented. using the code below:
Note that you are using direct mode in your solution which means that the scaling is not computed in neurons. Depending on your use case this might be fine or it might not be (e.g. if you want to argue that your model is biological plausible).
Similar to your solution, but maybe a bit clearer is this approach that uses a Node:
The disadvantage of this approach is that the scaling factor gets replicated or each vector dimension. This is also the main reason this is not implemented in nengo_spa. This replication (and amount of required neural resources) might be surprising and thus it might be better to require the user to be explicit about this. But there is no technical reason and I could be persuaded with a good argument to include this functionality.