Create an Array with constant value The trait ConstGenerator has been defined internally for the following types: - i64 - u64 - num::Complex\ a.k.a c32 - num::Complex\ a.k.a c64 - f32 - f64 - i32 - u32 - u8 - i16 - u16 # Parameters - `cnst` is the constant value to be filled in the Array - `dims` is the size of the constant Array # Return Values An Array of given dimensions with
(cnst: T, dims: Dim4)
| 287 | /// |
| 288 | /// An Array of given dimensions with constant value |
| 289 | pub fn constant<T>(cnst: T, dims: Dim4) -> Array<T> |
| 290 | where |
| 291 | T: ConstGenerator<OutType = T>, |
| 292 | { |
| 293 | cnst.generate(dims) |
| 294 | } |
| 295 | |
| 296 | /// Create a Range of values |
| 297 | /// |