Fills the array with the sequence i*multiplier for i=0,1,...
| 283 | |
| 284 | // Fills the array with the sequence i*multiplier for i=0,1,... |
| 285 | void FillWithMultiples(const T& multiplier) { |
| 286 | for (int64 i = 0; i < num_elements(); ++i) { |
| 287 | values_[i] = static_cast<T>(i) * multiplier; |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | // Fills the array with random normal variables with the specified mean. |
| 292 | void FillRandom(const T& stddev, const double mean = 0.0, |
no outgoing calls