Gaurav Dhingra
Gaurav Dhingra
#### Description In issue https://github.com/scikit-learn/scikit-learn/issues/6433 (fixed by #10207), it was raised that `y` could reduce to contain less than two classes. During fixing that, Andreas made a comment here https://github.com/scikit-learn/scikit-learn/pull/10207#pullrequestreview-82909184...
Fixes #3517
raise error for both arrays and strings. Fixes #3545
#### constant array example ```bash > cat b.f90 program main integer :: x(7) x = (/1, 2, 3, 4, 5, 6, 7/) print *, x(13) end program > lfortran b.f90...
```bash > cat a7.f90 program main implicit none integer, allocatable :: arr1(:) arr1 = (/1, 2, 3/) print *, arr1 end program main > gfortran a7.f90 1 2 3 >...
```bash > cat a.f90 program main implicit none print *, shape(reshape( [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], [3, 4] )) end program > ./src/bin/lfortran...
```bash > cat a.f90 program main implicit none integer :: arr1(1) integer :: arr2(3) arr2 = (/1, 2, 3/) arr1 = arr2 print *, arr1 end program > ./src/bin/lfortran a.f90...
### Minimal reproducible example: For the below fortran program: ```f90 program ImplicitLogicalToIntCastExample implicit none logical :: logicalValue integer :: integerValue ! Assign a logical value logicalValue = .TRUE. ! Perform...
## Minimal reproducible example ```bash (lf1) gxyd@Gauravs-MacBook-Air ~/OpenSource/lfortran main bat a.f90 ───────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │ File: a.f90 ───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 1 │ program types_real_array_to_complex_array_cast 2 │ complex(8) :: x 3...