And use the ArraySize intrinsic.
Activity
certik commentedon Jan 24, 2023
Also
shape()czgdp1807 commentedon Jan 24, 2023
Next on my TODO list (after lfortran/lfortran#1210).
faze-geek commentedon Feb 16, 2024
numpy.size() has already been completed in this #1777 .
I can try to add this. But for shape we would need another intrinsic like
ArrayShaperight?certik commentedon Feb 16, 2024
Use the
ShapeIntrinsicArrayFunction. Here is how LFortran does it:It gives:
[-]Implement numpy.size()[/-][+]Implement numpy.size() and numpy.shape()[/+]