repeat
Repeat each element of an array after themselves
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
a
|
SparseArray
|
Input sparse arrays |
required |
repeats
|
int
|
The number of repetitions for each element. (Uneven repeats are not yet Implemented.) |
required |
axis
|
int
|
The axis along which to repeat values. Returns a flattened sparse array if not specified. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
out |
SparseArray
|
A sparse array which has the same shape as a, except along the given axis. |
Source code in sparse/numba_backend/_common.py
3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 | |