3 ms·
I can strongly relate to that. You can write a custom "fill" method for your array and just do "arrray.fill", bam! It just works. You want numpy "zeros"? Just
by jane_red 6y ago
I can strongly relate to that. You can write a custom "fill" method for your array and just do "arrray.fill", bam! It just works. You want numpy "zeros"?
Just do a template
void zeros(T)(ref T arr) {
arr.each!"a = 0";
}
someArr.zeros;