head 1.120; access; symbols pkgsrc-2023Q4:1.116.0.2 pkgsrc-2023Q4-base:1.116 pkgsrc-2023Q3:1.109.0.2 pkgsrc-2023Q3-base:1.109 pkgsrc-2023Q2:1.104.0.2 pkgsrc-2023Q2-base:1.104 pkgsrc-2023Q1:1.103.0.2 pkgsrc-2023Q1-base:1.103 pkgsrc-2022Q4:1.101.0.2 pkgsrc-2022Q4-base:1.101 pkgsrc-2022Q3:1.99.0.2 pkgsrc-2022Q3-base:1.99 pkgsrc-2022Q2:1.97.0.2 pkgsrc-2022Q2-base:1.97 pkgsrc-2022Q1:1.90.0.2 pkgsrc-2022Q1-base:1.90 pkgsrc-2021Q4:1.86.0.2 pkgsrc-2021Q4-base:1.86 pkgsrc-2021Q3:1.83.0.2 pkgsrc-2021Q3-base:1.83 pkgsrc-2021Q2:1.82.0.2 pkgsrc-2021Q2-base:1.82 pkgsrc-2021Q1:1.76.0.2 pkgsrc-2021Q1-base:1.76 pkgsrc-2020Q4:1.73.0.2 pkgsrc-2020Q4-base:1.73 pkgsrc-2020Q3:1.69.0.2 pkgsrc-2020Q3-base:1.69 pkgsrc-2020Q2:1.67.0.2 pkgsrc-2020Q2-base:1.67 pkgsrc-2020Q1:1.63.0.2 pkgsrc-2020Q1-base:1.63 pkgsrc-2019Q4:1.61.0.8 pkgsrc-2019Q4-base:1.61 pkgsrc-2019Q3:1.61.0.4 pkgsrc-2019Q3-base:1.61 pkgsrc-2019Q2:1.61.0.2 pkgsrc-2019Q2-base:1.61 pkgsrc-2019Q1:1.59.0.2 pkgsrc-2019Q1-base:1.59 pkgsrc-2018Q4:1.56.0.2 pkgsrc-2018Q4-base:1.56 pkgsrc-2018Q3:1.54.0.2 pkgsrc-2018Q3-base:1.54 pkgsrc-2018Q2:1.51.0.2 pkgsrc-2018Q2-base:1.51 pkgsrc-2018Q1:1.47.0.2 pkgsrc-2018Q1-base:1.47 pkgsrc-2017Q4:1.44.0.2 pkgsrc-2017Q4-base:1.44 pkgsrc-2017Q3:1.43.0.4 pkgsrc-2017Q3-base:1.43 pkgsrc-2017Q2:1.42.0.2 pkgsrc-2017Q2-base:1.42 pkgsrc-2017Q1:1.41.0.2 pkgsrc-2017Q1-base:1.41 pkgsrc-2016Q4:1.36.0.2 pkgsrc-2016Q4-base:1.36 pkgsrc-2016Q3:1.32.0.2 pkgsrc-2016Q3-base:1.32 pkgsrc-2016Q2:1.28.0.10 pkgsrc-2016Q2-base:1.28 pkgsrc-2016Q1:1.28.0.8 pkgsrc-2016Q1-base:1.28 pkgsrc-2015Q4:1.28.0.6 pkgsrc-2015Q4-base:1.28 pkgsrc-2015Q3:1.28.0.4 pkgsrc-2015Q3-base:1.28 pkgsrc-2015Q2:1.28.0.2 pkgsrc-2015Q2-base:1.28 pkgsrc-2015Q1:1.27.0.10 pkgsrc-2015Q1-base:1.27 pkgsrc-2014Q4:1.27.0.8 pkgsrc-2014Q4-base:1.27 pkgsrc-2014Q3:1.27.0.6 pkgsrc-2014Q3-base:1.27 pkgsrc-2014Q2:1.27.0.4 pkgsrc-2014Q2-base:1.27 pkgsrc-2014Q1:1.27.0.2 pkgsrc-2014Q1-base:1.27 pkgsrc-2013Q4:1.25.0.6 pkgsrc-2013Q4-base:1.25 pkgsrc-2013Q3:1.25.0.4 pkgsrc-2013Q3-base:1.25 pkgsrc-2013Q2:1.25.0.2 pkgsrc-2013Q2-base:1.25 pkgsrc-2013Q1:1.24.0.2 pkgsrc-2013Q1-base:1.24 pkgsrc-2012Q4:1.23.0.4 pkgsrc-2012Q4-base:1.23 pkgsrc-2012Q3:1.23.0.2 pkgsrc-2012Q3-base:1.23 pkgsrc-2012Q2:1.18.0.2 pkgsrc-2012Q2-base:1.18 pkgsrc-2012Q1:1.16.0.2 pkgsrc-2012Q1-base:1.16 pkgsrc-2011Q4:1.15.0.2 pkgsrc-2011Q4-base:1.15 pkgsrc-2011Q3:1.14.0.4 pkgsrc-2011Q3-base:1.14 pkgsrc-2011Q2:1.14.0.2 pkgsrc-2011Q2-base:1.14 pkgsrc-2011Q1:1.12.0.6 pkgsrc-2011Q1-base:1.12 pkgsrc-2010Q4:1.12.0.4 pkgsrc-2010Q4-base:1.12 pkgsrc-2010Q3:1.12.0.2 pkgsrc-2010Q3-base:1.12 pkgsrc-2010Q2:1.11.0.2 pkgsrc-2010Q2-base:1.11 pkgsrc-2010Q1:1.10.0.2 pkgsrc-2010Q1-base:1.10 pkgsrc-2009Q4:1.8.0.2 pkgsrc-2009Q4-base:1.8 pkgsrc-2009Q3:1.5.0.2 pkgsrc-2009Q3-base:1.5 pkgsrc-2009Q2:1.3.0.2 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.2.0.4 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.2.0.2 pkgsrc-2008Q4-base:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.120 date 2024.02.06.18.14.57; author adam; state Exp; branches; next 1.119; commitid 8UEPdtbOBcfJVoXE; 1.119 date 2024.01.15.17.50.34; author wiz; state Exp; branches; next 1.118; commitid vsphrFFBDTQcvzUE; 1.118 date 2024.01.04.22.06.13; author adam; state Exp; branches; next 1.117; commitid 5xi5EGGC34tMgbTE; 1.117 date 2024.01.02.19.57.46; author thor; state Exp; branches; next 1.116; commitid CpYPM6mz2jLWCUSE; 1.116 date 2023.12.07.20.45.56; author thor; state Exp; branches 1.116.2.1; next 1.115; commitid wDyxfLTI3IWXIzPE; 1.115 date 2023.11.23.08.54.23; author wiz; state Exp; branches; next 1.114; commitid loLqFUAwDA53fINE; 1.114 date 2023.11.21.21.58.01; author ryoon; state Exp; branches; next 1.113; commitid hLF3rfc93AuRDwNE; 1.113 date 2023.11.17.20.07.47; author wiz; state Exp; branches; next 1.112; commitid AvtaHWdcnBO2a0NE; 1.112 date 2023.11.17.19.08.36; author wiz; state Exp; branches; next 1.111; commitid NfxNgUZbloFIPZME; 1.111 date 2023.11.13.23.38.47; author wiz; state Exp; branches; next 1.110; commitid mWoshagMWFLmsvME; 1.110 date 2023.10.28.19.57.11; author wiz; state Exp; branches; next 1.109; commitid jP8MYROLWZ3yJqKE; 1.109 date 2023.08.02.16.17.17; author nia; state Exp; branches; next 1.108; commitid i87BGOoxRJYZjezE; 1.108 date 2023.07.31.18.36.01; author adam; state Exp; branches; next 1.107; commitid husWkQEks23G9ZyE; 1.107 date 2023.07.20.21.07.12; author nia; state Exp; branches; next 1.106; commitid dt28ktQRrrZxlAxE; 1.106 date 2023.07.10.13.38.10; author adam; state Exp; branches; next 1.105; commitid QkKbOcgdLoDlbgwE; 1.105 date 2023.07.01.08.38.26; author wiz; state Exp; branches; next 1.104; commitid ueq4Jk3r72QxO4vE; 1.104 date 2023.04.28.14.40.00; author adam; state Exp; branches; next 1.103; commitid Fw13AHBOI751SSmE; 1.103 date 2023.03.13.21.11.15; author wiz; state Exp; branches; next 1.102; commitid vn1sKVOuMEQYv0hE; 1.102 date 2023.01.20.13.39.21; author wiz; state Exp; branches; next 1.101; commitid UNTwu7MtD4REGhaE; 1.101 date 2022.11.20.19.03.47; author adam; state Exp; branches; next 1.100; commitid JTTHni90X7jrrt2E; 1.100 date 2022.10.19.17.27.58; author adam; state Exp; branches; next 1.99; commitid ixpS1YSXXTSiWlYD; 1.99 date 2022.09.12.08.05.45; author adam; state Exp; branches; next 1.98; commitid JBcKl7T9Eux71yTD; 1.98 date 2022.09.07.15.11.56; author adam; state Exp; branches; next 1.97; commitid ASgZNXHOdTvnxWSD; 1.97 date 2022.06.07.11.23.03; author jperkin; state Exp; branches; next 1.96; commitid 7B6iDEzeQc0fe6HD; 1.96 date 2022.05.25.19.22.20; author tnn; state Exp; branches; next 1.95; commitid MB84D2jgAaMqitFD; 1.95 date 2022.05.25.19.09.25; author tnn; state Exp; branches; next 1.94; commitid 7EXOIgfp5bQ1etFD; 1.94 date 2022.05.23.17.28.41; author ryoon; state Exp; branches; next 1.93; commitid 3wcmNXmBYorAJcFD; 1.93 date 2022.05.22.19.14.00; author adam; state Exp; branches; next 1.92; commitid YA5Dx7R6u4Iyl5FD; 1.92 date 2022.05.08.10.18.31; author nia; state Exp; branches; next 1.91; commitid 77tGdipM83RTPeDD; 1.91 date 2022.04.09.12.14.27; author adam; state Exp; branches; next 1.90; commitid TQeyVha4NHC0pwzD; 1.90 date 2022.01.29.07.46.10; author wiz; state Exp; branches 1.90.2.1; next 1.89; commitid lbJ0ceQLSouKavqD; 1.89 date 2022.01.05.15.41.14; author wiz; state Exp; branches; next 1.88; commitid FQ77UruBIUsgzsnD; 1.88 date 2022.01.04.20.54.15; author wiz; state Exp; branches; next 1.87; commitid CYyhdK9qtoffkmnD; 1.87 date 2021.12.30.13.05.37; author adam; state Exp; branches; next 1.86; commitid w23rFuQ4pTWhUFmD; 1.86 date 2021.12.20.11.27.57; author adam; state Exp; branches; next 1.85; commitid pq7HR1W7hrhFGnlD; 1.85 date 2021.11.06.11.52.37; author adam; state Exp; branches; next 1.84; commitid u32cf0KIa3IPeJfD; 1.84 date 2021.11.02.18.48.28; author adam; state Exp; branches; next 1.83; commitid iDdf4O78cDhfFffD; 1.83 date 2021.06.29.08.41.59; author nia; state Exp; branches; next 1.82; commitid D0oUCU0hDExum0ZC; 1.82 date 2021.06.15.04.41.53; author thor; state Exp; branches; next 1.81; commitid sIIQiUXwkWL6obXC; 1.81 date 2021.05.12.08.12.10; author adam; state Exp; branches; next 1.80; commitid mTbepBBqBxASJPSC; 1.80 date 2021.05.05.06.27.45; author wiz; state Exp; branches; next 1.79; commitid PEMFZpSj2qRWnVRC; 1.79 date 2021.05.03.17.15.22; author adam; state Exp; branches; next 1.78; commitid Wr8elrEVkkbv1JRC; 1.78 date 2021.04.20.20.53.48; author thor; state Exp; branches; next 1.77; commitid eXBklvQguJlvE4QC; 1.77 date 2021.04.07.11.57.30; author thor; state Exp; branches; next 1.76; commitid cDpuWHFvuuvQ5mOC; 1.76 date 2021.03.26.20.34.28; author thor; state Exp; branches; next 1.75; commitid IksxyYLvTdjjlRMC; 1.75 date 2021.03.25.21.47.50; author thor; state Exp; branches; next 1.74; commitid pyrW1DtcdfGlMJMC; 1.74 date 2021.01.09.09.29.41; author adam; state Exp; branches; next 1.73; commitid 0uLjHjiFE4iD72DC; 1.73 date 2020.11.26.10.50.44; author adam; state Exp; branches; next 1.72; commitid sV7GjO0eG8a3ZnxC; 1.72 date 2020.10.21.19.43.07; author nia; state Exp; branches; next 1.71; commitid zQKlorT8LM7j5OsC; 1.71 date 2020.10.12.21.51.58; author bacon; state Exp; branches; next 1.70; commitid 568C66J21E1N0FrC; 1.70 date 2020.10.02.07.44.15; author adam; state Exp; branches; next 1.69; commitid Vatnp3wZ62ZJIiqC; 1.69 date 2020.08.11.05.58.29; author mef; state Exp; branches; next 1.68; commitid RJzepWTgc03eOBjC; 1.68 date 2020.08.05.14.05.45; author adam; state Exp; branches; next 1.67; commitid bPU5UUaYIMjpGSiC; 1.67 date 2020.06.11.08.13.28; author adam; state Exp; branches; next 1.66; commitid CGFe5MiUlVEZvMbC; 1.66 date 2020.06.05.20.37.16; author leot; state Exp; branches; next 1.65; commitid IW1VtWQKqVw3P4bC; 1.65 date 2020.05.04.06.18.55; author adam; state Exp; branches; next 1.64; commitid pvKOqcRwhmWo6T6C; 1.64 date 2020.04.27.17.00.35; author adam; state Exp; branches; next 1.63; commitid B4NtGEuY61FnR26C; 1.63 date 2020.01.30.23.34.28; author minskim; state Exp; branches; next 1.62; commitid T8gH1qrpiZD7TLUB; 1.62 date 2020.01.24.16.18.22; author minskim; state Exp; branches; next 1.61; commitid 2f4jSf0JwojtFXTB; 1.61 date 2019.06.14.14.33.07; author adam; state Exp; branches; next 1.60; commitid ONbWkqpbaUyDharB; 1.60 date 2019.04.24.10.09.59; author adam; state Exp; branches; next 1.59; commitid l0EPdnjQE1YXsAkB; 1.59 date 2019.03.04.09.09.46; author adam; state Exp; branches; next 1.58; commitid g9FXchYI2Ea1M1eB; 1.58 date 2019.02.01.09.24.24; author adam; state Exp; branches; next 1.57; commitid cSwmP0BMeo3AQ2aB; 1.57 date 2019.01.15.21.36.57; author adam; state Exp; branches; next 1.56; commitid E46R3oaT6CH0sV7B; 1.56 date 2018.11.05.09.23.26; author adam; state Exp; branches; next 1.55; commitid htVs9D33NsgSFJYA; 1.55 date 2018.10.31.13.13.20; author adam; state Exp; branches; next 1.54; commitid lo0U9JngUipE67YA; 1.54 date 2018.09.24.09.01.20; author adam; state Exp; branches; next 1.53; commitid 15eCskmB7MSYTkTA; 1.53 date 2018.08.27.06.04.35; author adam; state Exp; branches; next 1.52; commitid x0Vx90vD8N4WOIPA; 1.52 date 2018.08.10.08.59.08; author adam; state Exp; branches; next 1.51; commitid CfhsLgn5kxILkyNA; 1.51 date 2018.06.18.06.47.03; author adam; state Exp; branches; next 1.50; commitid zwxjnn5A9rzejJGA; 1.50 date 2018.06.10.12.56.54; author wen; state Exp; branches; next 1.49; commitid 0vvqLGdf8PILBJFA; 1.49 date 2018.05.16.06.53.18; author minskim; state Exp; branches; next 1.48; commitid FIcm2l0JZRlGouCA; 1.48 date 2018.05.02.04.42.25; author adam; state Exp; branches; next 1.47; commitid CXJ3Yyo7maV48GAA; 1.47 date 2018.03.13.11.34.08; author adam; state Exp; branches; next 1.46; commitid Kkfmh8e6gjOH0iuA; 1.46 date 2018.02.22.10.50.47; author adam; state Exp; branches; next 1.45; commitid FxQOqYdfWUu1oQrA; 1.45 date 2018.01.10.08.31.24; author adam; state Exp; branches; next 1.44; commitid FyoMey4DqffUZimA; 1.44 date 2017.10.05.08.21.27; author adam; state Exp; branches; next 1.43; commitid WF0eWlC0ZUML3Q9A; 1.43 date 2017.07.07.04.21.10; author adam; state Exp; branches 1.43.4.1; next 1.42; commitid lTGP3bp6PJrLCfYz; 1.42 date 2017.06.15.07.02.53; author adam; state Exp; branches; next 1.41; commitid znxebgt5vuERdrVz; 1.41 date 2017.03.24.19.22.27; author joerg; state Exp; branches; next 1.40; commitid Ou9GoQMbDG76ZPKz; 1.40 date 2017.03.24.15.12.30; author joerg; state Exp; branches; next 1.39; commitid kLXHu4NLvdDsBOKz; 1.39 date 2017.03.20.13.50.01; author wiz; state Exp; branches; next 1.38; commitid 8YjvKopkIZtahiKz; 1.38 date 2017.01.22.14.43.24; author wiz; state Exp; branches; next 1.37; commitid FRyGO6xT6Wo3pYCz; 1.37 date 2017.01.01.15.31.47; author wiz; state Exp; branches; next 1.36; commitid xUlJKiCRhWgwlhAz; 1.36 date 2016.12.12.14.36.22; author wiz; state Exp; branches; next 1.35; commitid QGfOPj6liMihGHxz; 1.35 date 2016.12.12.14.23.47; author wiz; state Exp; branches; next 1.34; commitid 8AoO9R1a1Gi2CHxz; 1.34 date 2016.12.04.22.51.55; author marino; state Exp; branches; next 1.33; commitid FGBHHhDvVOWkGIwz; 1.33 date 2016.10.31.16.26.57; author wiz; state Exp; branches; next 1.32; commitid yWSo2aQ7F7UZDjsz; 1.32 date 2016.08.28.15.48.33; author wiz; state Exp; branches; next 1.31; commitid rTBn3EBawNhbu5kz; 1.31 date 2016.08.23.22.45.05; author wiz; state Exp; branches; next 1.30; commitid dKRx2j7PqvcgXtjz; 1.30 date 2016.08.02.10.14.46; author jperkin; state Exp; branches; next 1.29; commitid 8U7rhzgktloEtIgz; 1.29 date 2016.07.24.15.25.22; author kamil; state Exp; branches; next 1.28; commitid 8sqMclf1QAF7sAfz; 1.28 date 2015.04.17.00.41.38; author wen; state Exp; branches; next 1.27; commitid gQIAsNZOP64puShy; 1.27 date 2014.02.28.09.43.10; author adam; state Exp; branches; next 1.26; commitid h1G7PkvcwiwlMQqx; 1.26 date 2014.01.25.10.30.13; author wiz; state Exp; branches; next 1.25; commitid VOWgk3vYhVXj8umx; 1.25 date 2013.05.20.05.59.58; author adam; state Exp; branches; next 1.24; commitid BtNsWLA0HBRRFkQw; 1.24 date 2013.02.21.10.59.38; author jperkin; state Exp; branches; next 1.23; 1.23 date 2012.09.11.23.04.31; author asau; state Exp; branches; next 1.22; 1.22 date 2012.08.15.17.16.37; author drochner; state Exp; branches; next 1.21; 1.21 date 2012.08.14.21.04.21; author fhajny; state Exp; branches; next 1.20; 1.20 date 2012.08.14.20.19.20; author fhajny; state Exp; branches; next 1.19; 1.19 date 2012.08.09.12.42.16; author jperkin; state Exp; branches; next 1.18; 1.18 date 2012.04.25.16.36.39; author hans; state Exp; branches; next 1.17; 1.17 date 2012.04.17.17.24.41; author drochner; state Exp; branches; next 1.16; 1.16 date 2012.02.09.13.09.09; author obache; state Exp; branches; next 1.15; 1.15 date 2011.12.20.16.38.30; author joerg; state Exp; branches; next 1.14; 1.14 date 2011.04.19.15.32.28; author roy; state Exp; branches; next 1.13; 1.13 date 2011.04.19.13.14.28; author roy; state Exp; branches; next 1.12; 1.12 date 2010.07.30.10.36.30; author asau; state Exp; branches; next 1.11; 1.11 date 2010.04.24.17.13.55; author gls; state Exp; branches; next 1.10; 1.10 date 2010.01.30.16.27.59; author heinz; state Exp; branches; next 1.9; 1.9 date 2010.01.27.20.48.20; author drochner; state Exp; branches; next 1.8; 1.8 date 2009.12.04.21.23.22; author markd; state Exp; branches; next 1.7; 1.7 date 2009.12.03.13.06.55; author asau; state Exp; branches; next 1.6; 1.6 date 2009.10.24.14.22.49; author ahoka; state Exp; branches; next 1.5; 1.5 date 2009.09.10.19.03.26; author wiz; state Exp; branches; next 1.4; 1.4 date 2009.07.25.12.08.26; author markd; state Exp; branches; next 1.3; 1.3 date 2009.06.26.19.47.14; author joerg; state Exp; branches; next 1.2; 1.2 date 2008.12.19.22.09.55; author markd; state Exp; branches; next 1.1; 1.1 date 2008.12.19.22.04.36; author markd; state Exp; branches 1.1.1.1; next ; 1.116.2.1 date 2024.01.19.20.15.33; author bsiegert; state Exp; branches; next ; commitid vTmOUuk7rU2Ua6VE; 1.90.2.1 date 2022.05.20.12.54.08; author bsiegert; state Exp; branches; next ; commitid ATdpwDE1XUHpjNED; 1.43.4.1 date 2017.10.09.12.23.07; author spz; state Exp; branches; next ; commitid MjQKvQLHiZNOgnaA; 1.1.1.1 date 2008.12.19.22.04.36; author markd; state Exp; branches; next ; desc @@ 1.120 log @py-numpy: updated to 1.26.4 NumPy 1.26.4 is a maintenance release that fixes bugs and regressions discovered after the 1.26.3 release. The Python versions supported by this release are 3.9-3.12. This is the last planned release in the 1.26.x series. BUG: Restore missing asstr import MAINT: prepare 1.26.x for further development BUG: ``numpy.array_api``: fix ``linalg.cholesky`` upper decomp... CI: Bump azure pipeline timeout to 120 minutes MAINT, BLD: Fix unused inline functions warnings on clang BLD: include fix for MinGW platform detection TST: Fix test_numeric on riscv64 BLD: fix building for windows ARM64 MAINT: add ``newaxis`` to ``__all__`` in ``numpy.array_api`` BUG: Use large file fallocate on 32 bit linux platforms TST: Fix test_warning_calls on Python 3.12 TST: Bump pytz to 2023.3.post1 BUG: Fix AVX512 build flags on Intel Classic Compiler BLD: fix potential issue with escape sequences in ``__config__.py`` CI: pin cygwin python to 3.9.16-1 and fix typing tests [skip... MAINT: Bump cibuildwheel to v2.16.4 BLD: unvendor meson-python on 1.26.x and upgrade to meson-python... MAINT: Include header defining backtrace BUG: Fix np.quantile([Fraction(2,1)], 0.5) @ text @# $NetBSD: Makefile,v 1.119 2024/01/15 17:50:34 wiz Exp $ DISTNAME= numpy-1.26.4 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= math python MASTER_SITES= ${MASTER_SITE_PYPI:=n/numpy/} MAINTAINER= pkgsrc-users@@NetBSD.org HOMEPAGE= https://www.numpy.org/ COMMENT= Array processing for numbers, strings, records, and objects LICENSE= modified-bsd TOOL_DEPENDS+= ${PYPKGPREFIX}-meson_python-[0-9]*:../../devel/py-meson_python TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython #TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test TEST_DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4.2.0:../../devel/py-typing-extensions USE_LANGUAGES= c c++ fortran # error: 'for' loop initial declarations are only allowed in C99 mode FORCE_C_STD= c99 USE_CXX_FEATURES+= c++17 # checks for gcc 8.4 GCC_REQD+= 8 USE_TOOLS+= pkg-config .include "../../math/py-numpy/make_env.mk" REPLACE_PYTHON+= *.py */*.py */*/*.py */*/*/*.py */*/*/*/*.py PYTHON_VERSIONS_INCOMPATIBLE= 27 38 .include "../../lang/python/pyversion.mk" PLIST_VARS+= distutils # Python 3.12 has no distutils anymore. .if ${PYTHON_VERSION} < 312 PLIST.distutils= yes .endif PRINT_PLIST_AWK+= /\/distutils\// { $$0 = "$${PLIST.distutils}" $$0 } # XXX Avoid picking up other compilers when installed .include "../../mk/compiler.mk" .if defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "g95" PYSETUPBUILDARGS+= --fcompiler=g95 .elif defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "gfortran" PYSETUPBUILDARGS+= --fcompiler=gnu95 .elif !empty(PKGSRC_COMPILER:Mgcc) PYSETUPBUILDARGS+= --fcompiler=gnu .endif # This package bypasses the wrappers and calls the compilers directly when # linking, so ensure that we pass through requisite options. LDFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}} # Check if the numpy/scipy ecosystem is ready for full ILP64 before # allowing/setting BLAS_INDEX64=yes. Scipy needs both variants right now, # wich does not work without standardized symbol suffix. # Will need -Csetup-args=Duse-ilp64, too. # TODO: accelerate.framework has no pkg-config yet (see blas.buildlink3.mk). BLAS_ACCEPTED= ${_BLAS_TYPES} BLAS_C_INTERFACE= yes # Cblas and lapack API (not lapacke) is desired. # Meson build uses pkg-config since 1.26.2 (or elaborate own logic not # suitable here) and guesses for cblas if blas lib does not contain the # C interface. That covers netlib for us, and openblas builds serve # all APIs. WHEEL_ARGS+= -Csetup-args=-Dblas=${BLAS_PC} WHEEL_ARGS+= -Csetup-args=-Dlapack=${LAPACK_PC} # Remove invalid __STDC_VERSION__ setting BUILDLINK_TRANSFORM.SunOS+= rm:-D__STDC_VERSION__=0 pre-configure: ${LN} -sf ${PREFIX}/bin/cython-${PYVERSSUFFIX} ${BUILDLINK_DIR}/bin/cython # Files don't exist with Python 3.12, so add '-f' to ${RM} # (Please check if this is still necessary after updates.) post-install: ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/command/config.py.orig ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/__init__.py.orig ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/g95.py.orig ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/gnu.py.orig ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/log.py.orig cd ${DESTDIR}${PREFIX}/bin && ${MV} f2py f2py-${PYVERSSUFFIX} || ${TRUE} # as of 1.26.1 # 28 failed, 38180 passed, 200 skipped, 1304 deselected, 33 xfailed, 1 xpassed, 52 warnings do-test: cd ${WRKDIR} && \ ${SETENV} ${TEST_ENV} PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} ${PYTHONBIN} -c "import numpy; numpy.test()" .include "../../lang/python/application.mk" .include "../../lang/python/wheel.mk" .include "../../mk/blas.buildlink3.mk" .include "../../mk/bsd.pkg.mk" @ 1.119 log @py-numpy: fix build with Python 3.12 The upstream code has moved and changed and it's hard to see what/when, but I've tried to make it match what upstream is doing now. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.118 2024/01/04 22:06:13 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.26.3 @ 1.118 log @py-numpy: updated to 1.26.3 1.26.3 MAINT: prepare 1.26.x for further development TYP: add None to ``__getitem__`` in ``numpy.array_api`` BLD,BUG: quadmath required where available [f2py] BUG: alpha doesn't use REAL(10) BUG: Fix FP overflow error in division when the divisor is scalar MAINT: Pin scipy-openblas version. BUG: Fix f2py to enable use of string optional inout argument BUG: Fix -fsanitize=alignment issue in numpy/_core/src/multiarray/arraytypes.c.src TST: Explicitly pass NumPy path to cython during tests (also... BUG: fix issues with ``newaxis`` and ``linalg.solve`` in ``numpy.array_api`` BUG: Disallow shadowed modulenames BUG: Handle common blocks with kind specifications from modules BUG: Fix moving compiled executable to root with f2py -c on Windows BUG: Fix single to half-precision conversion on PPC64/VSX3 TST: f2py: fix issue in test skip condition Revert "MAINT: Pin scipy-openblas version." MAINT: do not use ``long`` type TST: PyPy needs another gc.collect on latest versions CI: Install Lapack runtime on Cygwin. MAINT: Bump conda-incubator/setup-miniconda from 2.2.0 to 3.0.1 BLD: update vendored Meson for AIX shared library fix MAINT: Init ``base`` in cpu_avx512_kn BUG: Fix failing test_features on SapphireRapids BUG: Fix non-contiguous memory load when ARM/Neon is enabled MAINT,BUG: Never import distutils above 3.12 [f2py] MAINT: make the import-time check for old Accelerate more specific BUG: fix macOS version checks for Accelerate support MAINT: Bump actions/setup-node and larsoner/circleci-artifacts-redirector-action BUG: avoid seg fault from OOB access in RandomState.set_state() BUG: Fix two errors related to not checking for failed allocations BUG: Fix regression with ``f2py`` wrappers when modules and subroutines... BUG: Fix build issues on SPR BLD: fix uninitialized variable warnings from simd/neon/memory.h BUG: Handle ``iso_c_type`` mappings more consistently BUG: Fix module name bug in signature files [urgent] [f2py] BUG: Handle .pyf.src and fix SciPy [urgent] DOC: ``f2py`` rewrite with ``meson`` details BUG: Add external library handling for meson [f2py] MAINT: Run f2py's meson backend with the same python that ran... MAINT: Update ``numpy/f2py/_backends`` from main. MAINT: Easy updates of ``f2py/*.py`` from main. MAINT: Update crackfortran.py and f2py2e.py from main @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.117 2024/01/02 19:57:46 thor Exp $ d83 2 d86 5 a90 5 ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/command/config.py.orig ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/__init__.py.orig ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/g95.py.orig ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/gnu.py.orig ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/log.py.orig @ 1.117 log @math/py-numpy: actually blas=blas (cblas implicit) for more correct linkage @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.116 2023/12/07 20:45:56 thor Exp $ d3 1 a3 2 DISTNAME= numpy-1.26.2 PKGREVISION= 2 d84 5 @ 1.116 log @py-numpy: fix BLAS choice This is now properly using WHEEL_ARGS to impose our BLAS choice. Supporting Accelerate Framework on Darwin means extra work (some shim pkgconfig file via the proposed blaswrap package). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.115 2023/11/23 08:54:23 wiz Exp $ d4 1 a4 1 PKGREVISION= 1 d70 1 a70 1 # Yes, cblas and lapack API (not lapacke) is desired. d72 4 a75 2 # suitable here). WHEEL_ARGS+= -Csetup-args=-Dblas=${CBLAS_PC} @ 1.116.2.1 log @Pullup ticket #6834 - requested by wiz math/py-numpy: Python 3.12 build fix (via patch) Revisions pulled up: - math/py-numpy/Makefile 1.117-1.119 - math/py-numpy/PLIST 1.46 - math/py-numpy/distinfo 1.87-1.88 - math/py-numpy/patches/patch-numpy_core_code__generators_generate__numpy__api.py 1.1 - math/py-numpy/patches/patch-numpy_core_code__generators_generate__ufunc__api.py 1.1 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.119 2024/01/15 17:50:34 wiz Exp $ d3 2 a4 1 DISTNAME= numpy-1.26.3 d70 1 a70 1 # Cblas and lapack API (not lapacke) is desired. d72 2 a73 4 # suitable here) and guesses for cblas if blas lib does not contain the # C interface. That covers netlib for us, and openblas builds serve # all APIs. WHEEL_ARGS+= -Csetup-args=-Dblas=${BLAS_PC} a81 2 # Files don't exist with Python 3.12, so add '-f' to ${RM} # (Please check if this is still necessary after updates.) a82 5 ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/command/config.py.orig ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/__init__.py.orig ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/g95.py.orig ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/gnu.py.orig ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/log.py.orig @ 1.115 log @py-numpy: checks for gcc 8.4+, set GCC_REQD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.114 2023/11/21 21:58:01 ryoon Exp $ d4 1 d63 6 a68 1 BLAS_ACCEPTED= ${_BLAS_TYPES} accelerate.framework d70 5 a74 2 CPPFLAGS+= ${BLAS_INCLUDES} LDFLAGS+= ${CBLAS_LIBS} ${LAPACK_LIBS} @ 1.114 log @py-numpy: Fix PLIST for Python 3.12 * Python 3.12 has no distutils anymore. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.113 2023/11/17 20:07:47 wiz Exp $ d28 3 @ 1.113 log @py-numpy: update to 1.26.2. NumPy 1.26.2 is a maintenance release that fixes bugs and regressions discovered after the 1.26.1 release. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.112 2023/11/17 19:08:36 wiz Exp $ d36 8 @ 1.112 log @py-numpy: update to 1.26.1. 1.26.1 Pull requests merged ==================== A total of 20 pull requests were merged for this release. 1.26.0 Pull requests merged ==================== A total of 59 pull requests were merged for this release. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.110 2023/10/28 19:57:11 wiz Exp $ d3 1 a3 1 DISTNAME= numpy-1.26.1 @ 1.111 log @py-numpy: add tool dependency on py-setuptools Not pulled in via cython any longer. @ text @d3 1 a3 1 DISTNAME= numpy-1.25.2 a4 1 PKGREVISION= 1 d13 3 a15 2 TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel d28 2 d54 1 d59 3 d63 1 a63 3 cd ${DESTDIR}${PREFIX}/bin && ${RM} f2py || ${TRUE} cd ${DESTDIR}${PREFIX}/bin && ${RM} f2py3 || ${TRUE} ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/core/include/numpy/npy_common.h.orig d65 2 a66 2 # as of 1.24.2 # 29 failed, 26625 passed, 1481 skipped, 1307 deselected, 35 xfailed, 2 xpassed, 40 warnings a70 2 BUILDLINK_API_DEPENDS.py-cython+= ${PYPKGPREFIX}-cython>=0.29.21 .include "../../devel/py-cython/buildlink3.mk" @ 1.110 log @python/wheel.mk: simplify a lot, and switch to 'installer' for installation This follows the recommended bootstrap method (flit_core, build, installer). However, installer installs different files than pip, so update PLISTs for all packages using wheel.mk and bump their PKGREVISIONs. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.109 2023/08/02 16:17:17 nia Exp $ d14 1 @ 1.109 log @*: Use FORCE_C_STD=c99 for C packages that use for loop initial declarations without setting -std=c99. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.108 2023/07/31 18:36:01 adam Exp $ d5 1 @ 1.108 log @py-numpy: updated to 1.25.2 1.25.2 MAINT: prepare 1.25.x for further development ENH: Improve clang-cl compliance MAINT: Upgrade various build dependencies. BLD: use ``-ftrapping-math`` with Clang on macOS BUG: properly handle negative indexes in ufunc_at fast path BUG: PyObject_IsTrue and PyObject_Not error handling in setflags BUG: histogram small range robust MAINT: Update meson.build files from main branch MAINT: exclude min, max and round from ``np.__all__`` MAINT: Dependabot updates BUG: Fix the signature for np.array_api.take BLD: update OpenBLAS to an intermeidate commit BUG: Fix reference count leak in str(scalar). BUG: fix invalid function pointer conversion error BUG: Factor out slow ``getenv`` call used for memory policy warning CI: correct URL in cirrus.star [skip cirrus] BUG: Fix C types in scalartypes BUG: do not modify the input to ufunc_at BUG: Further fixes to indexing loop and added tests @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.107 2023/07/20 21:07:12 nia Exp $ d19 2 d22 1 a22 1 USE_LANGUAGES= c99 c++ fortran @ 1.107 log @py-numpy: Requires a C++17 compiler. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.106 2023/07/10 13:38:10 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.25.1 d28 1 a28 1 PYTHON_VERSIONS_INCOMPATIBLE= 27 37 38 @ 1.106 log @py-numpy: updated to 1.25.1 1.25.1 MAINT: prepare 1.25.x for further development BLD: Port long double identification to C for meson BUG: Fix reduction ``return NULL`` to be ``goto fail`` BUG: Avoid undefined behavior in array.astype() BUG: Ensure ``__array_ufunc__`` works without any kwargs passed MAINT: Pin urllib3 to avoid anaconda-client bug. TST: Pin pydantic<2 in Pyodide workflow MAINT: Bump pypa/cibuildwheel from 2.13.0 to 2.13.1 MAINT: Bump actions/checkout from 3.5.2 to 3.5.3 BUG: Multiply or Divides using SIMD without a full vector can... MAINT: testing for IS_MUSL closes #24074 BUG: Only replace dtype temporarily if dimensions changed MAINT: Bump actions/setup-node from 3.6.0 to 3.7.0 BUG: Fix private procedures in f2py modules @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.105 2023/07/01 08:38:26 wiz Exp $ d20 3 a22 1 USE_LANGUAGES= c99 c++11 fortran @ 1.105 log @py-numpy: update to 1.25.0. NumPy 1.25.0 is now available. The highlights of the release are: Support for MUSL, there are now MUSL wheels. Support for the Fujitsu C/C++ compiler. Object arrays are now supported in einsum. Support for the inplace matrix multiplication (@@=). The NumPy 1.25.0 release continues the ongoing work to improve the handling and promotion of dtypes, increase the execution speed, and clarify the documentation. There has also been preparatory work for the future NumPy 2.0.0, resulting in a large number of new and expired deprecations. The Python versions supported by this release are 3.9-3.11. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.104 2023/04/28 14:40:00 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.25.0 @ 1.104 log @py-numpy: updated to 1.24.3 NumPy 1.24.3 is a maintenance release that fixes bugs and regressions discovered after the 1.24.2 release. The Python versions supported by this release are 3.8-3.11. BUG: fix for f2py string scalars BUG: datetime64/timedelta64 comparisons return NotImplemented MAINT: Pin matplotlib to version 3.6.3 for refguide checks DOC: Fix matplotlib error in documentation CI: Ensure submodules are initialized in gitpod. TYP: Replace duplicate reduce in ufunc type signature with reduceat TYP: Remove duplicate CLIP/WRAP/RAISE in __init__.pyi. TYP: Mark ``d`` argument to fftfreq and rfftfreq as optional... TYP: Add type annotations for comparison operators to MaskedArray. TYP: Remove some stray type-check-only imports of ``msort`` BUG: Ensure like is only stripped for `like=` dispatched functions BUG: fix loading and storing big arrays on s390x MAINT: Bump larsoner/circleci-artifacts-redirector-action BUG: Ignore invalid and overflow warnings in masked setitem BUG: Fix masked array raveling when `order="A"` or `order="K"` MAINT: Update conftest for newer hypothesis versions BUG: Fix bug in parsing F77 style string arrays. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.103 2023/03/13 21:11:15 wiz Exp $ d3 1 a3 1 DISTNAME= numpy-1.24.3 d26 1 a26 1 PYTHON_VERSIONS_INCOMPATIBLE= 27 37 @ 1.103 log @py-numpy: update to 1.24.2. 1.24.2 NumPy 1.24.2 is a maintenance release that fixes bugs and regressions discovered after the 1.24.1 release. The Python versions supported by this release are 3.8-3.11. 1.24.1 Bugfix release 1.24.0 NumPy 1.24.0 is now available. The highlights of the release are: * New “dtype” and “casting” keywords for stacking functions. * New F2PY features and fixes. * Many new deprecations, check them out. * Many expired deprecations, The NumPy 1.24.0 release continues the ongoing work to improve the handling and promotion of dtypes, increase execution speed, and clarify the documentation. There are a large number of new and expired deprecations due to changes in dtype promotion and cleanups. It is the work of 177 contributors spread over 444 pull requests. The supported Python versions are 3.8-3.11. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.101 2022/11/20 19:03:47 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.24.2 @ 1.102 log @py-numpy: add test status @ text @d3 1 a3 1 DISTNAME= numpy-1.23.5 d13 1 d22 1 a22 1 .include "../../math/py-numpy/Makefile.make_env" a27 2 USE_PKG_RESOURCES= yes a46 7 .include "../../mk/bsd.prefs.mk" # numpy fails using the gold linker with: # fatal error: --sysroot=: must take a non-empty argument # Work around it on DragonFly by specifying the classic gnu linker MAKE_ENV.DragonFly+= LDVER=ld.bfd a49 3 pre-install: ${RM} -f ${WRKSRC}/numpy/core/include/numpy/npy_common.h.orig d53 1 d55 2 a56 2 # as of 1.23.5 # 8 failed, 18561 passed, 782 skipped, 1306 deselected, 41 xfailed, 2 xpassed, 59 warnings d64 1 a64 1 .include "../../lang/python/egg.mk" @ 1.101 log @py-numpy: updated to 1.23.5 1.23.5 TST, MAINT: Replace most setup with setup_method (also teardown) MAINT, CI: Switch to cygwin/cygwin-install-action@@v2 TST: Make test_partial_iteration_cleanup robust but require leak... MAINT: Ensure graceful handling of large header sizes TYP: Spelling alignment for array flag literal BUG: Fix bounds checking for ``random.logseries`` DEV: Update GH actions and Dockerfile for Gitpod CI: Only fetch in actions/checkout BUG: Decrement ref count in gentype_reduce if allocated memory... BUG: Histogramdd breaks on big arrays in Windows @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.100 2022/10/19 17:27:58 adam Exp $ d65 2 @ 1.100 log @py-numpy: updated to 1.23.4 1.23.4 BUG: Add ``__array_api_version__`` to ``numpy.array_api`` namespace MAINT: update sde toolkit to 9.0, fix download link BLD: use macos-11 image on azure, macos-1015 is deprecated MAINT: random: remove ``get_info`` from "extending with Cython"... BUG: Fix complex vector dot with more than NPY_CBLAS_CHUNK elements REV: Loosen ``lookfor``'s import try/except again TYP,ENH: Mark ``numpy.typing`` protocols as runtime checkable TYP,MAINT: Change more overloads to play nice with pyright TST,TYP: Bump mypy to 0.981 DOC: Update delimiter param description. BUG: Memory leaks in numpy.nested_iters REL: Prepare for the NumPy 1.23.4 release. TST: Fix failing aarch64 wheel builds. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.99 2022/09/12 08:05:45 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.23.4 @ 1.99 log @py-numpy: updated to 1.23.3 1.23.3 BLD: Add Python 3.11 wheels to aarch64 build MAINT: Update setup.py for Python 3.11. CI: Test NumPy build against old versions of GCC(6, 7, 8) MAINT: support IBM i system BUG: Fix circleci build BUG: Expose heapsort algorithms in a shared header BUG: Support using libunwind for backtrack MAINT: fix an incorrect pointer type usage in f2py BUG: change overloads to play nice with pyright. TST,BUG: Use fork context to fix MacOS savez test TYP,BUG: Reduce argument validation in C-based ``__class_getitem__`` TST: ensure ``np.equal.reduce`` raises a ``TypeError`` BUG: Fix the implementation of numpy.array_api.vecdot BUG: Better report integer division overflow (backport) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.98 2022/09/07 15:11:56 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.23.3 @ 1.98 log @py-numpy: updated to 1.23.2 NUMPY 1.23.0 RELEASED Jun 22, 2022 – NumPy 1.23.0 is now available. The highlights of the release are: Implementation of loadtxt in C, greatly improving its performance. Exposure of DLPack at the Python level for easy data exchange. Changes to the promotion and comparisons of structured dtypes. Improvements to f2py. The NumPy 1.23.0 release continues the ongoing work to improve the handling and promotion of dtypes, increase the execution speed, clarify the documentation, and expire old deprecations. It is the work of 151 contributors spread over 494 pull requests. The Python versions supported by this release 3.8-3.10. Python 3.11 will be supported when it reaches the rc stage. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.97 2022/06/07 11:23:03 jperkin Exp $ d3 1 a3 1 DISTNAME= numpy-1.23.2 @ 1.97 log @py-numpy: Remove invalid __STDC_VERSION__ on SunOS. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.96 2022/05/25 19:22:20 tnn Exp $ d3 1 a3 1 DISTNAME= numpy-1.22.4 a4 1 PKGREVISION= 2 a6 1 EXTRACT_SUFX= .zip d16 1 d67 1 a67 1 ${RUN} PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} ${PYTHONBIN} -c "import numpy; numpy.test()" @ 1.96 log @py-numpy: just assume the __builtin_prefetch configure test works Also bump PKGREVISION since this is an installed header. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.95 2022/05/25 19:09:25 tnn Exp $ d56 3 @ 1.95 log @py-numpy: fix build on macOS and maybe others @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.94 2022/05/23 17:28:41 ryoon Exp $ d5 1 a5 1 PKGREVISION= 1 @ 1.94 log @py-numpy: Workaround undefined-symbol errors under NetBSD at least py-numpy-1.22.4's symbol check mechanism does not work for NetBSD and the other platforms, because gcc and clang calculate trivial math functions, for example, log1pl() and expm1l(), with immediate arguments, for example 0. So compiling 'log1pl(0)' is always successful even if -lm is not added to the compiler's commandline arguments. Use GNU autotools style check with ugly workaround. I have no idea about WASM case. However current mechanism will not work as expected. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.93 2022/05/22 19:14:00 adam Exp $ d56 3 @ 1.93 log @py-numpy: updated to 1.22.4 1.22.4: TYP, BUG: Fix ``np.lib.stride_tricks`` re-exported under the... TST: Bump mypy from 0.931 to 0.940 MAINT: Explicitly re-export the types in ``numpy._typing`` MAINT: Specify sphinx, numpydoc versions for CI doc builds BUG: Fix typos ENH, BLD: Fix math feature detection for wasm MAINT: Fix failing simd and cygwin tests. MAINT: Fix failing Python 3.8 32-bit Windows test. BUG: add linux guard BUG: Allow legacy dtypes to cast to datetime again BUG: Make mmap handling safer in frombuffer BUG: Stop using PyBytesObject.ob_shash deprecated in Python 3.11. ENH: Introduce numpy.core.setup_common.NPY_CXX_FLAGS BUG: Ensure compile errors are raised correclty BUG: Fix segmentation fault MAINT: Update doc requirements MAINT: Mark ``npy_memchr`` with ``no_sanitize("alignment")`` on clang DOC: Proposal - make the doc landing page cards more similar... MAINT: Update Cython version to 0.29.30. BUG: Fix GCC error during build configuration REL: Prepare for the NumPy 1.22.4 release. MAINT: Skip tests that fail on PyPy. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.92 2022/05/08 10:18:31 nia Exp $ d5 1 @ 1.92 log @py-numpy: Expects compiler to default to C++11. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.91 2022/04/09 12:14:27 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.22.3 @ 1.91 log @py-numpy: updated to 1.22.3 The NumPy 1.22.3 is maintenance release that fixes bugs discovered after the 1.22.2 release. The most noticeable fixes may be those for DLPack. One that may cause some problems is disallowing strings as inputs to logical ufuncs. It is still undecided how strings should be treated in those functions and it was thought best to simply disallow them until a decision was reached. That should not cause problems with older code. The NumPy 1.22.2 is maintenance release that fixes bugs discovered after the 1.22.1 release. Notable fixes are: - Several build related fixes for downstream projects and other platforms. - Various Annotation fixes/additions. - Numpy wheels for Windows will use the 1.41 tool chain, fixing downstream link problems for projects using NumPy provided libraries on Windows. - Deal with CVE-2021-41495 complaint. The NumPy 1.22.1 is maintenance release that fixes bugs discovered after the 1.22.0 release. Notable fixes are: - Fix f2PY docstring problems (SciPy) - Fix reduction type problems (AstroPy) - Fix various typing bugs. NumPy 1.22.0 is a big release featuring the work of 153 contributers spread over 609 pull requests. There have been many improvements, highlights are: * Annotations of the main namespace are essentially complete. Upstream is a moving target, so there will likely be further improvements, but the major work is done. This is probably the most user visible enhancement in this release. * A preliminary version of the proposed Array-API is provided. This is a step in creating a standard collection of functions that can be used across applications such as CuPy and JAX. * NumPy now has a DLPack backend. DLPack provides a common interchange format for array (tensor) data. * New methods for ``quantile``, ``percentile``, and related functions. The new methods provide a complete set of the methods commonly found in the literature. * A new configurable allocator for use by downstream projects. * The universal functions have been refactored to implement most of :ref:`NEP 43 `. This also unlocks the ability to experiment with the future DType API. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.90 2022/01/29 07:46:10 wiz Exp $ d19 1 a19 1 USE_LANGUAGES= c99 c++ fortran @ 1.90 log @py-numpy: do not install f2py3 to avoid conflict with other versions of this package use ALTERNATIVES framework to provide it Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.89 2022/01/05 15:41:14 wiz Exp $ d3 1 a3 1 DISTNAME= numpy-1.21.5 a4 1 PKGREVISION= 4 d25 1 a25 1 PYTHON_VERSIONS_INCOMPATIBLE= 27 @ 1.90.2.1 log @Pullup ticket #6632 - requested by nia math/py-numpy: build fix Revisions pulled up: - math/py-numpy/Makefile 1.92 --- Module Name: pkgsrc Committed By: nia Date: Sun May 8 10:18:31 UTC 2022 Modified Files: pkgsrc/math/py-numpy: Makefile Log Message: py-numpy: Expects compiler to default to C++11. @ text @d1 1 a1 1 # $NetBSD$ d20 1 a20 1 USE_LANGUAGES= c99 c++11 fortran @ 1.89 log @python: egg.mk: add USE_PKG_RESOURCES flag This flag should be set for packages that import pkg_resources and thus need setuptools after the build step. Set this flag for packages that need it and bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.88 2022/01/04 20:54:15 wiz Exp $ d5 1 a5 1 PKGREVISION= 2 d58 1 @ 1.88 log @*: bump PKGREVISION for egg.mk users They now have a tool dependency on py-setuptools instead of a DEPENDS @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.87 2021/12/30 13:05:37 adam Exp $ d5 1 a5 1 PKGREVISION= 1 d28 2 @ 1.87 log @Forget about Python 3.6 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.86 2021/12/20 11:27:57 adam Exp $ d5 1 @ 1.86 log @py-numpy: updated to 1.21.5 1.21.5: BUG: Fix shadowed reference of `dtype` in type stub BUG: Fix headers for universal2 builds BUG: ``VOID_nonzero`` could sometimes mutate alignment flag BUG: Do not use nonzero fastpath on unaligned arrays BUG: Distutils patch to allow for 2 as a minor version (!) BUG, SIMD: Fix 64-bit/8-bit integer division by a scalar BUG, SIMD: Workaround broadcasting SIMD 64-bit integers on MSVC... REL: Prepare for the NumPy 1.21.4 release. TST: Fix a `Arrayterator` typing test failure @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.85 2021/11/06 11:52:37 adam Exp $ d25 1 a25 1 PYTHON_VERSIONS_INCOMPATIBLE= 27 36 @ 1.85 log @py-numpy: updated to 1.21.4 The NumPy 1.21.4 is a maintenance release that fixes a few bugs discovered after 1.21.3. The most important fix here is a fix for the NumPy header files to make them work for both x86_64 and M1 hardware when included in the Mac universal2 wheels. Previously, the header files only worked for M1 and this caused problems for folks building x86_64 extensions. This problem was not seen before Python 3.10 because there were thin wheels for x86_64 that had precedence. This release also provides thin x86_64 Mac wheels for Python 3.10. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.84 2021/11/02 18:48:28 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.21.4 d19 1 a19 1 USE_LANGUAGES= c99 fortran @ 1.84 log @py-numpy: updated to 1.21.3 1.21.0 New functions Add PCG64DXSM BitGenerator Deprecations The .dtype attribute must return a dtype Inexact matches for numpy.convolve and numpy.correlate are deprecated np.typeDict has been formally deprecated Exceptions will be raised during array-like creation Four ndarray.ctypes methods have been deprecated Expired deprecations Remove deprecated PolyBase and unused PolyError and PolyDomainError Compatibility notes Error type changes in universal functions __array_ufunc__ argument validation __array_ufunc__ and additional positional arguments Validate input values in Generator.uniform /usr/include removed from default include paths Changes to comparisons with dtype=... Changes to dtype and signature arguments in ufuncs Ufunc signature=... and dtype= generalization and casting Distutils forces strict floating point model on clang C API changes Use of ufunc->type_resolver and “type tuple” New Features Added a mypy plugin for handling platform-specific numpy.number precisions Let the mypy plugin manage extended-precision numpy.number subclasses New min_digits argument for printing float values f2py now recognizes Fortran abstract interface blocks BLAS and LAPACK configuration via environment variables A runtime-subcriptable alias has been added for ndarray Improvements Arbitrary period option for numpy.unwrap np.unique now returns single NaN Generator.rayleigh and Generator.geometric performance improved Placeholder annotations have been improved Performance improvements Improved performance in integer division of NumPy arrays Improve performance of np.save and np.load for small arrays Changes numpy.piecewise output class now matches the input class Enable Accelerate Framework @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.83 2021/06/29 08:41:59 nia Exp $ d3 1 a3 1 DISTNAME= numpy-1.21.3 @ 1.83 log @py-numpy: "Python version >= 3.7 required." @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.82 2021/06/15 04:41:53 thor Exp $ d3 1 a3 1 DISTNAME= numpy-1.20.3 a4 1 PKGREVISION= 1 d10 1 a10 1 HOMEPAGE= http://www.numpy.org/ @ 1.82 log @mk/blas.bl3, Netlib and OpenBLAS packages, NumPy: C fixup and 64 bits This delivers 64 bit index BLAS libraries alongside 32 bit ones. This is often called ILP64 in the BLAS world, as opposed to LP64 where integers are 32 bit due to the Fortran default integer type, not to be confused with the basic system ABI used by C. For really large vectors on modern machines, you want an 'ILP64' BLAS and layers on top of it. In preparation of better support for vendor BLAS libraries, I had to realize that you better use the C interfaces supplied by them, not the netlib one strapped on. A simple reason of practicability: The vendor blas libraries, just like openblas, like to ship all symbols in one library, so you get them whether you want it or not. Also implementations may skip Fortran and implement the underlying functionality directly in C anyway, so one might skip a layer of indirection. Future will tell if other layers will follow. We still have the framework of individual layers from Netlib to combine with certain implementations that miss them (Accelerate framework comes to mind, which needs further work). The framework of netlib reference packages for the separate libraries is instructive and helps keeping things small when you not need all of them. The installation location of the headers is now in a subdirectory to be able to have 32 and 64 bit variants independently. The 32 bit ones are linked to ${PREFIX}/include to keep the old picture. We could be brave and remove those, but there is some value in a build just trying -lcblas and inclusion of to be happy. There is one blas.buildlink3.mk that is supposed to be used only once and so avoids a combination of conflicting libraries (as the 64 bit index symbols have the same names as the 32 bit ones). Basic usage for getting LAPACK+BLAS is still the same as before. You get CBLAS and LAPACKE by setting BLAS_C_INTERFACE=yes in the package. The 64 bit indices are selected via BLAS_INDEX64=yes. Due to the special nature of the Accelerate framework, a package has to explicitly indicate support for it and it will also not appear on the list of implementations by default. The reason is that it does provide mainly CBLAS and CLAPACK (another version of C interface to LAPACK, f2c-based) and BLAS/LAPACK with f2c/g77 calling conventions. A default build with gfortran would not like that This commit also fixes up math/py-numpy and math/py-numpy16 to follow the new scheme, as that are the only packages directly affected by the change in CBLAS providership. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.81 2021/05/12 08:12:10 adam Exp $ d26 1 a26 1 PYTHON_VERSIONS_INCOMPATIBLE= 27 # 36 @ 1.81 log @py-numpy: updated to 1.20.3 1.20.3: BUG: Correct ``datetime64`` missing type overload for ``datetime.date`` MAINT: Remove ``__all__`` in favor of explicit re-exports BLD: Strip extra newline when dumping gfortran version on MacOS BUG: fix segfault in object/longdouble operations MAINT: Use towncrier build explicitly MAINT: Relax certain integer-type constraints MAINT: Remove unsafe unions and ABCs from return-annotations MAINT: Allow more recursion depth for scalar tests. BUG: Initialize the full nditer buffer in case of error BLD: remove unnecessary flag ``-faltivec`` on macOS MAINT, CI: treats _SIMD module build warnings as errors through... BUG: for MINGW, threads.h existence test requires GLIBC > 2.12 BUG: Make changelog recognize gh- as a PR number prefix. REL, DOC: Prepare for the NumPy 1.20.3 release. BUG: Fix failing mypy test in 1.20.x. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.80 2021/05/05 06:27:45 wiz Exp $ d5 1 d43 4 d65 1 a65 2 # BLAS with CBLAS is needed for proper acceleration. .include "../../math/cblas/buildlink3.mk" @ 1.80 log @py-numpy: allow python 3.6 again Better have this listed as breakage for py36-numpy than not having the bulk builds start up because the packages using this still want to build it for python 3.6 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.79 2021/05/03 17:15:22 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.20.2 @ 1.79 log @py-numpy: updated to 1.20.2 1.20.2: * Update f2py from master. * ``diagflat`` could overflow on windows or 32-bit platforms * Fix refcount leak in f2py ``complex_double_from_pyobj``. * Fix tiny memory leaks when ``like=`` overrides are used * Remove temporary change of descr/flags in VOID functions * Segfault in nditer buffer dealloc for Object arrays * Remove suspicious type casting * remove nonsensical comparison of pointer < 0 * verify pointer against NULL before using it * check if PyArray_malloc succeeded * incorrect error fallthrough in nditer * Backport CI fixes from main. * Add annotations for ``dtype.__getitem__``, ``__mul__`` and... * NameError in numpy.distutils.fcompiler.compaq * Fixed ``where`` keyword for ``np.mean`` & ``np.var`` methods * Update apt package list before Python install * Ensure that re-exported sub-modules are properly annotated * Fix ma coercion list-of-ma-arrays if they do not cast to... * Fix small valgrind-found issues * Fix small issues found with pytest-leaks 1.20.1: * Add missing placeholder annotations * Fix typo in ``numpy.__init__.py`` * don't mutate list of fake libraries while iterating over... * gracefully shuffle memoryviews * Use C linkage for random distributions * fix when GitHub Actions builds trigger, and allow ci skips * Allow unmodified use of isclose, allclose, etc. with timedelta * Allow pickling all relevant DType types/classes * Fix missing signed_char dependency. * Change license date 2020 -> 2021 * CircleCI seems to occasionally time out, increase the limit * Fix f2py bugs when wrapping F90 subroutines. * crackfortran regex simplify * threads.h existence test requires GLIBC > 2.12. * Prepare for the NumPy 1.20.1 release. 1.20.0: * enable multi-platform SIMD compiler optimizations * NEP 36 (fair play) * Deprecate aliases of builtin types in python 3.7+ * `np.resize` negative shape and subclasses edge case fixes * Add the method `permuted` to Generator. * Fix issues with non-reduce broadcasting axes * Ensure PyArray_FromScalar always returns the requested dtype * Technical decisions for new DTypes * Create Preliminary DTypeMeta class and np.dtype subclasses * Avoid exception in NpzFile destructor if constructor raises... * Improved `__str__` for polynomials * Remove Accelerate support * [DOC] Added tutorial about the numpy.ma module. * Add where argument to np.mean * Deprecate passing shape=None to mean shape=() * Ensure indexing errors will be raised even on empty results * improve printing of arrays with multi-line reprs * Correct documentation of ``__array__`` when used as output... * Implement concatenate dtype and casting keyword arguments * Deprecate `numpy.dual`. * Potential fix for divmod(1.0, 0.0) to raise divbyzero and... * Increase guidance and detail of np.polynomial docstring * Add transition note to all lib/poly functions * Rewrite of array-coercion to support new dtypes * Add ``full_output`` argument to ``f2py.compile``. * Deprecate ufunc.outer with matrix inputs * Unify cached (C-level static) imports * Allow attach docs twice but error if wrong * Fix default fallback in genfromtxt * ENH:Umath Replace raw SIMD of unary float point(32-64) with NPYV... * added edge keyword argument to digitize * Update the f2py section of the "Using Python as Glue" page. * Improve `rec.array` function documentation * include dt64/td64 isinstance checks in ``__init__.pxd`` * Clarifications for np.std * Order percentile monotonically * cleanups to quantile * Update master after 1.19.x branch. * Ensure out argument is returned by identity for 0d arrays * Clarifications for ``np.var``. * Add a note about performance of isclose compared to math.isclose * Clean up the implementation of quantile * Bump hypothesis from 5.12.0 to 5.14.0 * Improve "tobytes" docstring. * Fix tools/download-wheels.py. * Require Python >= 3.6 in setup.py * Fix malformed docstrings in ma. * Optimize Cpu feature detect in X86, fix for GCC on macOS * np.info does not show keyword-only arguments * Fix bad reference in ``numpy.ma`` * Fix detecting and testing armhf features * Fix packbits documentation rendering, * Fix troubleshooting code snippet when env vars are empty * relpath fails for different drives on windows * Fix ``np.ma.core.doc_note`` * Bump numpydoc version * Stop Using PyEval_Call* and simplify some uses * Improve the ARM cpu feature detection by parsing /proc/cpuinfo * Reconstruct Testing Guideline. * Cleanup 'tools/download-wheels.py' * link np.interp to SciPy's interpolation functions (closes... * Fix spelling typo - homogenous to homogeneous. * Use AVX-512 for np.isnan, np.infinite, np.isinf and np.signbit * Fix refcounting in add_newdoc * Create a link for the circleCI artifact * Fix dtype leak in `PyArray_FromAny` error path * Indentation for docstrings * Fix small leaks in error path and ``empty_like`` with shape * Streamline download-wheels. * Fix an obvious mistake in a message printed in doc/Makefile. * Bump cython from 0.29.17 to 0.29.19 * Bump hypothesis from 5.14.0 to 5.15.1 * Bump pytest-cov from 2.8.1 to 2.9.0 * Use AVX-512 for np.frexp and np.ldexp * add index for user docs. * ARM Neon implementation with intrinsic for np.argmax. * Tighten howto-docs guide * Make ctypes optional on Windows * Hardcode buffer handling for simple scalars * Stop uploading wheels to Rackspace. * Use a raw string for the fromstring docstring. * Validate and disable CPU features in runtime * Implement the NumPy C SIMD vectorization interface * Update make dist html target. * Update sphinx conf to use xelatex. * turn on codecov patch diffs * endpoints of array returned by geomspace() should match... * support python 3.10 * Chain some exceptions. * Improve intersect1d docstring * Update assert_warns parameter list * Simplify assert_warns in test_io.py * make NEP 18 status Final * Add style guide to howto_document * NEP for C style guide * Fix description of dtype default in linspace * Add extern to PyArrayDTypeMeta_Type declaration * Add a reference into NEP 29, * Catch remaining cases of Py_SIZE and Py_TYPE as lvalues * Fix deprecated warn for Intel/Apple/Clang Compiler * make clearer that sinc is normalized by a factor pi * update roadmap * fixes einsum output order with optimization * add a "make show" command to doc/Makefile * Add a NEP link to all neps. * extend error message when Accelerate is detected * Improve assert_warns docstring with example * Bump hypothesis from 5.15.1 to 5.16.0 * Fix development_workflow links * fix GCC 10 major version comparison * install mingw32 v7.3.0 for win32 * Fixes for 18 broken links * use zip instead of range in piecewise * add `norm=forward,backward` to numpy.fft functions * Optimize the performace of np.packbits in ARM-based machine. * Fix result when a gufunc output broadcasts the inputs. * Point Contributing page to new NEP 45 * make Py_SET_SIZE and Py_SET_TYPE macros a bit safer * Error when ``size`` is smaller than broadcast input... * Correct MV Normal sig * raise IEEE exception on AIX * only single-polynomial fitting in np.polynomial.Polynomial.fit() * Minor rounding correction in Generator.binomial * trivial doc style fix in NEP 45. * add type stubs from numpy-stubs * make callbacks threadsafe * replace \t by whitespace for readability * MAINT:ARMHF Fix detecting feature groups NEON_HALF and NEON_VFPV4 * Improve buffer speed * move thread-local declaration definition to common... * Fix cython warning in random/_common.pyx. * Bump pytest from 5.4.2 to 5.4.3 * Remove non-threadsafe sigint handling from fft calculation * SSE2 intrinsic implementation for float64 input of np.enisum * Ensure SeedSequence 0-padding does not collide with spawn... * Remove deprecated numeric types and deprecate remaining * drop win32 3.7, 3.6 builds * simplifying annotations for np.core.from_numeric * make typing module available at runtime * Throw TypeError on operator concat on Numpy Arrays * Add new tests for array coercion * fix sin/cos bug when input is strided array * fix name of first parameter to dtype constructor in type... * Added an example for np.transpose(4d_array) * changed np.generic arguments to positional-only * Clarify dtype default for logspace and geomspace * Disallow complex args in arange * Raise TypeError for float->timedelta promotion * Add ``__f2py_numpy_version__`` attribute to Fortran modules. * Fix reference count leak in mapping.c * Move and improve ``test_ignore_nan_ulperror``. * make addition of types a "new feature" in release notes * Avx512 intrinsics implementation for float64 input np.log * Bump pytest-cov from 2.9.0 to 2.10.0 * Bump hypothesis from 5.16.0 to 5.16.1 * bump mypy version to 0.780 * Openblas 0.3.10 * add annotation for abs * check if std=c99 is really required * disable Shippable cache * Expand array-creation benchmarks * Implemented two dtype-related TODO's * Initialize stop-reading in array_from_text * Updated documentation for numpy.squeeze * add tool to find functions missing types * ENH,BUG:distutils Remove the origins from the implied features * Some code clean up in loadtxt * remove obsolete goal_time param * Fix uint->timedelta promotion to raise TypeError * Replace `PyUString_GET_SIZE` with `PyUnicode_GetLength`. * Fix outdated docs link * add a static typing test for memoryviews as ArrayLikes * Added annotations to 8 functions from np.core.fromnumeric * Update master after 1.19.0 release. * Allow genfromtxt to unpack structured arrays * Prefer generator expressions over list comprehensions... * cross-reference numpy.dot and numpy.linalg.multi_dot * Bump hypothesis from 5.16.1 to 5.16.3 * Bump mypy from 0.780 to 0.781 * Add lib.format.open_memmap to autosummary. * Fix bug in AVX complex absolute while processing array of... * remove blacklist/whitelist terms * Add extra debugging information to CPU features detection * Add support for file like objects to np.core.records.fromfile * updated gcc minimum recommend version to build from source * Allow `None` to be passed to certain `generic` subclasses * fixed docstring for descr_to_dtype * Remove "matrix" from `triu` docstring. * add py.typed sentinel to package manifest * Fixup quantile tests to not use `np.float` * Add CPU entry for Emscripten / WebAssembly * Disable Python 3.9-dev testing. * Add instruction about stable symlink * Disable use_hugepages in case of ValueError * Add dep directive to alen docstring. * Add RPATH support for AIX * fix typo * Fix PyArray_SearchSorted signature. * Add annotations to the last 8 functions in numpy.core.fromnumeric * Use f90 compiler specified in f2py command line args for... * reword random c-api introduction, cython is documented in... * Tweak a sentence about broadcasting. * Prepend `ma.` to references in ``numpy.ma`` * Remove redundant word * add unique() to See Also of repeat() * add example to unique() and make connection to repeat() * Chaining exceptions in numpy/core/_internal.py * add manylinux1 OpenBlAS 0.3.10 hashes and test for them * Add Matti Picus to steering council page * make dtype generic over scalar type * Added a section in the 'Iterating over arrays' doc page... * Tidy exception chaining in _datasource.py * Fixes for deprecated functions in scalartypes.c.src * Bump mypy from 0.781 to 0.782 * Bump hypothesis from 5.16.3 to 5.19.0 * Update NumPy logos * Remove unneeded call to PyUnicode_READY * Fix deprecated functions in scalarapi.c * switch to logo with text * Bring the NumPy C SIMD vectorization interface "NPYV"... * Add basic benchmarks for scalar indexing and assignment * fix decode error when building and get rid of warn * Minor RST formatting. * update cython to 0.29.21 * Upgrade to Python 3.8 for DEBUG testing. * Fix RST/numpydoc standard. * Move typing tests * Explicitly disallow object user dtypes * add example to corrcoef function * adding docs on passing dimensions as tuple to ndindex * Remove overzealous automatic RST link * Add explanation of 'K' and 'A' layout options to 'asarray*'... * Add a reST label to /user/building.rst * fix mgrid output for lower precision float inputs * temporarily disable OpenBLAS hash checks * Do not inherit flags from the structured part of a union... * replace dec.slow with pytest.mark.slow * Make void scalar to array creation copy when dtype is... * fix inconsistent parameter name in np.ndindex docstring * setuptools 49.2.0 emits a warning, avoid it * add examples to random number generator pages * describe ufunc copy behavior when input and output overlap * Fix ``runtest.py`` warning. * Add pandas to doc_requirements.txt * fix sphinx deprecation * Avoid using uninitialized bytes in getlimits.py. * Explaining why datetime64 doesn't work for allclose + isclose * improve SIMD features tables * update openblas hashes, re-enable check * Remove code that will never run * Bump hypothesis from 5.19.0 to 5.19.1 * linspace should round towards -infinity * Disable shippable until we can fix it. * Remove Duplicated Code (function extract rmap) * Remove Duplicated Code * Change for loop (range -> for each) * Deprecate NumPy object scalars * clarify whats required for new features * fix new compiler warnings on clang * fix the search dir of dispatch-able sources * Remove deprecated python function 'file()' * Validate output size in bin- and multinomial * Pin setuptools * Update compiler check for AVX-512F * fix the test for ``np.ones`` * edit to the documentation of lib/polynomial.py/polyfit * Configure hypothesis in ``np.test()`` for determinism,... * Remove unused pip install * Fix bad MPL kwarg in docs * Fix types including curly braces * Remove the links for ``True`` and ``False`` * Integrate the new CPU dispatcher with umath generator * Fix wrong markups in `arrays.dtypes` * Remove links for C codes * Fix the declarations of C fuctions * also use Py_SET_REFCNT instead of Py_REFCNT * Chaining exceptions in numpy/__init__.py * update val to be scalar or array like optional * Bump hypothesis from 5.19.1 to 5.20.2 * Speed up trim_zeros * Fix string/bytes to complex assignment * Add correctness vs strictness consideration for np.dtype * Add ufunc docstring to generated docs. * Update master after 1.19.1 release. * Revert "Merge pull request 16248 from alexrockhill/edge" * Fix memory leak of buffer-info cache due to relaxed strides * Store exported buffer info on the array * update OpenBLAS build * Allow array-like types to be coerced as object array elements * Deprecate size-one ragged array coercion * Change the name of the folder "icons" to "logo". * enable colors for `runtests.py --ipython` * Clarify input to irfft/irfft2/irfftn * Bump hypothesis from 5.20.2 to 5.23.2 * update numpy/lib/arraypad.py with appropriate chain exception * Use arm64 instead of aarch64 on travisCI. * Chain exception in ``distutils/fcompiler/environment.py``. * Added the `order` parameter to `np.array()` * Add Neon SIMD implementations for add, sub, mul, and div * Fixed typo in lib/recfunctions.py * Add pypy win32 CI testing. * Increase the use of `Literal` types * Add NumPy declarations to be used by Cython 3.0+ * Add the new NumPy logo to Sphinx pages * Bump hypothesis from 5.23.2 to 5.23.9 * Bump pytest from 5.4.3 to 6.0.1 * pin setuptools < 49.2.0 * Revise glossary page * clip() allows arguments. * Updated NEP-35 with keyword-only instruction * Simplify scalar power * Improve error handling in umathmodule setup * Disclaimer for FFT library * Add error return to all casting functionality and NpyIter * fix a compile and a test warning * Clarify that `np.char` comparison functions always return... * Use a less ambiguous example for array_split * Bump hypothesis from 5.23.9 to 5.23.12 * core._internal style fixups * Remove _EXTRAFLAGS variable * fix typo in polydiv that prevented promotion to poly1d * Revert boolean casting back to elementwise comparisons... * Raise error on complex input to i0 * Remove obsolete conversion to set * Remove the deprecated financial functions. * Remove uses of PyString_FromString. * use the pydata_sphinx_theme * Fixes duplication of toctree content * Bump pytest-cov from 2.10.0 to 2.10.1 * Bump hypothesis from 5.23.12 to 5.26.0 * Adjust NEP-35 to make it more user-accessible * Add placeholder stubs for all sub-modules * Split einsum into multiple files * Handle errors from the PyCapsule API * Fix spacing in vectorize doc * Remove `np.ctypeslib.ctypes_load_library` * make spacing consistent in NEP 41 bullet points * fix ilp64 blas dot/vdot/... for strides > int32 max * allow running mypy through runtests.py * Remove duplicated symbols from link step * Check for reduce intrinsics and AVX512BW mask operations * Chain some exceptions in arraysetops. * Chain ValueError in ma.timer_comparison * Rewrite promotion using common DType and common instance * Make arrayprint str and repr the ndarray defaults. * Fix a few typos. * Change handling of the expired financial functions. * Add annotations to 3 functions in `np.core.function_base` * Replace uses of PyString_AsString. * ``Replace PyUString_*`` by ``PyUnicode_*`` equivalents. * Replace PyInt macros with their PyLong replacement * Add support for the abstract scalars to cython code * Fix incorrect cython definition of npy_cfloat * Clean up some Npy_ vs Py_ macro usage * Remove references to PyCObject * Update numpy4matlab * Clean up some more bytes vs unicode handling * Remove Void special case for "safe casting" * Remove redundant headers * Remove NPY_COPY_PYOBJECT_PTR * Merge the npysort library into multiarray * Add tests mapping out the rules for metadata in promotion * revert trim_zeros changes from gh-16911 * Make `np.complexfloating` generic w.r.t. `np.floating` * remove calls to PyUnicode_AsASCIIString,... * Added missing methods to `np.flatiter` * Correct error in description of ndarray.base * Document `dtype.metadata` * Use utf8 strings in more of datetime * Add placeholder stubs for `ndarray` and `generic` * Bump hypothesis from 5.26.0 to 5.30.0 * Remove some callers of functions in numpy.compat * Make the window functions exactly symmetric * Improve error handling in npy_cpu_init * Fix the documented signatures of four `ufunc` methods * Make the `NPY_CPU_DISPATCH_CALL` macros expressions not... * Fixed headings for tutorials so they appear at new theme... * Canonical_urls * Fix various issues with the `np.generic` annotations * enabled negation of library choices in NPY_*_ORDER * comment out metadata added via javascript * move informational files from numpy.doc.*.py to their... * use sysconfig not distutils.sysconfig where possible * Fix dimension discovery of within array ragged cases * Added templates for different types of issues. * Deprecated ndindex.ndincr * Remove old PY_VERSION_HEX and sys.version_info code * Avoid using ``np.random`` in typing tests. * Fix link quick-start in old random API functions * ``__array_interface__`` data address cannot be bytes * Run slow CI jobs earlier so builds finishes sooner * Add tool to help speed up Travis CI * Fix docstring cross-referencing * Added a PR "Reviewer guidelines" document. * work around a bug in the new theme * add fused multiply subtract/add intrinics for all supported... * Bump hypothesis from 5.30.0 to 5.33.0 * Bump pydata-sphinx-theme from 0.3.2 to 0.4.0 * add new glossary terms * remove some glosssary terms * Fix the path to `mypy.ini` in `runtests.py` * sysconfig attributes/distutils issue * Annotate the arithmetic operations of `ndarray` and `generic` * Merge together index page content into a single file * Fix a typo in shape_base. * Pass optimizations arguments to asv build * Change the financial name access warning to DeprecationWarning * Update master after 1.19.2 release. * Simplify ufunc pickling * Cleanup some pystring macros * Replace remaining PyString macros. * Replace PyUString_Check by PyUnicode_Check. * fix pickling user-scalars by allowing non-format buffer... * Replace some ``pyint_*`` macros defined in ``npy_3kcompat``. * set upper versions for build dependencies * (dtype-transfer) make copyswapn and legacy cast wrapper... * Replace PyBaseString_Check by PyUnicode_Check * Replace a couple of missed npy_3kcompat macros * pin pygments to 2.6.1, 2.7.0 breaks custom NumPyC lexer * Bump hypothesis from 5.33.0 to 5.35.1 * Bump pytest from 6.0.1 to 6.0.2 * Move the `fromnumeric` annotations to their own stub file * Syntax-highlight .src files on github * Mark vendored/generated files in .gitattributes * Cleanup f2py/cfuncs.py * Set deprecated fields to null in PyArray_InitArrFuncs * allow registration of hard-coded structured dtypes * Add annotations for five array construction functions * Fix incorrect `.. deprecated::` syntax that led to this... * improve `issubdtype` and scalar type docs * Remove the tables of scalar types, and use `..autoclass`... * update lexer highlighting and make numpydocs a regular... * Chaining exceptions in npyio.py * Regenerate table in NEP 29 (add numpy 1.18 and 1.19 to list) * Fix syntax errors in docstrings for versionchanged, versionadded * Add partial/non-contig load and store intrinsics for 32/64-bit * Support for the NVIDIA HPC SDK nvfortran compiler * Fix a macOS build failure when `NPY_BLAS_ORDER=""` * Add PR prefix labeler and numpy prefix mapping * Guide to writing how-tos * How-to guide for I/O * clarify residuals return param * Add Npy__PyLong_AsInt function. * Bump hypothesis from 5.35.1 to 5.35.3 * Finish replacing PyInt_Check * Remove an obsolete paragraph. * Edit nep-0042 for more clarity * Add annotations for remaining `ndarray` / `generic` non-magic... * Fixes module data docstrings. * Fix default_rng docstring * ensure _UFuncNoLoopError can be pickled * Minor grammatical correction in quickstart doc. * NumPy restyling for pydata theme * Fix docstring for np.matmul * Bump hypothesis from 5.35.3 to 5.36.1 * Remove old debug print statement. * Replace "About NumPy" with "Document conventions" * Update info on doc style rules * Fix default void, datetime, and timedelta in array coercion * Replace append_metastr_to_string function. * Fixed ARGOUTVIEWM memory deallocation. * rm incorrect alias from recarray user article. * Rewrite can-cast logic in terms of NEP 42 * Add arraysetops to an autosummary * Replace PyUString_ConcatAndDel in nditer_constr.c. * Replace PyUString_ConcatAndDel in mapping.c. * Replace the module-level `__getattr__` with explicit type... * in PR template, set expectations for PR review timeline * Cleanup remaining PyUString_ConcatAndDel use. * Special case how numpy scalars are coerced to signed integer * Mark the typing tests as slow * Fix a parameter type in the `putmask` docs * adding operational form documentation for array ops * Deprecate coercion to subarray dtypes * Fix memory leak in array-coercion error paths * chains nested try-except in numpy/ma/core.py * Remove bogus reference to _a_ * Fix formatting issues in description of .c.src files * nep-0029 typo correction * Move aliases for common scalar unions to `numpy.typing` * Fix memoryleaks related to NEP 37 function overrides * Fix the links for ``Ellipsis`` * add references to einops and opt_einsum * Disable 32 bit PyPy CI testing on Windows. * Security warning for issues template * Fix "Feature request" spelling in issue templates * Chaining exception in numpy\numpy\ma\mrecords.py * Cleaner template for PRs * fix exception chaining in format.py * Warn on unsupported Python 3.10+ * Typed` to the PyPi classifier * Fix the references for macros * update NEP 42 with discussion of type hinting applications * Remove CoC pages from Sphinx * Chain exceptions in "_polybase.py" * Bump hypothesis from 5.36.1 to 5.37.0 * add dtype option to numpy.lib.function_base.cov and corrcoef * Fixes incorrect error message in numpy.ediff1d * update code of conduct URL * Add some entries for C types and macros * Add annotations for bitwise operations * add some missing scalar aliases * Fix doctest for full_like * remove os.fspath and os.PathLike backports * Move the `np.core.numeric` annotations to their own stub... * type np.unicode_ as np.str_ * Fix the entries for members of structures * Fix the references for `random.*` * circleCI- merge before build, add -n to sphinx * Remove duplicate placeholder annotations * Use consistent lowercase on docs landing page * fix incompatible type comparison in numpy.lib.utils.info * Fix failures in master related to userdtype registeration * remove `sys` from the type stubs * Fix empty 'C style guide' page * Rename 'Quickstart tutorial' * Added the Final feature for all constants * Fewer blank lines in PR template * Display real license on license page * Add docstrings for some scalar types * Update top links in landing page * Make merge ref grabbing conditional on the PR being active * Fix Bool types in C functions * Fix some links and typos * Cleanup compatibility code for pathlib * Fix a typo * add function to get broadcast shape from a given set of... * Fixed crash on self-referential dtypes * Bump hypothesis from 5.37.0 to 5.37.1 * Bump pydata-sphinx-theme from 0.4.0 to 0.4.1 * Bump mypy from 0.782 to 0.790 * Make `np.number` generic with respect to its precision * fix conditional for PR merge command * explicit disabling `CCompilerOpt` in F2PY * Cygwin Workaround for 14787 on affected platforms * Fix the entries of C functions * Fix wrong blockquotes * Add NEP 43 links to NEP 42 * Remove directives for some constants * Update the annotations in `np.core.numeric` * Add the entry for ``NPY_FEATURE_VERSION`` * Fix typos * Add annotations for three new constants * Fix Boolean array indexing typo * Respect dtype of all-zero argument to poly1d * include additional feedback * Cleanup swig for Python 3. * Move the `np.core.numerictypes` annotations to their own... * Bump hypothesis from 5.37.1 to 5.37.3 * Add annotations for `np.core._type_aliases` * Typo in lexsort docstring * Coercion/cast of array to a subarray dtype will be fixed * Clean up the errors of the typing tests * Fixed file handle leak in array_tofile. * Fix a broken `np.core.numeric` test * Mark dead code as intentional for clang. * removed old references to submodule licenses * Fix typos (general documentation) * Fully qualify license trove classifier * mac dylib treated as part of extra objects by f2py * Add annotations for 9 `ndarray`/`generic` magic methods * Fix the document for arrays interface * Conversion of some strings to f-strings * Fix some references * Valid docstring for config_py function show() * Conversion of some strings to fstrings, part II * Conversion of some strings to fstrings, part III * Tidy up references to str_ / bytes_ * Conversion of some strings to fstrings, part iv * Fix the references for ``__array_*__`` * Add entries for macros * Add ``identity_value`` to ``PyUFuncObject`` * Replace ``PyCObject`` with ``PyCapsule`` * Don't use Python highlighting for non-python code * Fix some references * Bump hypothesis from 5.37.3 to 5.38.0 * update to OpenBLAS v0.3.12 * Fix reference to atleast_1d * Add annotations for `np.core._ufunc_config` * Add annotations for `np.core.shape_base` * fix np.timedelta64('nat').__format__ throwing an exception * f2py incorrectly translates dimension declarations. * Fix installing Numpy on z/OS * Ensure inner loop signature is complete everywhere * simplify source path names in compilation test * Add a doctest for ``getlincoef`` * Update master after 1.19.3 release. * Make test suite work in FIPS (140-2) Mode * Add a docstring for getarrlen * Update README badge for travis-ci.com * Refine a number of ``np.generic`` annotations * Update release documentation and software * Add sum intrinsics for float/double. * (nditer_impl.h) Use ``intp`` instead of ``char *`` for offset... * Fix small bug in ``make_lite.py``. * Modify Templates * Bump hypothesis from 5.38.0 to 5.41.0 * Bump pytz from 2020.1 to 2020.4 * use a more standard workflow for PyPy * Update master after 1.19.4 release. * Rename ``DtypeLike`` to ``DTypeLike`` * Fix small typos. * Fixed an issue where ``.pyi`` files were ignored by numpy... * Fix Doc Typos & Added Example * Improve the einsum bench by adding new bench cases and variable... * Revert gh-17654 - f2py incorrectly translates dimension... * Add more files to ``.gitgnore`` * Do not import sliding_window_view to main namespace * Do not override ``sliding_window_view`` module to ``numpy`` * Add NEP-35 instructions on reading like= downstream * Use importlib to find numpy root directory in distutils * Remove unused ``**options`` from MaskedArray ``__new__``... * Remove Python 3.6 CI testing. * move linux jobs to github actions * Bump hypothesis from 5.41.0 to 5.41.2 * Fix cblas detection on windows * add pypy3.7 * compare platform.architecture() correctly * Add "performance" category to the release notes * Fix segfault due to out of bound pointer in floatstatus... * Fix buffer export dtype references * Fix memory leaks found using valgrind * Lazy load f2py test utilities * use BUFFERSIZE=20 in OpenBLAS * fix reuses the previous values during the fallback... * update link to website in FUNDING.yml * Add BLD and STY to labeler prefixes. * Simplify Hypothesis configuration * Make like= argument added in NEP-35 strict * Fix up links, code blocks of release note fragments * Minor touchups in npyio * Update mailmap. * Set the ufunc and ndarray ops return type to ``Any`` * Update linalg.py * Fix empty_like docstring * Add missing release fragments to ``upcoming_changes``. * Fix incorrectly passed size in masked processing * Bump hypothesis from 5.41.2 to 5.41.3 * Add back durations flag for DEBUG builds. * Fix subarray dtype used with too large count in fromfile * Fix pickling of scalars with NPY_LISTPICKLE * Update the `numpy.typing` documentation * Fixing boilerplate code example * Add ``__all__`` to `numpy.typing` * Add release note for gh-16161. * Fix incorrect C function prototypes/declarations. * Prepare for the NumPy 1.20.x branch. * use python-version not PYTHON_VERSION * Fix buffer readflag errors and small leaks * Prepare for 1.20.0 release * Remove remaining uses of Python 3.6. * use latest pypy37 not pypy36 * clean up a spurious warning in numpy/typing/setup.py * Speed up default ``where`` in the reduce-like method * remove stray '+' from f-string upgrade * add support for fujitsu compiler to numpy. * 'bool' object has no attribute 'ndim' * Update release notes to mention ``type(dtype) is not np.dtype`` * Replace f-string in setup.py * Ignore fewer errors during array-coercion * Fix a MacOS build failure * Fix crosstalk issues with polynomial str tests. * Ensure tests are not sensitive to execution order * update to OpenBLAS 0.3.13 * Futurewarn on requiring __len__ on array-likes * make a variable volatile to work around clang compiler bug * add back sdist test run * Fix concatenation when the output is "S" or "U" * Fix detecting aarch64 on macOS * Prepare for 1.20.0rc2 release. * Generate the main dispatcher config header into the... * Fix _simd module build for 64bit ARM/NEON clang * Update 1.20.x after 1.19.5 release. * Fix promotion of half and string * improve avx512 mask logical operations * Promotion between strings and objects was assymetric * Use explicit reexports for numpy.typing objects * Keep ignoring most errors during array-protocol lookup * warn on unrecognized objects, fix empty... * update OpenBLAS to af2b0d02 * Clarify the type alias deprecation message * Ensure too many advanced indices raises an exception * add an 'apt update' * Prepare for the NumPy 1.20.0 release. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.78 2021/04/20 20:53:48 thor Exp $ d25 1 a25 1 PYTHON_VERSIONS_INCOMPATIBLE= 27 36 @ 1.78 log @math/py-numpy: updated system_info patch to upstreamed version, use cblas The patch to system_info.py got upstreamed in a modified form which is now backported here. On updating to 1.21, it shall be dropped. In the process of upstreaming the patch, I learned that numpy really needs to use cblas for proper acceleration, so it does that now and gets a PKGREVISION bump because of that. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.77 2021/04/07 11:57:30 thor Exp $ d3 1 a3 2 DISTNAME= numpy-1.19.5 PKGREVISION= 4 d25 1 a25 1 PYTHON_VERSIONS_INCOMPATIBLE= 27 # since 1.17 @ 1.77 log @py-numpy: updated the BLAS patch for more likely upstream inclusion This introduces a 'generic' variant for blas_opt_info() and lapack_opt_info() that looks into BLAS_LIBS and LAPACK_LIBS. The others stay alive, and you can choose via NPY_BLAS_ORDER and NPY_LAPACK_ORDER. Will post this upstream … hoping for the best. Other projects seem just to abuse the [openblas] entry in site.cfg, or whatever hacks to trick this into building with a generic BLAS. One hurdle is that using openblas seems to assume that CBLAS is present in there, which it is not in pkgsrc. We could think about introducing some alternatives stuff that uses stubs for all the related libs anyway, but that is not my application, which builds things from source. For binary packages, it would be interesting, though. See Debian and Genoot for prior art on that. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.76 2021/03/26 20:34:28 thor Exp $ d4 1 a4 1 PKGREVISION= 3 d21 2 a22 5 # Use our BLAS. The patch adds 'generic' as first entry anyway, but we # enforce it to fail early and for the case that upstream accepts the # patch, but with changed default order. MAKE_ENV+= BLAS_LIBS=${BLAS_LIBS:Q} LAPACK_LIBS=${LAPACK_LIBS:Q} MAKE_ENV+= NPY_BLAS_ORDER=generic NPY_LAPACK_ORDER=generic d61 2 a62 5 # Consider allowing mk/blas.buildlink3.mk to handle Accelerate.framework .if ${OPSYS} != "Darwin" # blas and lapack are not needed; numpy will use Accelerate.framework .include "../../mk/blas.buildlink3.mk" .endif @ 1.76 log @math/py-numpy: hotfix for building py-scipy The downstream configure code freaked out when info['define_macros'] was not set. It is now defined and empty. I hope it's fine to just push this without further notice. Build was confirmed by oster on NetBSD-9.1/amd64 and tested by me on Linux/amd64. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.75 2021/03/25 21:47:50 thor Exp $ d4 1 a4 1 PKGREVISION= 2 d21 3 a23 1 MAKE_ENV+= ATLAS=None d25 1 @ 1.75 log @math/py-numpy: Actually use BLAS_LIBS and LAPACK_LIBS. The previous state included our BLAS choice but the build did not honour the selected libs. This patches the config script to not search for LAPACK and BLAS, using our settings instead. Hopefull we can get that option upstreamed. Approved during freeze by wiz. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.74 2021/01/09 09:29:41 adam Exp $ d4 1 a4 1 PKGREVISION= 1 @ 1.74 log @py-numpy: updated to 1.19.5 1.19.5: BUG: Fix segfault due to out of bound pointer in floatstatus... BUG: fix np.timedelta64('nat').__format__ throwing an exception BUG: Fixed file handle leak in array_tofile. BUG: Raise recursion error during dimension discovery BUG: Fix subarray dtype used with too large count in fromfile BUG: 'bool' object has no attribute 'ndim' BUG: ensure _UFuncNoLoopError can be pickled BLD: use BUFFERSIZE=20 in OpenBLAS BLD: update to OpenBLAS 0.3.13 BUG: make a variable volatile to work around clang compiler bug REL: Prepare for the NumPy 1.19.5 release. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.73 2020/11/26 10:50:44 adam Exp $ d4 1 d22 1 @ 1.73 log @py-numpy: updated to 1.19.4 1.19.4: MAINT: Add check for Windows 10 version 2004 bug. REV: Revert OpenBLAS to 1.19.2 version for 1.19.4 1.19.3: BLD: set upper versions for build dependencies BUG: Set deprecated fields to null in PyArray_InitArrFuncs ENH: Warn on unsupported Python 3.10+ MAINT: Update test_requirements.txt. ENH: Support for the NVIDIA HPC SDK nvfortran compiler BUG: Cygwin Workaround for #14787 on affected platforms BUG: Fix memory leak of buffer-info cache due to relaxed strides MAINT: Backport openblas_support from master. TST: Add Python 3.9 to the CI testing on Windows, Mac. TST: Simplify source path names in test_extending. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.72 2020/10/21 19:43:07 nia Exp $ d3 1 a3 1 DISTNAME= numpy-1.19.4 @ 1.72 log @py-numpy: Assumes the compiler defaults to c99. Force -std=c99. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.71 2020/10/12 21:51:58 bacon Exp $ d3 1 a3 1 DISTNAME= numpy-1.19.2 a4 1 PKGREVISION= 1 @ 1.71 log @math/blas, math/lapack: Install interchangeable BLAS system Install the new interchangeable BLAS system created by Thomas Orgis, currently supporting Netlib BLAS/LAPACK, OpenBLAS, cblas, lapacke, and Apple's Accelerate.framework. This system allows the user to select any BLAS implementation without modifying packages or using package options, by setting PKGSRC_BLAS_TYPES in mk.conf. See mk/blas.buildlink3.mk for details. This commit should not alter behavior of existing packages as the system defaults to Netlib BLAS/LAPACK, which until now has been the only supported implementation. Details: Add new mk/blas.buildlink3.mk for inclusion in dependent packages Install compatible Netlib math/blas and math/lapack packages Update math/blas and math/lapack MAINTAINER approved by adam@@ OpenBLAS, cblas, and lapacke will follow in separate commits Update direct dependents to use mk/blas.buildlink3.mk Perform recursive revbump @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.70 2020/10/02 07:44:15 adam Exp $ d19 2 a20 1 USE_LANGUAGES= c fortran @ 1.70 log @py-numpy: updated to 1.19.2 1.19.2: TST: Change aarch64 to arm64 in travis.yml. MAINT: Configure hypothesis in ``np.test()`` for determinism,... BLD: pin setuptools < 49.2.0 ENH: Add NumPy declarations to be used by Cython 3.0+ BUG: Remove non-threadsafe sigint handling from fft calculation BUG: core: fix ilp64 blas dot/vdot/... for strides > int32 max DOC: Use SPDX license expressions with correct license DOC: Fix the link to the quick-start in the old API functions BUG: fix pickling of arrays larger than 2GiB @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.69 2020/08/11 05:58:29 mef Exp $ d5 1 d59 1 d62 1 a62 2 .include "../../math/blas/buildlink3.mk" .include "../../math/lapack/buildlink3.mk" @ 1.69 log @(math/py-numpy) INSTALL.rst.txt says Cython >= 0.29.21 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.68 2020/08/05 14:05:45 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.19.1 @ 1.68 log @py-numpy: updated to 1.19.1 1.19.1 * MAINT, CI: disable Shippable cache * MAINT: Replace `PyUString_GET_SIZE` with `PyUnicode_GetLength`. * REL: Fix outdated docs link * BUG: raise IEEE exception on AIX * BUG: Fix bug in AVX complex absolute while processing array of... * TST: Add extra debugging information to CPU features detection * BLD: Add CPU entry for Emscripten / WebAssembly * TST: Disable Python 3.9-dev testing. * MAINT: Disable use_hugepages in case of ValueError * BUG: Fix PyArray_SearchSorted signature. * MAINT: Fixes for deprecated functions in scalartypes.c.src * MAINT: Remove unneeded call to PyUnicode_READY * MAINT: Fix deprecated functions in scalarapi.c * BLD, ENH: Add RPATH support for AIX * BUG: Fix default fallback in genfromtxt * BUG: Added missing return after raising error in methods.c * BLD: update cython to 0.29.21 * MAINT: setuptools 49.2.0 emits a warning, avoid it * BUG: Validate output size in bin- and multinomial * BLD, MAINT: Pin setuptools * DOC: Reconstruct Testing Guideline. * TST, BUG: Re-raise MemoryError exception in test_large_zip's... * BUG,DOC: Fix bad MPL kwarg. * BUG: Fix string/bytes to complex assignment * REL: Prepare for NumPy 1.19.1 release 1.19.0 * ENH: add identity kwarg to frompyfunc * TST: check exception details in refguide_check.py * ENH: improve runtime detection of CPU features * TST: Add assert_array_equal test for big integer arrays. * MAINT: Remove unnecessary 'from __future__ import ...' statements * MAINT: Fix typos and copy edit NEP-0030. * DOC: NumPy for absolute beginners tutorial * NEP: Proposal for array creation dispatching with `__array_function__` * ENH: Use AVX-512F for np.maximum and np.minimum * BUG: Fix numpy.random.dirichlet returns NaN for small 'alpha'... * API: Use `ResultType` in `PyArray_ConvertToCommonType` * MAINT,API: ignore and NULL fasttake/fastputmask ArrFuncs slots * BUG: Make ``ediff1d`` kwarg casting consistent * DOC: linalg: Include information about scipy.linalg. * BUG: Use ``__array__`` during dimension discovery * MAINT: cleanup compat.py3k.py * ENH: f2py: improve error messages * [DOC] LaTeX: fix preamble (closes 15026) * BUG: add endfunction, endsubroutine to valid fortran end words * TST: Add test for object method (and general unary) loops * REL: Update master after 1.18.x branch. * DOC: Update HOWTO_RELEASE.rst.txt * API, DOC: change names to multivariate_hypergeometric, improve... * DOC: Fix statement about norms * MAINT: follow-up cleanup for blas64 PR * DOC: add docstrings to refguide-check * Revert "DEP: issue deprecation warning when creating ragged array... * ENH: add support for ILP64 OpenBLAS (without symbol suffix) * DOC: correct version for NaT sort * TST: Check requires_memory immediately before the test * MAINT: core: Fix a very long line in the ufunc docstrings. * BUG: test, fix flexible dtype conversion on class with __array__ * TST: add value to pytest.ini for pytest6 compatibility * MAINT: Ragged cleanup * DOC: bring the out parameter docstring into line with ufuncs * ENH: f2py: add --f2cmap option for specifying the name of .f2py_f2cmap * TST: add BLAS ILP64 run in Travis & Azure * MAINT: Fix expm1 instability for small complex numbers. * MAINT: random: Remove a few unused imports from test files. * MAINT: Bump pytest from 5.3.1 to 5.3.2 * API: remove undocumented use of __array__(dtype, context) * MAINT,CI: fix signed-unsigned comparison warning * DOC: Update documentation of np.clip * DOC: Remove reference to basic RNG * MAINT: Fix randint 0d limits and other 0d cleanups * DOC: Fix typos, via a Levenshtein-style corrector * MAINT: CI: Clean up .travis.yml * DOC: Correct choice signature * DOC: Correct documentation in choice * TST: shippable build efficiency * BUG: ensure reduction output matches input along non-reduction... * REL: Update master after NumPy 1.18.0 release. * MAINT: Update pavement.py for towncrier. * DOC: update cholesky docstring regarding input checking * DOC: update documentation on how to build NumPy * DOC: add moved modules to 1.18 release note * MAINT: Update required cython version to 0.29.14. * BUG: searchsorted: passing the keys as a keyword argument * BUG: use tmp dir and check version for cython test * TST: improve assert message of assert_array_max_ulp * MAINT: unskip test on win32 * ENH: Add property-based tests using Hypothesis * BUG: test, fix for c++ compilation * DOC: Adding instructions for building documentation to developer... * DOC: NEP 37: A dispatch protocol for NumPy-like modules * MAINT: Do not use private Python function in testing * DOC: Improvements to Quickstart Tutorial. * BUG: distutils: fix msvc+gfortran openblas handling corner case * BUG: lib: Fix handling of integer arrays by gradient. * MAINT: lib: A little bit of clean up for the new year. * REL: Update master after NumPy 1.16.6 and 1.17.5 releases. * DEP: records: Deprecate treating shape=0 as shape=None * ENH: build fallback lapack_lite with 64-bit integers on 64-bit... * MAINT: linalg: use symbol suffix in fallback lapack_lite * DOC: typo in release.rst * NEP: universal SIMD NEP 38 * MAINT: Remove unused int_asbuffer * MAINT: Cleaning up PY_MAJOR_VERSION/PY_VERSION_HEX * MAINT: Clean up more PY_VERSION_HEX * MAINT: Remove implicit inheritance from object class * MAINT: only add --std=c99 where needed * MAINT: Remove Python2 newbuffer getbuffer * MAINT: Py3K array_as_buffer and gentype_as_buffer * MAINT: Remove references to non-existent sys.exc_clear() * DOC: Update HOWTO_RELEASE.rst * MAINT: cleanup use of sys.exc_info * MAINT: Eliminate some calls to `eval` * MAINT: Improve const-correctness of shapes and strides * DOC: clarify the effect of None parameters passed to ndarray.view * MAINT: Improve const-correctness of string arguments * MAINT: Delete numpy.distutils.compat * MAINT: Implement keyword-only arguments as syntax * MAINT: Remove FIXME comments introduced in the previous commit * MAINT: Work with unicode strings in `dtype('i8,i8')` * BUG: Use PyDict_GetItemWithError() instead of PyDict_GetItem() * MAINT: Remove python2 array_{get,set}slice * DOC: Add some missing functions in the list of available ufuncs. * MAINT: Tidy PyArray_DescrConverter * MAINT: remove duplicated if statements between DescrConverters * BUG: Fix PyArray_DescrAlignConverter2 on tuples * MAINT: Remove Python2 ndarray.__unicode__ * MAINT: Remove Python 2 divide * MAINT: minor formatting fixups for NEP-37 * MAINT: Post NumPy 1.18.1 update. * MAINT: travis-ci: Update CI scripts. * BENCH: Add benchmark for small array coercions * BUILD: use standard build of OpenBLAS for aarch64, ppc64le, s390x * BENCH: Add basic benchmarks for take and putmask * MAINT: Cleanup most PY3K #ifdef guards * DOC: BLD: add empty release notes for 1.19.0 to fix doc build... * MAINT: Use a simpler return convention for internal functions * MAINT: Simplify np.int_ inheritance * DOC" Update np.full docstring. * MAINT: Express PyArray_DescrAlignConverter in terms of _convert_from_any * MAINT: Push down declarations in _convert_from_* * MAINT: C code simplifications * BUG: Add missing error handling to _convert_from_list * DOC: Added tutorial about linear algebra on multidimensional... * MAINT: Refactor dtype conversion functions to be more similar * DOC: Updating f2py docs to python 3 and fixing some typos * MAINT: Remove NPY_PY3K constant * MAINT: Remove sys.version checks in tests * MAINT: cleanup sys.version dependant code * MAINT: Ensure `_convert_from_*` functions set errors * MAINT: Avoid escaping unicode in error messages * MAINT: Change file extension of ma README to rst. * BUG: fix NameError in clip nan propagation tests * NEP: document reimplementation of NEP 34 * MAINT: fix typos * TST: move pypy CI to ubuntu 18.04 * TST: move _no_tracing to testing._private, remove testing.support * BUG: Add some missing C error handling * MAINT: Remove sys.version checks * DEP: Deprecate `->f->fastclip` at registration time * DOC: document site.cfg.example * MAINT: Fix mistype in histogramdd docstring * DOC, BLD: reword release note, upgrade sphinx version * MAINT: Remove unnecessary calls to PyArray_DATA from binomial... * MAINT: Bump pytest from 5.3.2 to 5.3.3 * MAINT: Remove six * MAINT: Revise imports from collections.abc module * MAINT: remove internal functions required to handle Python2/3... * MAINT: Remove other uses of six module * MAINT: resolve pyflake F403 'from module import *' used * MAINT: Update tox for supported Python versions * MAINT: simd: Avoid signed comparison warning * DOC: Updating Chararry Buffer datatypes * TST: Simplify unicode test * MAINT: Use `with open` when possible * MAINT: Cleanup python2 references * MAINT: Python2 Cleanups * DEP: add PendingDeprecation to matlib.py funky namespace * BUG, MAINT: Stop using the error-prone deprecated Py_UNICODE... * MAINT: clean up some macros in scalarapi.c * MAINT/BUG: Fixups to scalar base classes * BUG: np.load does not handle empty array with an empty descr * MAINT: Revise imports from urllib modules * MAINT: Remove Python3 DeprecationWarning from pytest.ini * MAINT: cleanup _pytesttester.py * BUG: Flags should not contain spaces * MAINT: Clean up, mostly unused imports. * BUG/TEST: core: Fix an undefined name in a test. * MAINT: Replace basestring with str. * ENH: Use AVX-512F for complex number arithmetic, absolute, square... * MAINT: Remove Python2 workarounds * MAINT: Cleanup references to python2 * MAINT, DOC: Remove use of old Python __builtin__, now known as... * ENH: Make use of ExitStack in npyio.py * MAINT: Inline gentype_getreadbuf * MAINT: Use f-strings for clarity. * DEP: Schedule unused C-API functions for removal/disabling * DOC: Improve ndarray.ctypes example * DOC: distutils: Add a docstring to show_config(). * MAINT: Use contextmanager in _run_doctests * MAINT: Updated polynomial to use fstrings * DOC: Fix Incorrect document in Beginner Docs * MAINT: Update core.py with fstrings (issue 15420) * DOC: fix docstrings so `python tools/refguide-check --rst ... * MAINT: Tidy macros in scalar_new * MAINT: use 'yield from ' for simple cases * MAINT: Bump pytest from 5.3.3 to 5.3.4 * BUG: Reject nonsense arguments to scalar constructors * DOC: Update refguide_check note on how to skip code * MAINT: Simplify `np.object_.__new__` * STY,MAINT: avoid 'multiple imports on one line' * MAINT: Cleanup duplicate line in refguide_check * MAINT: cleanup unused imports; avoid redefinition of imports * BUG: Fix for SVD not always sorted with hermitian=True * MAINT: Simplify scalar __new__ some more * MAINT: Eliminate messy _WORK macro * update result of rng.random(3) to current rng output * DOC: Correct get_state doc * MAINT: Use `.identifier = val` to fill type structs * [DOC] Mention behaviour of np.squeeze with one element * ENH: fixing generic error messages to be more specific in multiarray/descriptor.c * BUG: Fixing result of np quantile edge case * TST: mark the top 3 slowest tests to save ~10 seconds * MAINT: Bump pytest from 5.3.4 to 5.3.5 * MAINT: Use True/False instead of 1/0 in np.dtype.__reduce__ * MAINT: Do not allow `copyswap` and friends to fail silently * DOC: Remove duplicated code in true_divide docstring * NEP 40: Informational NEP about current DTypes * DOC: Update unique docstring example * MAINT: Large overhead in some random functions * TST: Fix missing output in refguide-check * MAINT: Simplify arraydescr_richcompare * MAINT: Fix internal misuses of `NPY_TITLE_KEY` * DOC: Update instructions for building/archiving docs. * BUG: Fix inline assembly that detects cpu features on x86(32bit) * update doctests, small bugs and changes of repr * DEP: Do not allow "abstract" dtype conversion/creation * DOC: Minor copyediting on NEP 37. * MAINT: Extract repeated code to a helper function * NEP: edit and move NEP 38 to accepted status * MAINT: Refresh Doxyfile and modernize numpyfilter.py * TST: Accuracy test float32 sin/cos/exp/log for AVX platforms * DOC: Improve the `numpy.linalg.eig` docstring. * NEP 44 - Restructuring the NumPy Documentation * TST: (Travis CI) Use full python3-dbg path for virtual env creation * BUG, DOC: restore missing import * DOC: Removing bad practices from quick start + some PEP8 * TST: Do not create symbolic link named gfortran. * DOC: Document caveat in random.uniform * DOC: numpy.clip is equivalent to minimum(..., maximum(...)) * MAINT: Bump cython from 0.29.14 to 0.29.15 * MAINT: Bump hypothesis from 5.3.0 to 5.5.4 * BLD: manylinux2010 docker reports machine=i686 * BUG: Ignore differences in NAN for computing ULP differences * TST: use manylinux2010 docker instead of ubuntu * TST: mask DeprecationWarning in xfailed test * BUG: Fix bug in AVX-512F np.maximum and np.minimum * BUG: Remove check requiring natural alignment of float/double... * DOC: Add missing imports, definitions and dummy file * DOC: Fix documentation for apply_along_axis * DOC: fix printing, np., deprecation for refguide * MAINT: Pull identical line out of conditional. * DOC: remove broken link in f2py tutorial * BLD: update openblas download to new location, use manylinux2010-base * MAINT: AVX512 implementation with intrinsic for float64 input... * BLD: update OpenBLAS to pre-0.3.9 version * DOC: Refactor `np.polynomial` docs using `automodule` * BUG: fix doctest exception messages * MAINT: Added comment pointing FIXME to relevant PR. * DOC: Make extension module wording more clear * DOC: Improve np.finfo docs * DOC: Improve Benchmark README with environment setup and more... * MAINT: Bump hypothesis from 5.5.4 to 5.6.0 * NEP: move NEP 44 to accepted status * DOC: Fix indexing docs to pass refguide * MAINT: Test during import to detect bugs with Accelerate(MacOS)... * MAINT: Add a fast path to var for complex input * MAINT: Convert shebang from python to python3 * MAINT: replace optparse with argparse for 'doc' and 'tools' scripts * DOC: Fix quickstart doc to pass refguide * MAINT: Fixing typos in f2py comments and code. * DOC: fix SVD tutorial to pass refguide * MAINT: use list-based APIs to call subprocesses * ENH: update numpy.linalg.multi_dot to accept an `out` argument * TST: always use 'python -mpip' not 'pip' * DOC: update datetime reference to pass refguide * DOC: Fix coremath.rst to fix refguide_check * DOC: fix remaining doc files for refguide_check * BUG: fix logic error when nm fails on 32-bit * TST: Remove nose from the test_requirements.txt file. * DOC: Allow NEPs to link to python, numpy, scipy, and matplotlib... * BUG: Guarantee array is in valid state after memory error occurs... * MAINT: Remove non-native byte order from _var check. * MAINT: Add better error handling in linalg.norm for vectors and... * MAINT: doc: Remove doc/summarize.py * BUG: lib: Handle axes with length 0 in np.unique. * DOC: document inconsistency between the shape of data and mask... * BUG, TST: fix f2py for PyPy, skip one test for PyPy * MAINT: Fix swig tests issue * MAINT: CI: Add an explicit 'pr' section to azure-pipelines.yml * MAINT: Bump pytest from 5.3.5 to 5.4.1 * BUG,MAINT: Remove incorrect special case in string to number... * REL: Update master after 1.18.2 release. * ENH: Allow toggling madvise hugepage and fix default * DOC: Fix runtests example in developer docs * DEP: Make issubdtype consistent for types and dtypes * MAINT: remove useless `global` statements * BLD: Add requirements.txt file for building docs * BUG: don't add 'public' or 'private' if the other one exists * ENH: Use TypeError in `np.array` for python consistency * BUG: Add basic __format__ for masked element to fix incorrect... * TST: Add unit test for out=None of np.einsum * MAINT: Cleanups to np.insert and np.delete * BUG: Add error-checking versions of strided casts. * DEP: Make `np.insert` and `np.delete` on 0d arrays with an axis... * DOC: correct possible list lengths for `extobj` in ufunc calls * DEP: Make np.delete on out-of-bounds indices an error * DEP: Forbid passing non-integral index arrays to `insert` and... * TST: Parametrize sort test * TST: switch PyPy job with CPython * TST: Remove code that is not supposed to warn out of warning... * DEP: Do not cast boolean indices to integers in np.delete * MAINT: simplify code that assumes str/unicode and int/long are... * MAINT: pathlib and hashlib are in stdlib in Python 3.5+ * ENH: improved error message `IndexError: too many indices for... * BUG: Fix IndexError for illegal axis in np.mean * DOC: Minor fix to _hist_bin_fd documentation * BUG,DEP: Make `scalar.__round__()` behave like pythons round * DOC: First steps towards docs restructuring (NEP 44) * DOC, TST: enable refguide_check in circleci * DOC: fix typo in C-API reference * DOC: Fix docstring for _hist_bin_auto. * MAINT: Bump cython from 0.29.15 to 0.29.16 * DEP: Deprecate ndarray.tostring() * TST: use draft OpenBLAS build * BUG: Fix eigh and cholesky methods of numpy.random.multivariate_normal * BUG: Check that `pvals` is 1D in `_generator.multinomial`. * DOC: Add missing signature from nditer docstring * BUG: Fix empty_like to respect shape=() * BUG: Do not ignore empty tuple of strides in ndarray.__new__ * MAINT: Remove duplicated code in iotools.py * BUG: Setting a 0d array's strides to themselves should be legal * BUG: Respect itershape=() in nditer * MAINT: Clean-up 'next = __next__' used for Python 2 compatibility * TST: Run test_large_zip in a child process * DOC: Add missing doc of numpy.ma.apply_over_axes in API list. * DOC: Improve record module documentation * DOC: Fixed order of items and link to mailing list in dev docs... * BLD: report clang version on macOS * MAINT: records: Remove private `format_parser._descr` attribute * BUG: random: Disallow p=0 in negative_binomial * ENH: Use sysconfig instead of probing Makefile * DOC: Update np.copy docstring to include ragged case * DOC: Correct private function name to PyArray_AdaptFlexibleDType * MAINT: Fix capitalization in error message in `mtrand.pyx` * DOC: Update np.rollaxis docstring * BUG: fix AttributeError on accessing object in nested MaskedArray. * BUG: Alpha parameter must be 1D in `generator.dirichlet` * NEP: minor maintenance, update filename and fix a cross-reference * MAINT: Bump hypothesis from 5.8.0 to 5.8.3 * TST: Add slow_pypy support * DOC: Added note to angle function docstring about angle(0) being... * MAINT/BUG: Cleanup and minor fixes to conform_reduce_result * BUG: Avoid duplication in stack trace of `linspace(a, b, num=1.5)` * BUG: Fix inf and NaN-warnings in half float `nextafter` * MAINT: Remove 0d check for PyArray_ISONESEGMENT * DEV: Pass additional runtests.py args to ASV * DOC: Fix method documentation of function sort in MaskedArray * NEP: Improve Value Based Casting paragraph in NEP 40 * DOC: add note on flatten ordering in matlab page * TST: Add tests for the conversion utilities * BUG: Unify handling of string enum converters * MAINT: Replace npyiter_order_converter with PyArray_OrderConverter * BUG: Fix lexsort axis check * DOC: Clarify single-segment arrays in np reference * DOC: Change import error "howto" to link to new troubleshooting... * DOC: update first section of NEP 37 (``__array_function__`` downsides) * REL: Update master after 1.18.3 release. * MAINT: Bump hypothesis from 5.8.3 to 5.10.1 * DOC: initialise random number generator before first use in quickstart * ENH: Fix exception causes in build_clib.py * MAINT,TST: Move _repr_latex tests to test_printing. * BUG: missing 'f' prefix for fstring * ENH: Fix exception causes in build_ext.py * DOC: Small typo fixes to NEP 40. * DOC, BLD: update release howto and walkthrough for ananconda.org... * ENH: Chained exceptions in linalg.py and polyutils.py * MAINT: Chain exceptions in several places. * MAINT: Chain exceptions in memmap.py and core.py * BUG: Fix string to bool cast regression * DOC: Added page describing how to contribute to the docs team * DOC: add a note on sampling 2-D arrays to random.choice docstring * BUG: random: Generator.integers(2**32) always returned 0. * BLD: fix path to libgfortran on macOS * DOC: Add axis to random module "new or different" docs * DOC,BLD: Limit timeit iterations in random docs. * DOC: add note on type casting to numpy.left_shift(). * DOC: improve development debugging doc * DOC: tweak neps/scope.rst * MAINT: Bump cython from 0.29.16 to 0.29.17 * MAINT: Bump hypothesis from 5.10.1 to 5.10.4 * TST: use latest released PyPy instead of nightly builds * MAINT, DOC: Improve grammar on a comment in the quickstart * NEP 41: Accept NEP 41 and add DType<->scalar duplication paragraph * BLD: put openblas library in local directory on windows * MAINT: Fix random.PCG64 signature * DOC: Move misplaced news fragment for gh-13421 * DOC: Fix links for NEP 40 in NEP 41 * BUG: lib: Fix a problem with vectorize with default parameters. * ENH: Better error message when ``bins`` has float value in ``histogramdd``. * MAINT: Unify casting error creation (outside the iterator) * BENCH: Default to building HEAD instead of master * REL: Update master after NumPy 1.18.4 release * DOC: Add VSCode help link to importerror troubleshooting * CI: pin 32-bit manylinux2010 image tag * MAINT: Bump pytz from 2019.3 to 2020.1 * BUG: Correct loop order in MT19937 jump * CI: unpin 32-bit manylinux2010 image tag * BUG: add missing numpy/__init__.pxd to the wheel * BUG:Umath remove unnecessary include of simd.inc in fast_loop_macro.h * DOC,BLD: Add :doc: to whitelisted roles in refguide_check. * ENH: resync numpy/__init__.pxd with upstream * ENH: allow choosing which manylinux artifact to download * MAINT: Mark tests as a subpackage rather than data. * Update Docs : point users of np.outer to np.multiply.outer * DOC: Fix link to numpy docs in README. * ENH: Allow pickle with protocol 5 when higher is requested * MAINT: cleanups to _iotools.StringConverter * DOC: Unify cross-references between array joining methods * DOC: Improve docstring of ``numpy.core.records`` * DOC: update Code of Conduct committee * MAINT: Bump hypothesis from 5.10.4 to 5.12.0 * MAINT: Bump pytest from 5.4.1 to 5.4.2 * DOC: warn about runtime of shares_memory * ENH: backport scipy changes to openblas download script * BUG: skip complex256 arcsinh precision test on glibc2.17 * MAINT: Chain exceptions and use NameError in np.bmat * DOC,BLD: pin sphinx to <3.0 in doc_requirements.txt * BUG: fix signature of PyArray_SearchSorted in __init__.pxd * ENH: add manylinux1 openblas hashes * DOC: Fix Generator.choice docstring * DOC: Add PyDev instructions to troubleshooting doc * DOC: Add Clang and MSVC to supported compilers list * DOC: Warn about behavior of ptp with signed integers. * DOC: Update the f2py section of the "Using Python as Glue" page. * BUG: Add missing decref in fromarray error path * ENH: Add tool for downloading release wheels from Anaconda. * DOC: Fix typos and cosmetic issues * REL: Prepare for the 1.19.0 release * BUG: Fix tools/download-wheels.py. * BUG: Require Python >= 3.6 in setup.py * BUG: relpath fails for different drives on windows * DOC: Fix documentation rendering, * BUG: Don't segfault on bad __len__ when assigning. (gh-16327) * MAINT: Stop Using PyEval_Call* and simplify some uses * BLD: Avoid "visibility attribute not supported" warning. * BUG: Allow attaching documentation twice in add_docstring * MAINT: Remove f-strings in setup.py. (gh-16346) * BUG: Indentation for docstrings * BUG: Fix dtype leak in `PyArray_FromAny` error path * ENH: Optimize Cpu feature detect in X86, fix for GCC on macOS... * MAINT: core: Use a raw string for the fromstring docstring. * MAINT: Make ctypes optional on Windows * BUG: Fix small leaks in error path and ``empty_like`` with shape * TST, MAINT: Fix detecting and testing armhf features * DOC,BLD: Update sphinx conf to use xelatex. * DOC,BLD: Update make dist html target. * MAINT, DOC: add index for user docs. * MAINT: support python 3.10 * DOC: Fix troubleshooting code snippet when env vars are empty * REL: Prepare for the NumPy 1.19.0rc2 release. * MAINT:ARMHF Fix detecting feature groups NEON_HALF and NEON_VFPV4 * BUG:random: Error when ``size`` is smaller than broadcast input... * BUG: fix GCC 10 major version comparison * BUG: Ensure SeedSequence 0-padding does not collide with spawn... * BUG: fix sin/cos bug when input is strided array * MAINT: Move and improve ``test_ignore_nan_ulperror``. * REL: Update 1.19.0-changelog.rst for 1.19.0 release. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.67 2020/06/11 08:13:28 adam Exp $ d54 1 a54 1 BUILDLINK_API_DEPENDS.py-cython+= ${PYPKGPREFIX}-cython>=0.29.2 @ 1.67 log @py-numpy: updated to 1.18.5 1.18.5: ENH: enable pickle protocol 5 support for python3.5 BUG: relpath fails for different drives on windows @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.66 2020/06/05 20:37:16 leot Exp $ d3 1 a3 1 DISTNAME= numpy-1.18.5 d14 1 @ 1.66 log @py-numpy: Re-add support for g95 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.65 2020/05/04 06:18:55 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.18.4 @ 1.65 log @py-numpy: updated to 1.18.4 1.18.4: BLD: add i686 for 1.18 builds BUG: random: ``Generator.integers(2**32)`` always returned 0. BLD: fix path to libgfortran on macOS REV: Reverts side-effect changes to casting BLD: put openblas library in local directory on windows DOC: Change import error "howto" to link to new troubleshooting... @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.64 2020/04/27 17:00:35 adam Exp $ d27 3 a29 1 .if defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "gfortran" @ 1.64 log @py-numpy: updated to 1.18.3 1.18.3: BUG: Fix eigh and cholesky methods of numpy.random.multivariate_normalBUG,MAINT: Remove incorrect special case in string to number... BUG: Guarantee array is in valid state after memory error occurs... BUG: Check that `pvals` is 1D in `_generator.multinomial`. BUG: Alpha parameter must be 1D in `generator.dirichlet` 1.18.2: TST: move _no_tracing to testing._private MAINT: Large overhead in some random functions TST: Do not create gfortran link in azure Mac testing. BUG: Added missing error check in `ndarray.__contains__` MAINT: use list-based APIs to call subprocesses REL: Prepare for 1.18.2 release. BUG: fix logic error when nm fails on 32-bit 1.18.1: MAINT: Update pavement.py for towncrier. DOC: add moved modules to 1.18 release note MAINT, DOC: Minor backports and updates for 1.18.x TST: Add assert_array_equal test for big integer arrays BUG: use tmp dir and check version for cython test BUG: distutils: fix msvc+gfortran openblas handling corner case BUG: remove -std=c99 for c++ compilation MAINT: unskip test on win32 TST: add BLAS ILP64 run in Travis & Azure MAINT: only add --std=c99 where needed BUG: lib: Fix handling of integer arrays by gradient. MAINT: Do not use private Python function in testing REL: Prepare for the NumPy 1.18.1 release. 1.18.0: DOC: added note to docstring of numpy.savez BUG: Numpy scalar types sometimes have the same name DOC: Improve axes shift description and example in np.tensordot MAINT: avoid relying on `np.generic.__name__` in `np.dtype.name` ENH: supply our version of numpy.pxd, requires cython>=0.29 BUG: General fixes to f2py reference counts (dereferencing) BUG: NaT now sorts to ends of arrays DOC: Updates to nditer usage instructions BUG: Do not crash on recursive `.dtype` attribute lookup. ENH: Use AVX for float32 implementation of np.sin & np.cos DEP: Deprecate silent ignoring of bad data in fromfile/fromstring ENH: Always produce a consistent shape in the result of `argwhere` DOC: array(obj, dtype=dt) can downcast DOC: Document ma.filled behavior with non-scalar fill_value DOC: Add note to irfft-like functions about the default sizes BUG: Don't produce undefined behavior for a << b if b >= bitsof(a) MAINT: Update NEP template. ENH: random: Add the multivariate hypergeometric distribution. DOC: Fix unrendered links MAINT: Rewrite Floyd algorithm DOC: Add missing macros to C-API documentation ENH: Add axis argument to random.permutation and random.shuffle DOC: Adds documentation of functions exposed in numpy namespace BUG: Refcount fixes MAINT: Ensure array_dealloc does not modify refcount of self MAINT: Prepare master for 1.18.0 development. MAINT,BUG,DOC: Fix errors in _add_newdocs MAINT: Remove an unnessary backslash between two string literals MAINT: Update pavement to use python3 in shell commands. MAINT: Remove unnecessary backslashes (and replace others by... MAINT: Replace integers in places where booleans are expected DOC: Add missing parameter description for keepdims in MaskedArray ENH: use AVX for float32 and float64 implementation of sqrt,... DOC: reformat top-level release index DOC : Refactor Array API documentation -- Array Structure and... DOC: Fix typo in "make_mask" documentation MAINT: Delete unused _aliased_types.py BLD: Remove Trusty dist in Travis CI build BUG: Handle weird bytestrings in dtype() ENH: use towncrier to build the release note ENH: improve error message for ragged-array creation failure DOC: Update the description of byteswap BUG: i0 Bessel function regression on array-likes supporting... ENH, BUILD: refactor all OpenBLAS downloads into a single, testable... MAINT: Remove unnecessary parenthesis in numpy.ma.core MAINT: Fix wrong spelling of ufunc DOC: Remove explicit .next method calls with built-in next function... DOC: Don't override MaskedArray.view documentation with the one... BUG: Fix incorrect GIL release in array.nonzero MAINT: Warn if `_add_newdocs.py` is used to add docstrings to... MAINT: Revert 13876, "MAINT,BUG,DOC: Fix errors in _add_newdocs" MAINT,BUG,DOC: Fix errors in _add_newdocs DOC, MAINT: emphasize random API changes, remove Generator.randint DOC: Add a numpy-doc docstring to add_newdoc DOC: Fix rst rendering in data types DOC:Update the description of set_printoptions in quickstart... Fixing failure on Python 2.7 on Windows 7 Fix a typo related to the range of indices DOC: add space between words across lines BUG, DOC: add new recfunctions to `__all__` DOC: Change (old) range() to np.arange() DOC: improve np.sort docstring DOC: spellcheck numpy/doc/broadcasting.py MAINT, TST: remove test-installed-numpy.py DOC: Document array_function at a higher level. DOC: show workaround for backward compatibility DOC: Add a call for contribution paragraph to the readme BUG: Missing warnings import in polyutils BUILD: adapt "make version-check" to "make dist" DOC: emphasize need for matching numpy, git versions TST, MAINT, BUG: expand OpenBLAS version checking ENH: Chain exception for typed item assignment MAINT: Fix spelling error in npy_tempita kwarg DOC: Array API : Directory restructure and code cleanup [DOC] Remove unused/deprecated functions Update system_info.py DOC:Link between the two indexing documentation pages DOC: Update NumFOCUS subcommittee replacing Nathaniel with Sebastian DOC: update "Contributing to NumPy" with more activities/roles DOC: Improve quickstart documentation of new random Generator DEP: Speed up WarnOnWrite deprecation in buffer interface NEP: numpy.org website redesign DOC: Fix docstring of numpy.allclose regarding NaNs DEP: Raise warnings for deprecated functions PyArray_As1D, PyArray_As2D DEP: Remove np.rank which has been deprecated for more than 5... BUG, TEST: Adding validation test suite to validate float32 exp ENH,DEP: Allow multiple axes in expand_dims ENH: add pyproject.toml DOC: Update cversions.py links and wording DOC, BUILD: cleanups and fix (again) 'make dist' BUG: Fix file-like object check when saving arrays DOC: Resolve bad references in Sphinx warnings MAINT: bump ARMv8 / POWER8 OpenBLAS in CI DOC: Emphasize the need to run tests when building from source DOC:Add example to clarify "numpy.save" behavior on already open... DEP: Deprecate full and economic modes for linalg.qr DOC: Doc release BUG: fix build issue on icc 2016 TST: Add 3.8-dev to travisCI testing. DOC: Add blank line above doctest for intersect1d ENH: Propose standard policy for dropping support of old Python... DOC: Use `pip install .` where possible instead of calling setup.py MAINT: adjustments to test_ufunc_noncontigous MAINT: Improve NEP template DOC: fix documentation of i and j for tri. MAINT: Lazy import testing on python >=3.7 DEP: Deprecate PyArray_FromDimsAndDataAndDescr, PyArray_FromDims MAINT: Clearer error message while padding with stat_length=0 MAINT: remove duplicate variable assignments BUG: initialize variable that is passed by pointer DOC: fix typo in c-api/array.rst doc BUG: Add gcd/lcm definitions to npy_math.h MAINT: Mark umath accuracy test xfail. MAINT: Use equality instead of identity check with literal MAINT: Fix small typo in quickstart docs DOC, MAINT: Update master after 1.17.0 release. ENH: add c-imported modules for freeze analysis in np.random BUG: Fix DeprecationWarning in python 3.8 BUG: Remove stray print that causes a SystemError on python 3.7... BUG: Remove the broken clip wrapper BUG: avx2_scalef_ps must be static TST: Allow fuss in testing strided/non-strided exp/log loops NEP: Proposal for __duckarray__ protocol BUG: Make advanced indexing result on read-only subclass writeable TST: Clean up of test_pocketfft.py DEP: Deprecate np.alen MAINT: Workaround for Intel compiler bug leading to failing test DOC: Fix hermitian argument docs in `svd` MAINT: Fix a docstring typo. DOC: Fix links in `/.github/CONTRIBUTING.md`. ENH: Multivariate normal speedups MAINT: Improve mismatch message of np.testing.assert_array_equal DOC,MAINT: Move towncrier files and fixup categories BUG: Fixed default BitGenerator name BUG: Fix uint-overflow if padding with linear_ramp and negative... ENH: Enable huge pages in all Linux builds BUG: Fix leak in the f2py-generated module init and `PyMem_Del`... DOC: new nan_to_num keywords are from 1.17 onwards TST: Add tests for deprecated C functions (PyArray_As1D, PyArray_As1D) DOC: mention `take_along_axis` in `choose` ENH: Parse complex number from string DOC: update or remove outdated sourceforge links MAINT: Better error message for norm DOC: add backlinks to numpy.org BUG: Don't fail when lexsorting some empty arrays. BUG: Fix segfault in `random.permutation(x)` when x is a string. Doc: fix a typo in NEP21 DOC: set status of NEP 28 (website redesign) to Accepted BLD: MAINT: change default behavior of build flag appending. BUG: Fixes StopIteration error from 'np.genfromtext' for empty... BUG: fix inconsistent axes ordering for axis in function `unique` DEP: Deprecate load/dump functions in favour of pickle methods MAINT: Update NEP-30 DEP: Deprecate arrayprint formatting functions DOC: remove scipy.org from the breadcrumb formattiong BUG: Fix formatting error in exception message DOC: Address typos in dispatch docs BUG: Fix ZeroDivisionError for zero length arrays in pocketfft. BUG: Fix misuse of .names and .fields in various places TST, BUG: Use python3.6-dbg. BUG: core: Handle large negative np.int64 args in binary_repr. BUG: Fix numpy.random bug in platform detection MAINT: random: Match type of SeedSequence.pool_size to DEFAULT_POOL_SIZE Bug: Fix behavior of structured_to_unstructured on non-trivial... DOC: add two commas, move one word DOC: Clarify rules about broadcasting when empty arrays are involved. TST, MAINT: bump to OpenBLAS 0.3.7 stable DEP: numpy.testing.rand DEP: Deprecate class `SafeEval` BUG: revert detecting and raising error on ragged arrays DOC: Improve documentation of `isscalar`. MAINT: Fix bloated mismatch error percentage in array comparisons. DOC: Fix a minor typo in dispatch documentation. MAINT: Remove redundant deprecation checks MAINT: polynomial: Add an N-d vander implementation used under... DOC: clarify that PytestTester is non-public DOC: support and require sphinx>=2.2 DOC: random: fix doc linking, was referencing private submodules. MAINT: Fixes for prospective Python 3.10 and 4.0 DOC: lib: Add more explanation of the weighted average calculation. MAINT: Avoid BytesWarning in PyArray_DescrConverter() MAINT: Post NumPy 1.17.1 update. DOC: Fixed dtype docs for var, nanvar. DOC: Document project as Python 3 only with a trove classifier BUILD: move all test dependencies to ./test_requirements.txt BUG: lib: Fix histogram problem with signed integer arrays. REL: Update master after NumPy 1.16.5 release. BUG: test, fix regression in converting to ctypes NEP: Add initial draft of NEP-31: Context-local and global overrides.. DOC: document numpy/doc update process DOC: update np.around docstring with note about floating-point... BUG: view with fieldless dtype should raise if itemsize != 0 DOC: fix issue with __new__ usage in subclassing doc. DOC: Fix release notes table of contents NEP 32: Remove the financial functions from NumPy BLD: Update RELEASE_WALKTHROUGH and cythonize. Bump pytest from 5.1.1 to 5.1.2 TST: Remove build job since we now use Dependabot BLD: Only allow using Cython module when cythonizing. TST: Add dependabot config file. BUG: Fix format statement associated with AttributeError. BUG: Fix aradixsort indirect indexing. DOC: add the reference to 'printoptions' BUG: Do not show Override module in private error classes. DOC: Make implementation bullet points consistent in NEP 29 MAINT: Clarify policy language in NEP-29. REL: Update master after 1.17.2 release. MAINT: clean up pocketfft modules inside numpy.fft namespace BLD: remove generated Cython files from sdist MAINT: add test to prevent new public-looking modules being added BUG: random.hypergeometic assumes npy_long is npy_int64, hangs... ENH: Print the amount of memory that would be used by a failed... MAINT: use test_requirements.txt in tox and shippable, ship it... BUG: add a specialized loop for boolean matmul BUG: Fix _ctypes class circular reference. BUG: core: Fix the str function of the rational dtype. DOC: add timedelta64 signature MAINT: Extract raising of MemoryError to a helper function BUG,MAINT: Some fixes and minor cleanup based on clang analysis MAINT: Add `NPY_UNUSED` and `const` qualified suggested by clang MAINT: Silence integer comparison build warnings in assert statements MAINT: distutils: Add newline at the end of printed warnings. BUG: random: Revert gh-14458 and refix gh-14557. DOC: Fix reference NPY_ARRAY_OWNDATA instead of NPY_OWNDATA. ENH: Allow NPY_PKG_CONFIG_PATH environment variable override MAINT: remove the entropy c-extension module DOC: Add backslashes so PyUFunc_FromFuncAndDataAndSignatureAndIdentity DOC: Fix a minor typo in changelog readme BUG: Fix randint when range is 2**32 DOC: tweak np.round docstring to clarify floating-point error DOC: Add warning to NPV function API: Do not return None from recfunctions.drop_fields BUG: Fix flatten_dtype so that nested 0-field structs are flattened... DOC: Build release notes during CircleCI step BUILD: Hide platform configuration probe behind --debug-configure Mention that split() returns views into the original array MAINT: Simplify lookfor function MAINT: random: Remove a few duplicated C function prototypes. BUILD, MAINT: run tests with verbose for PyPY, also do not leak... BUG: fix release snippet failures caught only after merging BLD: add warn-error option, adds -Werror to compiler BUG: random: Create a legacy implementation of random.binomial. MAINT: remove unused functions, rearrange headers (from CC=clang) DOC: Fix a bit of code in 'Beyond the Basics' C API user guide. MAINT: Cleanup old_defines in DOC DOC: Added missing versionadded to diff(prepend) BUG: Avoid ctypes in Generators Changing ImportWarning to DeprecationWarning MAINT: handle case where GIT_VERSION is empty string MAINT: core: Remove duplicated inner loop ee->e from log, exp,... DOC: clarify input types in basics.io.genfromtxt.rst DOC: remove note about Pocketfft license file (non-existing here). DOC: Fix code that generates the table in the 'Casting Rules'... MAINT: don't install partial numpy.random C/Cython API. TST: ensure coercion tables aren't printed on failing public... DEP: remove deprecated (and private) numpy.testing submodules. BLD, DOC: fix gh-14518, add release note BUG: importing build_src breaks setuptools monkeypatch for msvc14 DOC: Note runtests.py `-- -s` method to use pytests `-s` DOC: update submodule docstrings, remove info.py files DOC: Document the NPY_SCALARKIND values as C variables. MAINT: Bump pytest from 5.1.2 to 5.1.3 DEP: remove deprecated select behaviour BUG: Add missing check for 0-sized array in ravel_multi_index BUG: dtype refcount cleanups DOC: Fix a minor typo in changelog entry MAINT: Fix typo: remoge → remove DOC: Change the promotion table checkmark to 'Y'. DEP: Complete deprecation of invalid array/memory order DOC: Add to doc that interp cannot contain NaN NEP: Accept NEP 32. NEP: Fix discrepancies in NEPs NEP: Only list "Active" NEPs under "Meta-NEPs" API: restructure and document numpy.random C-API BUG: properly define PyArray_DescrCheck{,Exact} MAINT: Remove duplicate files from .gitignore API: rearrange the cython files in numpy.random MAINT: Bump pytest from 5.1.3 to 5.2.0 MAINT: Add "MAINT" tag to dependabot commit msg DOC: Updated sphinx directive formatting DEP: Finish deprecation of non-integer `num` in linspace DOC: s/OR/AND/ in np.logical_and docstring DOC: misleading np.sinc() documentation DOC: clarify residual in np.polyfit BUILD: change to build_src --verbose-cfg, runtests.py --debug-info BUG: always free clean_sep DOC: Create `class Extension` docstring and add it to documentation. DOC: add `printoptions` as a context manager to `set_printoptions` DOC: Fix typo in NEP 29 MAINT: Use scalar math power function directly DOC: Add IPython to dependencies needed to build docs. MAINT: Bump pytest-cov from 2.7.1 to 2.8.1 MAINT: Bump pytest from 5.2.0 to 5.2.1 MAINT: Bump pytz from 2019.2 to 2019.3 MAINT: Use `extract_unit` throughout datetime BUG: fix fromfile behavior when reading sub-array dtypes BUG: random: Use correct length when axis is given to shuffle. BUG: Do not rely on undefined behaviour to cast from float to... NEP: add default-dtype-object-deprecation nep 34 MAINT: Remove unused boolean negative/subtract loops DEP: ufunc `out` argument must be a tuple for multiple outputs BUG: Fix `np.einsum` errors on Power9 Linux and z/Linux DOC: Note release notes process changes on devdocs start page Doc warnings DOC: Switch Markdown link to RST in NEP 29 TST: Divide Azure CI Pipelines into stages. DEP: Finish the out kwarg deprecation for ufunc calls DOC: Removing mentions of appveyor BUG: Default start to 0 for timedelta arange API: NaT (arg)min/max behavior API: Forbid Q<->m safe casting DEP: deprecate financial functions. DOC: Move newsfragment to correct folder DOC: cleaning up examples in maskedarray.generic MAINT: umath: Change error message for unsupported bool subtraction. ENH: Add complex number support for fromfile TST: run refguide-check on rst files in doc/* DOC: Edit NEP procedure for better discussion DOC: Post 1.17.3 release update. NEP: Accept NEP 29 as final BUG: Don't narrow intp to int when producing error messages DOC: lib: Fix deprecation markup in financial function docstrings. DOC: Change from HTTP to HTTPS BUG: clear only attribute errors in get_attr_string.h::maybe_get_attr MAINT: doc: Remove doc/newdtype_example/ Reword cautionary note about dtype.descr BUG: fix integer size confusion in handling array's ndmin argument TST, BUILD: add a gcc 4.8 run on ubuntu 18.04 Update CLASSIFIERS with python 3.8 support BUG: random: biased samples from integers() with 8 or 16 bit... DOC: Add release note about changed random variate stream from... DOC: Make changes to NEP procedure DOC: random: Remove redundant 'See Also' entry in 'uniform' docstring. MAINT: Minor typo fix MAINT: Bump pytest from 5.2.1 to 5.2.2 DOC: Adjust NEP-31 to new template. DEP: issue deprecation warning when creating ragged array (NEP... NEP: move 'NEP 29 random' from Accepted to Final DOC: Add take_along_axis to the see also section in argmin, argmax... ENH: change object-array comparisons to prefer OO->O unfuncs TST: Don't construct Fraction instances from numpy scalars Rename helper functions to not use the word rank MAINT: Use templating to merge float loops BUILD: ignore more build.log warnings BLD: Prevent -flto from optimising long double representation... BUG: raise ValueError for empty arrays passed to _pyarray_correlate MAINT: move buffer.h -> npy_buffer.h to avoid conflicts MAINT: Bump cython from 0.29.13 to 0.29.14 ENH: add isinf, isnan, fmin, fmax loops for datetime64, timedelta64 BLD: add 'apt update' to shippable MAINT: revert gh-14800, which gave precedence to OO->O over OO->? REL: Update master after 1.17.4 release. BUILD: remove SSE2 flag from numpy.random builds DOC: Update NEP29 with Python3.8 informations. BUG: Remove builtins from __all__ MAINT: Delete and ignore generated files Update FUNDING.yml MAINT: Remove uses of scalar aliases NEP: move nep 34 to accepted TST: Add s390x to the TravisCI test matrix. DOC: Note FFT type promotion TST: Test with Python3.8 on Windows. TST: Update travis.yml TST: add no_tracing decorator to refcount-sensitive codepath... MAINT: Bump pytest from 5.2.2 to 5.2.4 BUG: Fix step returned by linspace when num=1 and endpoint=False DOC: Compare 'tolist' function to 'list' in example DOC: Clarify return type for default_rng MAINT: move numpy/random/examples -> numpy/random/_examples DOC: testing: Note handling of scalars in assert_array_equal... DOC, API: add random.__init__.pxd and document random.* functions DOC: Clean up examples of low-level random access TST. API: test using distributions.h via cffi TST: skip if cython is not available MAINT: Cleaned up mintypecode for Py3 DOC: fix docstring of np.linalg.norm MAINT: Added Python3.8 branch to dll lib discovery on Windows DEV: update asv.conf.json MAINT: Bump pytest from 5.2.4 to 5.3.0 MAINT: Fix typos REV: "ENH: Improved performance of PyArray_FromAny for sequences... BUG: warn when saving dtype with metadata DEP: Deprecate the axis argument to masked_rows and masked_cols MAINT: Fix long name of PCG64 DOC, API: improve the C-API/Cython documentation and interfaces... DOC: Fix typo in numpy.loadtxt and numpy.genfromtxt documentation ENH: allow using symbol-suffixed 64-bit BLAS/LAPACK for numpy.dot... DOC: add a more useful comment to compat.py3k.py DOC: lib: Use a clearer example of ddof in the notes of the cov... TST: machinery for tests requiring large memory + lapack64 smoketest MAINT: Only copy input array in _replace_nan() if there are nans... MAINT: Bump pytest from 5.3.0 to 5.3.1 REV: "ENH: Improved performance of PyArray_FromAny for sequences... REL: Prepare for 1.18 branch MAINT: Cleaned up mintypecode for Py3 (pt. 2) BUG: Fix refcounting in ufunc object loops BUG: Exceptions tracebacks are dropped REV: Revert "Merge pull request 14794 from mattip/nep-0034-impl" API, DOC: change names to multivariate_hypergeometric, improve docs REL: Prepare for NumPy 1.18.0 release. TST: Check requires_memory immediately before the test ENH: Add support to sort timedelta64 `NaT` to end of the array MAINT: follow-up cleanup for blas64 PR ENH: f2py: add --f2cmap option for specifying the name of .f2py_f2cmap ENH: add support for ILP64 OpenBLAS (without symbol suffix) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.63 2020/01/30 23:34:28 minskim Exp $ d3 1 a3 1 DISTNAME= numpy-1.18.3 d27 1 a27 3 .if defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "g95" PYSETUPBUILDARGS+= --fcompiler=g95 .elif defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "gfortran" @ 1.63 log @math/py-numpy: Update to 1.16.6 Changes: - The np.testing.utils functions have been updated from 1.19.0-dev0. This improves the function documentation and error messages as well extending the assert_array_compare function to additional types. - Allow matmul (@@) to work with object arrays. - Fix regression in matmul (@@) for boolean types. - Array comparison assertions include maximum differences. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.62 2020/01/24 16:18:22 minskim Exp $ d3 1 a3 1 DISTNAME= numpy-1.16.6 d22 2 @ 1.62 log @math/py-numpy: Update to 1.16.5 Changes: - Add project URLs to setup.py - fix tests and ctypes code for PyPy - use npy_intp instead of int for indexing array - Ignore DeprecationWarning during nose imports - Fix use-after-free in boolean indexing - Fix errors in _add_newdocs - fix byte order reversal for datetime64[ns] - Use nbytes to also catch empty descr during allocation - np.array cleared errors occured in PyMemoryView_FromObject - Fixes for Undefined Behavior Sanitizer (UBSan) errors. - ensure that casting to/from structured is properly checked. - fix histogram*d dispatchers - further fixup to histogram2d dispatcher. - Replace contextlib.suppress for Python 2.7 - fix compilation of 3rd party modules with Py_LIMITED_API... - Fix memory leak in dtype from dict contructor - Document array_function at a higher level. - add new recfunctions to __all__ - Remove stray print that causes a SystemError on python 3.7 - Pin pytest version to 5.0.1. - Enable huge pages in all Linux builds - fix behavior of structured_to_unstructured @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.61 2019/06/14 14:33:07 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.16.5 @ 1.61 log @py-numpy: updated to 1.16.4 1.16.4: BUG: Some PyPy versions lack PyStructSequence_InitType2. MAINT, DEP: Fix deprecated ``assertEquals()`` BUG: Fix structured_to_unstructured on single-field types (backport) BLD: Make CI pass again with pytest 4.5 TST: Register markers in conftest.py. BUG: Removes ValueError for empty kwargs in arraymultiter_new BUG: Add TypeError to accepted exceptions in crackfortran. BUG: Handle subarrays in descr_to_dtype BUG: Protect generators from log(0.0) BUG: Always return views from structured_to_unstructured when... BUG: Catch stderr when checking compiler version BUG: longdouble(int) does not work BUG: distutils/system_info.py fix missing subprocess import BUG,DEP: Fix writeable flag setting for arrays without base MAINT: Prepare for the 1.16.4 release. BUG: special case object arrays when printing rel-, abs-error @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.60 2019/04/24 10:09:59 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.16.4 d51 1 @ 1.60 log @py-numpy: updated to 1.16.3 1.16.3: Pull requests merged BUG: Fixes to numpy.distutils.Configuration.get_version BUG: Fix errors in string formatting while producing an error BUG: Convert fortran flags in environment variable BUG: Remove error-prone borrowed reference handling BUG: Add error checks when converting integers to datetime types BUG: Remove our patched version of `distutils.split_quoted` BUG: Fix testsuite failures on ppc and riscv BUG: Fix parameter validity checks in ``random.choice`` BUG: Ensure linspace works on object input. BLD: fix include list for sdist building. BUG: __array_interface__ offset was always ignored MAINT: f2py: Add a cast to avoid a compiler warning. BUG, MAINT: fix reference count error on invalid input to ndarray.flat ENH: Cast covariance to double in random mvnormal BUG: Fix null pointer dereference in PyArray_DTypeFromObjectHelper BUG: Use C call to sysctlbyname for AVX detection on MacOS. BUG: Fix crash when calling savetxt on a padded array BUG: ufunc.at iteration variable size fix DOC: Add as_ctypes_type to the documentation BUG: Return the coefficients array directly BUG/MAINT: Tidy typeinfo.h and .c BUG: Make allow_pickle=False the default for loading DOC: fix some doctest failures BUG/MAINT: Tidy typeinfo.h and .c BLD: address mingw-w64 issue. Follow-up to gh-9977 REL: Prepare for the NumPy release. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.59 2019/03/04 09:09:46 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.16.3 d25 1 a25 1 .if defined(PKGSRC_FORTRAN) && !empty(PKGSRC_FORTRAN:Mg95) d27 1 a27 1 .elif defined(PKGSRC_FORTRAN) && !empty(PKGSRC_FORTRAN:Mgfortran) d48 1 @ 1.59 log @py-numpy: updated to 1.16.2 1.16.2: TST: fix vmImage dispatch in Azure MAINT: remove complicated test of multiarray import failure mode BUG: fix signed zero behavior in npy_divmod MAINT: Add functions to parse shell-strings in the platform-native... BUG: Fix regression in parsing of F90 and F77 environment variables BUG: parse shell escaping in extra_compile_args and extra_link_args BLD: Windows absolute path DLL loading @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.58 2019/02/01 09:24:24 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.16.2 @ 1.58 log @py-numpy: updated to 1.16.1 1.16.1: * BUG: Check paths are unicode, bytes or path-like * ENH: add mm->q floordiv * ENH: port np.core.overrides to C for speed * BUG: Ensure probabilities are not NaN in choice * MAINT: add warning to numpy.distutils for LDFLAGS append behavior. * ENH: add "max difference" messages to np.testing.assert_array_equal... * BUG: Fix incorrect/missing reference cleanups found using valgrind that wraps subprocess * DOC, TST: Clean up matplotlib imports * BUG: Fix reference counting for subarrays containing objects * BUG: Ensure failing memory allocations are reported * BUG: Fix leak of void scalar buffer info * MAINT: Change the order of checking for local file. * BUG: loosen kwargs requirements in ediff1d * DOC: clarify the extend of __array_function__ support in NumPy... * BUG: Check that dtype or formats arguments are not None. * BUG: fix f2py problem to build wrappers using PGI's Fortran * BUG: double decref of dtype in failure codepath. Test and fix * BUG, DOC: test, fix that f2py.compile accepts str and bytes,... * BUG: resolve writeback in arr_insert failure paths * ENH: Add mm->qm divmod * BUG: Fix SystemError when pickling datetime64 array with pickle5 * BUG: Fix rounding of denormals in double and float to half casts. * TEST: pin mingw version * BUG: ndarrays pickled by 1.16 cannot be loaded by 1.15.4 and... * BUG: do not Py_DECREF NULL pointer * ENH: add _dtype_ctype to namespace for freeze analysis * BUG: fail if old multiarray module detected * BUG: Do not double-quote arguments passed on to the linker * BUG: Do not insert extra double quote into preprocessor macros @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.57 2019/01/15 21:36:57 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.16.1 @ 1.57 log @py-numpy: updated to 1.16.0 NumPy 1.16.0 Release Notes This NumPy release is the last one to support Python 2.7 and will be maintained as a long term release with bug fixes until 2020. Support for Python 3.4 been dropped, the supported Python versions are 2.7 and 3.5-3.7. The wheels on PyPI are linked with OpenBLAS v0.3.4+, which should fix the known threading issues found in previous OpenBLAS versions. Downstream developers building this release should use Cython >= 0.29 and, if using OpenBLAS, OpenBLAS > v0.3.4. This release has seen a lot of refactoring and features many bug fixes, improved code organization, and better cross platform compatibility. Not all of these improvements will be visible to users, but they should help make maintenance easier going forward. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.56 2018/11/05 09:23:26 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.16.0 @ 1.56 log @py-numpy: updated to 1.15.4 NumPy 1.15.4: This is a bugfix release for bugs and regressions reported following the 1.15.3 release. The Python versions supported by this release are 2.7, 3.4-3.7. The wheels are linked with OpenBLAS v0.3.0, which should fix some of the linalg problems reported for NumPy 1.14. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.55 2018/10/31 13:13:20 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.15.4 @ 1.55 log @py-numpy: updated to 1.15.3 NumPy 1.15.3: This is a bugfix release for bugs and regressions reported following the 1.15.2 release. The Python versions supported by this release are 2.7, 3.4-3.7. The wheels are linked with OpenBLAS v0.3.0, which should fix some of the linalg problems reported for NumPy 1.14. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.54 2018/09/24 09:01:20 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.15.3 @ 1.54 log @py-numpy: updated to 1.15.2 NumPy 1.15.2: This is a bugfix release for bugs and regressions reported following the 1.15.1 release. * The matrix PendingDeprecationWarning is now suppressed in pytest 3.8. * The new cached allocations machinery has been fixed to be thread safe. * The boolean indexing of subclasses now works correctly. * A small memory leak in PyArray_AdaptFlexibleDType has been fixed. The Python versions supported by this release are 2.7, 3.4-3.7. The wheels are linked with OpenBLAS v0.3.0, which should fix some of the linalg problems reported for NumPy 1.14. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.53 2018/08/27 06:04:35 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.15.2 @ 1.53 log @py-numpy: updated to 1.15.1 NumPy 1.15.1: This is a bugfix release for bugs and regressions reported following the 1.15.0 release. * The annoying but harmless RuntimeWarning that "numpy.dtype size changed" has been suppressed. The long standing suppression was lost in the transition to pytest. * The update to Cython 0.28.3 exposed a problematic use of a gcc attribute used to prefer code size over speed in module initialization, possibly resulting in incorrect compiled code. This has been fixed in latest Cython but has been disabled here for safety. * Support for big-endian and ARMv8 architectures has been improved. The Python versions supported by this release are 2.7, 3.4-3.7. The wheels are linked with OpenBLAS v0.3.0, which should fix some of the linalg problems reported for NumPy 1.14. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.52 2018/08/10 08:59:08 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.15.1 @ 1.52 log @py-numpy: updated to 1.15.0 NumPy 1.15.0 is a release with an unusual number of cleanups, many deprecations of old functions, and improvements to many existing functions. Please read the detailed descriptions below to see if you are affected. For testing, we have switched to pytest as a replacement for the no longer maintained nose framework. The old nose based interface remains for downstream projects who may still be using it. The Python versions supported by this release are 2.7, 3.4-3.7. The wheels are linked with OpenBLAS v0.3.0, which should fix some of the linalg problems reported for NumPy 1.14. Highlights: - NumPy has switched to pytest for testing. - A new numpy.printoptions context manager. - Many improvements to the histogram functions. - Support for unicode field names in python 2.7. - Improved support for PyPy. - Fixes and improvements to numpy.einsum. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.51 2018/06/18 06:47:03 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.15.0 d45 1 a45 3 cd ${DESTDIR}${PREFIX}/bin && ${RM} f2py && \ ${MV} conv-template conv-template${PYVERSSUFFIX} && \ ${MV} from-template from-template${PYVERSSUFFIX} || ${TRUE} @ 1.51 log @py-numpy: updated to 1.14.5 NumPy 1.14.5: This is a bugfix release for bugs reported following the 1.14.4 release. The most significant fixes are: * fixes for compilation errors on alpine and NetBSD @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.50 2018/06/10 12:56:54 wen Exp $ d3 1 a3 1 DISTNAME= numpy-1.14.5 d14 3 d44 4 a47 2 # TEST_DEPENDS BUILD_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose @ 1.50 log @Update to 1.14.4 Upstream changes: NumPy 1.14.4 Release Notes This is a bugfix release for bugs reported following the 1.14.3 release. The most significant fixes are: fixes for compiler instruction reordering that resulted in NaN's not being properly propagated in np.max and np.min, fixes for bus faults on SPARC and older ARM due to incorrect alignment checks. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.49 2018/05/16 06:53:18 minskim Exp $ d3 1 a3 1 DISTNAME= numpy-1.14.4 @ 1.49 log @math/py-numpy: Bump PKGREVISION for the new patch The patch to turn off debugging options has changed the binary package of py-numpy. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.48 2018/05/02 04:42:25 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.14.3 a4 1 PKGREVISION= 1 @ 1.48 log @py-numpy: updated to 1.14.3 NumPy 1.14.3: This is a bugfix release for a few bugs reported following the 1.14.2 release: - np.lib.recfunctions.fromrecords accepts a list-of-lists, until 1.15 - In python2, float types use the new print style when printing to a file - style arg in "legacy" print mode now works for 0d arrays @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.47 2018/03/13 11:34:08 adam Exp $ d5 1 @ 1.47 log @py-numpy: updated to 1.14.2 1.14.2: This is a bugfix release for some bugs reported following the 1.14.1 release. The major problems dealt with are as follows. Residual bugs in the new array printing functionality. Regression resulting in a relocation problem with shared library. Improved PyPy compatibility. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.46 2018/02/22 10:50:47 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.14.2 @ 1.46 log @py-numpy: updated to 1.14.1 NumPy 1.14.1 Release Notes This is a bugfix release for some problems reported following the 1.14.0 release. The major problems fixed are the following. Problems with the new array printing, particularly the printing of complex values, Please report any additional problems that may turn up. Problems with np.einsum due to the new optimized=True default. Some fixes for optimization have been applied and optimize=False is now the default. The sort order in np.unique when axis= will now always be lexicographic in the subarray elements. In previous NumPy versions there was an optimization that could result in sorting the subarrays as unsigned byte strings. The change in 1.14.0 that multi-field indexing of structured arrays returns a view instead of a copy has been reverted but remains on track for NumPy 1.15. Affected users should read the 1.14.1 Numpy User Guide section "basics/structured arrays/accessing multiple fields" for advice on how to manage this transition. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.45 2018/01/10 08:31:24 adam Exp $ d3 1 a3 2 DISTNAME= numpy-1.14.1 GITHUB_PROJECT= numpy d6 2 a7 2 MASTER_SITES= ${MASTER_SITE_GITHUB:=numpy/} GITHUB_TAG= v${PKGVERSION_NOREV} @ 1.45 log @py-numpy: updated to 1.14.0 NumPy 1.14.0 Release Notes Numpy 1.14.0 is the result of seven months of work and contains a large number of bug fixes and new features, along with several changes with potential compatibility issues. The major change that users will notice are the stylistic changes in the way numpy arrays and scalars are printed, a change that will affect doctests. See below for details on how to preserve the old style printing when needed. A major decision affecting future development concerns the schedule for dropping Python 2.7 support in the runup to 2020. The decision has been made to support 2.7 for all releases made in 2018, with the last release being designated a long term release with support for bug fixes extending through 2019. In 2019 support for 2.7 will be dropped in all new releases. More details can be found in the relevant NEP_. This release supports Python 2.7 and 3.4 - 3.6. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.44 2017/10/05 08:21:27 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.14.0 @ 1.44 log @py-numpy: update to 1.13.3 NumPy 1.13.3: This is a bugfix release for some problems found since 1.13.1. The most important fixes are for CVE-2017-12852 and temporary elision. Users of earlier versions of 1.13 should upgrade. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.43 2017/07/07 04:21:10 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.13.3 @ 1.43 log @1.13.1: Bug fixes. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.42 2017/06/15 07:02:53 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.13.1 @ 1.43.4.1 log @Pullup ticket #5564 - requested by sevan math/py-numpy: security update Revisions pulled up: - math/py-numpy/Makefile 1.44 - math/py-numpy/distinfo 1.25 - math/py-numpy/patches/patch-numpy_distutils_fcompiler_gnu.py 1.13 ------------------------------------------------------------------- Module Name: pkgsrc Committed By: adam Date: Thu Oct 5 08:21:27 UTC 2017 Modified Files: pkgsrc/math/py-numpy: Makefile distinfo pkgsrc/math/py-numpy/patches: patch-numpy_distutils_fcompiler_gnu.py Log Message: py-numpy: update to 1.13.3 NumPy 1.13.3: This is a bugfix release for some problems found since 1.13.1. The most important fixes are for CVE-2017-12852 and temporary elision. Users of earlier versions of 1.13 should upgrade. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 pkgsrc/math/py-numpy/Makefile cvs rdiff -u -r1.24 -r1.25 pkgsrc/math/py-numpy/distinfo cvs rdiff -u -r1.12 -r1.13 \ pkgsrc/math/py-numpy/patches/patch-numpy_distutils_fcompiler_gnu.py @ text @d1 1 a1 1 # $NetBSD$ d3 1 a3 1 DISTNAME= numpy-1.13.3 @ 1.42 log @NumPy 1.13.0 Highlights * Operations like a + b + c will reuse temporaries on some platforms, resulting in less memory use and faster execution. * Inplace operations check if inputs overlap outputs and create temporaries to avoid problems. * New __array_ufunc__ attribute provides improved ability for classes to override default ufunc behavior. * New np.block function for creating blocked arrays. New functions * New np.positive ufunc. * New np.divmod ufunc provides more efficient divmod. * New np.isnat ufunc tests for NaT special values. * New np.heaviside ufunc computes the Heaviside function. * New np.isin function, improves on in1d. * New np.block function for creating blocked arrays. * New PyArray_MapIterArrayCopyIfOverlap added to NumPy C-API. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.41 2017/03/24 19:22:27 joerg Exp $ d3 1 a3 1 DISTNAME= numpy-1.13.0 @ 1.41 log @Check the version number part of the matched string and not the whole string, otherwise the result is somewhat random. Bump revision again. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.40 2017/03/24 15:12:30 joerg Exp $ d3 1 a3 1 DISTNAME= numpy-1.12.1 a5 1 PKGREVISION= 2 @ 1.40 log @Restore basic g95 support. Bump revision. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.39 2017/03/20 13:50:01 wiz Exp $ d6 1 a6 1 PKGREVISION= 1 @ 1.39 log @Updated py-numpy to 1.12.1. NumPy 1.12.1 supports Python 2.7 and 3.4 - 3.6 and fixes bugs and regressions found in NumPy 1.12.0. In particular, the regression in f2py constant parsing is fixed. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.38 2017/01/22 14:43:24 wiz Exp $ d6 1 @ 1.38 log @Updated py-numpy to 1.12.0. FAILED (KNOWNFAIL=8, SKIP=9, errors=1, failures=1) ========================== NumPy 1.12.0 Release Notes ========================== This release supports Python 2.7 and 3.4 - 3.6. Highlights ========== The NumPy 1.12.0 release contains a large number of fixes and improvements, but few that stand out above all others. That makes picking out the highlights somewhat arbitrary but the following may be of particular interest or indicate areas likely to have future consequences. * Order of operations in ``np.einsum`` can now be optimized for large speed improvements. * New ``signature`` argument to ``np.vectorize`` for vectorizing with core dimensions. * The ``keepdims`` argument was added to many functions. * New context manager for testing warnings * Support for BLIS in numpy.distutils * Much improved support for PyPy (not yet finished) Dropped Support =============== * Support for Python 2.6, 3.2, and 3.3 has been dropped. Added Support ============= * Support for PyPy 2.7 v5.6.0 has been added. While not complete (nditer ``updateifcopy`` is not supported yet), this is a milestone for PyPy's C-API compatibility layer. Build System Changes ==================== * Library order is preserved, instead of being reordered to match that of the directories. Deprecations ============ Assignment of ndarray object's ``data`` attribute ------------------------------------------------- Assigning the 'data' attribute is an inherently unsafe operation as pointed out in gh-7083. Such a capability will be removed in the future. Unsafe int casting of the num attribute in ``linspace`` ------------------------------------------------------- ``np.linspace`` now raises DeprecationWarning when num cannot be safely interpreted as an integer. Insufficient bit width parameter to ``binary_repr`` --------------------------------------------------- If a 'width' parameter is passed into ``binary_repr`` that is insufficient to represent the number in base 2 (positive) or 2's complement (negative) form, the function used to silently ignore the parameter and return a representation using the minimal number of bits needed for the form in question. Such behavior is now considered unsafe from a user perspective and will raise an error in the future. Future Changes ============== * In 1.13 NAT will always compare False except for ``NAT != NAT``, which will be True. In short, NAT will behave like NaN * In 1.13 np.average will preserve subclasses, to match the behavior of most other numpy functions such as np.mean. In particular, this means calls which returned a scalar may return a 0-d subclass object instead. Multiple-field manipulation of structured arrays ------------------------------------------------ In 1.13 the behavior of structured arrays involving multiple fields will change in two ways: First, indexing a structured array with multiple fields (eg, ``arr[['f1', 'f3']]``) will return a view into the original array in 1.13, instead of a copy. Note the returned view will have extra padding bytes corresponding to intervening fields in the original array, unlike the copy in 1.12, which will affect code such as ``arr[['f1', 'f3']].view(newdtype)``. Second, for numpy versions 1.6 to 1.12 assignment between structured arrays occurs "by field name": Fields in the destination array are set to the identically-named field in the source array or to 0 if the source does not have a field:: >>> a = np.array([(1,2),(3,4)], dtype=[('x', 'i4'), ('y', 'i4')]) >>> b = np.ones(2, dtype=[('z', 'i4'), ('y', 'i4'), ('x', 'i4')]) >>> b[:] = a >>> b array([(0, 2, 1), (0, 4, 3)], dtype=[('z', '`. This allows for vectorizing a much broader class of functions. For example, an arbitrary distance metric that combines two vectors to produce a scalar could be vectorized with ``signature='(n),(n)->()'``. See ``np.vectorize`` for full details. Emit py3kwarnings for division of integer arrays ------------------------------------------------ To help people migrate their code bases from Python 2 to Python 3, the python interpreter has a handy option -3, which issues warnings at runtime. One of its warnings is for integer division:: $ python -3 -c "2/3" -c:1: DeprecationWarning: classic int division In Python 3, the new integer division semantics also apply to numpy arrays. With this version, numpy will emit a similar warning:: $ python -3 -c "import numpy as np; np.array(2)/np.array(3)" -c:1: DeprecationWarning: numpy: classic int division numpy.sctypes now includes bytes on Python3 too ----------------------------------------------- Previously, it included str (bytes) and unicode on Python2, but only str (unicode) on Python3. Improvements ============ ``bitwise_and`` identity changed -------------------------------- The previous identity was 1 with the result that all bits except the LSB were masked out when the reduce method was used. The new identity is -1, which should work properly on twos complement machines as all bits will be set to one. Generalized Ufuncs will now unlock the GIL ------------------------------------------ Generalized Ufuncs, including most of the linalg module, will now unlock the Python global interpreter lock. Caches in `np.fft` are now bounded in total size and item count --------------------------------------------------------------- The caches in `np.fft` that speed up successive FFTs of the same length can no longer grow without bounds. They have been replaced with LRU (least recently used) caches that automatically evict no longer needed items if either the memory size or item count limit has been reached. Improved handling of zero-width string/unicode dtypes ----------------------------------------------------- Fixed several interfaces that explicitly disallowed arrays with zero-width string dtypes (i.e. ``dtype('S0')`` or ``dtype('U0')``, and fixed several bugs where such dtypes were not handled properly. In particular, changed ``ndarray.__new__`` to not implicitly convert ``dtype('S0')`` to ``dtype('S1')`` (and likewise for unicode) when creating new arrays. Integer ufuncs vectorized with AVX2 ----------------------------------- If the cpu supports it at runtime the basic integer ufuncs now use AVX2 instructions. This feature is currently only available when compiled with GCC. Order of operations optimization in ``np.einsum`` -------------------------------------------------- ``np.einsum`` now supports the ``optimize`` argument which will optimize the order of contraction. For example, ``np.einsum`` would complete the chain dot example ``np.einsum(‘ij,jk,kl->il’, a, b, c)`` in a single pass which would scale like ``N^4``; however, when ``optimize=True`` ``np.einsum`` will create an intermediate array to reduce this scaling to ``N^3`` or effectively ``np.dot(a, b).dot(c)``. Usage of intermediate tensors to reduce scaling has been applied to the general einsum summation notation. See ``np.einsum_path`` for more details. quicksort has been changed to an introsort ------------------------------------------ The quicksort kind of ``np.sort`` and ``np.argsort`` is now an introsort which is regular quicksort but changing to a heapsort when not enough progress is made. This retains the good quicksort performance while changing the worst case runtime from ``O(N^2)`` to ``O(N*log(N))``. ``ediff1d`` improved performance and subclass handling ------------------------------------------------------ The ediff1d function uses an array instead on a flat iterator for the subtraction. When to_begin or to_end is not None, the subtraction is performed in place to eliminate a copy operation. A side effect is that certain subclasses are handled better, namely astropy.Quantity, since the complete array is created, wrapped, and then begin and end values are set, instead of using concatenate. Improved precision of ``ndarray.mean`` for float16 arrays --------------------------------------------------------- The computation of the mean of float16 arrays is now carried out in float32 for improved precision. This should be useful in packages such as Theano where the precision of float16 is adequate and its smaller footprint is desireable. Changes ======= All array-like methods are now called with keyword arguments in fromnumeric.py ------------------------------------------------------------------------------ Internally, many array-like methods in fromnumeric.py were being called with positional arguments instead of keyword arguments as their external signatures were doing. This caused a complication in the downstream 'pandas' library that encountered an issue with 'numpy' compatibility. Now, all array-like methods in this module are called with keyword arguments instead. Operations on np.memmap objects return numpy arrays in most cases ----------------------------------------------------------------- Previously operations on a memmap object would misleadingly return a memmap instance even if the result was actually not memmapped. For example, ``arr + 1`` or ``arr + arr`` would return memmap instances, although no memory from the output array is memmaped. Version 1.12 returns ordinary numpy arrays from these operations. Also, reduction of a memmap (e.g. ``.sum(axis=None``) now returns a numpy scalar instead of a 0d memmap. stacklevel of warnings increased -------------------------------- The stacklevel for python based warnings was increased so that most warnings will report the offending line of the user code instead of the line the warning itself is given. Passing of stacklevel is now tested to ensure that new warnings will receive the ``stacklevel`` argument. This causes warnings with the "default" or "module" filter to be shown once for every offending user code line or user module instead of only once. On python versions before 3.4, this can cause warnings to appear that were falsely ignored before, which may be surprising especially in test suits. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.37 2017/01/01 15:31:47 wiz Exp $ d3 1 a3 1 DISTNAME= numpy-1.12.0 @ 1.37 log @Updated py-numpy to 1.11.3. ========================== NumPy 1.11.3 Release Notes ========================== Numpy 1.11.3 fixes a bug that leads to file corruption when very large files opened in append mode are used in ``ndarray.tofile``. It supports Python versions 2.6 - 2.7 and 3.2 - 3.5. Wheels for Linux, Windows, and OS X can be found on PyPI. Contributors to maintenance/1.11.3 ================================== A total of 2 people contributed to this release. People with a "+" by their names contributed a patch for the first time. - Charles Harris - Pavel Potocek + Pull Requests Merged ==================== - `#8341 `__: BUG: Fix ndarray.tofile large file corruption in append mode. - `#8346 `__: TST: Fix tests in PR #8341 for NumPy 1.11.x @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.36 2016/12/12 14:36:22 wiz Exp $ d3 1 a3 1 DISTNAME= numpy-1.11.3 @ 1.36 log @MAKE_ENV is in OPSYSVARS -- simplify previous. Thanks, jperkin! @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.35 2016/12/12 14:23:47 wiz Exp $ d3 1 a3 1 DISTNAME= numpy-1.11.2 @ 1.35 log @Wrap DragonFly specific workaround in .if ${OPSYS} == "DragonFly" @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.34 2016/12/04 22:51:55 marino Exp $ a36 1 .if ${OPSYS} == "DragonFly" d40 1 a40 2 MAKE_ENV+= LDVER=ld.bfd .endif @ 1.34 log @math/py-numpy: Restore build on DragonFly Linking lapack with the gold linker fails with this error: fatal error: --sysroot=: must take a non-empty argument Similar to recent fixes to math/blas and math/lapack @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.33 2016/10/31 16:26:57 wiz Exp $ a19 6 # numpy fails using the gold linker with: # fatal error: --sysroot=: must take a non-empty argument # Work around it on DragonFly by specifying the classic gnu linker MAKE_ENV+= LDVER=ld.bfd d37 7 @ 1.33 log @Updated py-numpy to 1.11.2. NumPy 1.11.2 Release Notes ************************** Numpy 1.11.2 supports Python 2.6 - 2.7 and 3.2 - 3.5. It fixes bugs and regressions found in Numpy 1.11.1 and includes several build related improvements. Wheels for Linux, Windows, and OS X can be found on PyPI. Pull Requests Merged ==================== Fixes overridden by later merges and release notes updates are omitted. - #7736 BUG: Many functions silently drop 'keepdims' kwarg. - #7738 ENH: Add extra kwargs and update doc of many MA methods. - #7778 DOC: Update Numpy 1.11.1 release notes. - #7793 BUG: MaskedArray.count treats negative axes incorrectly. - #7816 BUG: Fix array too big error for wide dtypes. - #7821 BUG: Make sure npy_mul_with_overflow_ detects overflow. - #7824 MAINT: Allocate fewer bytes for empty arrays. - #7847 MAINT,DOC: Fix some imp module uses and update f2py.compile docstring. - #7849 MAINT: Fix remaining uses of deprecated Python imp module. - #7851 BLD: Fix ATLAS version detection. - #7896 BUG: Construct ma.array from np.array which contains padding. - #7904 BUG: Fix float16 type not being called due to wrong ordering. - #7917 BUG: Production install of numpy should not require nose. - #7919 BLD: Fixed MKL detection for recent versions of this library. - #7920 BUG: Fix for issue #7835 (ma.median of 1d). - #7932 BUG: Monkey-patch _msvccompile.gen_lib_option like other compilers. - #7939 BUG: Check for HAVE_LDOUBLE_DOUBLE_DOUBLE_LE in npy_math_complex. - #7953 BUG: Guard against buggy comparisons in generic quicksort. - #7954 BUG: Use keyword arguments to initialize Extension base class. - #7955 BUG: Make sure numpy globals keep identity after reload. - #7972 BUG: MSVCCompiler grows 'lib' & 'include' env strings exponentially. - #8005 BLD: Remove __NUMPY_SETUP__ from builtins at end of setup.py. - #8010 MAINT: Remove leftover imp module imports. - #8020 BUG: Fix return of np.ma.count if keepdims is True and axis is None. - #8024 BUG: Fix numpy.ma.median. - #8031 BUG: Fix np.ma.median with only one non-masked value. - #8044 BUG: Fix bug in NpyIter buffering with discontinuous arrays. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.32 2016/08/28 15:48:33 wiz Exp $ d20 6 @ 1.32 log @Remove unnecessary PLIST_SUBST and FILES_SUBST that are now provided by the infrastructure. Mark a couple more packages as not ready for python-3.x. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.31 2016/08/23 22:45:05 wiz Exp $ d3 1 a3 1 DISTNAME= numpy-1.11.1 @ 1.31 log @py-nose test dependency. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.30 2016/08/02 10:14:46 jperkin Exp $ a15 1 PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} @ 1.30 log @Fix build, this package now needs py-cython and egg.mk @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.29 2016/07/24 15:25:22 kamil Exp $ d38 3 a40 1 # needs devel/py-nose @ 1.29 log @Upgrade py-numpy from 1.9.2 to 1.11.1 pkgsrc changes: - swich to the GITHUB framework - add functional test target - update local patches upstream changes: NumPy 1.11.1 Release Notes Numpy 1.11.1 supports Python 2.6 - 2.7 and 3.2 - 3.5. It fixes bugs and regressions found in Numpy 1.11.0 and includes several build related improvements. Wheels for Linux, Windows, and OSX can be found on pypi. Fixes Merged #7506 BUG: Make sure numpy imports on python 2.6 when nose is unavailable. #7530 BUG: Floating exception with invalid axis in np.lexsort. #7535 BUG: Extend glibc complex trig functions blacklist to glibc < 2.18. #7551 BUG: Allow graceful recovery for no compiler. #7558 BUG: Constant padding expected wrong type in constant_values. #7578 BUG: Fix OverflowError in Python 3.x. in swig interface. #7590 BLD: Fix configparser.InterpolationSyntaxError. #7597 BUG: Make np.ma.take work on scalars. #7608 BUG: linalg.norm(): Don't convert object arrays to float. #7638 BLD: Correct C compiler customization in system_info.py. #7654 BUG: ma.median of 1d array should return a scalar. #7656 BLD: Remove hardcoded Intel compiler flag -xSSE4.2. #7660 BUG: Temporary fix for str(mvoid) for object field types. #7665 BUG: Fix incorrect printing of 1D masked arrays. #7670 BUG: Correct initial index estimate in histogram. #7671 BUG: Boolean assignment no GIL release when transfer needs API. #7676 BUG: Fix handling of right edge of final histogram bin. #7680 BUG: Fix np.clip bug NaN handling for Visual Studio 2015. #7724 BUG: Fix segfaults in np.random.shuffle. #7731 MAINT: Change mkl_info.dir_env_var from MKL to MKLROOT. #7737 BUG: Fix issue on OS X with Python 3.x, npymath.ini not installed. NumPy 1.11.0 Release Notes This release supports Python 2.6 - 2.7 and 3.2 - 3.5 and contains a number of enhancements and improvements. Note also the build system changes listed below as they may have subtle effects. No Windows (TM) binaries are provided for this release due to a broken toolchain. One of the providers of Python packages for Windows (TM) is your best bet. Highlights Details of these improvements can be found below. The datetime64 type is now timezone naive. A dtype parameter has been added to randint. Improved detection of two arrays possibly sharing memory. Automatic bin size estimation for np.histogram. Speed optimization of A @@ A.T and dot(A, A.T). New function np.moveaxis for reordering array axes. Build System Changes Numpy now uses setuptools for its builds instead of plain distutils. This fixes usage of install_requires='numpy' in the setup.py files of projects that depend on Numpy (see gh-6551). It potentially affects the way that build/install methods for Numpy itself behave though. Please report any unexpected behavior on the Numpy issue tracker. Bento build support and related files have been removed. Single file build support and related files have been removed. Future Changes The following changes are scheduled for Numpy 1.12.0. Support for Python 2.6, 3.2, and 3.3 will be dropped. Relaxed stride checking will become the default. See the 1.8.0 release notes for a more extended discussion of what this change implies. The behavior of the datetime64 "not a time" (NaT) value will be changed to match that of floating point "not a number" (NaN) values: all comparisons involving NaT will return False, except for NaT != NaT which will return True. Indexing with floats will raise IndexError, e.g., a[0, 0.0]. Indexing with non-integer array_like will raise IndexError, e.g., a['1', '2'] Indexing with multiple ellipsis will raise IndexError, e.g., a[..., ...]. Non-integers used as index values will raise TypeError, e.g., in reshape, take, and specifying reduce axis. In a future release the following changes will be made. The rand function exposed in numpy.testing will be removed. That function is left over from early Numpy and was implemented using the Python random module. The random number generators from numpy.random should be used instead. The ndarray.view method will only allow c_contiguous arrays to be viewed using a dtype of different size causing the last dimension to change. That differs from the current behavior where arrays that are f_contiguous but not c_contiguous can be viewed as a dtype type of different size causing the first dimension to change. Slicing a MaskedArray will return views of both data and mask. Currently the mask is copy-on-write and changes to the mask in the slice do not propagate to the original mask. See the FutureWarnings section below for details. Compatibility notes datetime64 changes In prior versions of NumPy the experimental datetime64 type always stored times in UTC. By default, creating a datetime64 object from a string or printing it would convert from or to local time: # old behavior >>>> np.datetime64('2000-01-01T00:00:00') numpy.datetime64('2000-01-01T00:00:00-0800') # note the timezone offset -08:00 A consensus of datetime64 users agreed that this behavior is undesirable and at odds with how datetime64 is usually used (e.g., by pandas). For most use cases, a timezone naive datetime type is preferred, similar to the datetime.datetime type in the Python standard library. Accordingly, datetime64 no longer assumes that input is in local time, nor does it print local times: >>>> np.datetime64('2000-01-01T00:00:00') numpy.datetime64('2000-01-01T00:00:00') For backwards compatibility, datetime64 still parses timezone offsets, which it handles by converting to UTC. However, the resulting datetime is timezone naive: >>> np.datetime64('2000-01-01T00:00:00-08') DeprecationWarning: parsing timezone aware datetimes is deprecated; this will raise an error in the future numpy.datetime64('2000-01-01T08:00:00') As a corollary to this change, we no longer prohibit casting between datetimes with date units and datetimes with time units. With timezone naive datetimes, the rule for casting from dates to times is no longer ambiguous. linalg.norm return type changes The return type of the linalg.norm function is now floating point without exception. Some of the norm types previously returned integers. polynomial fit changes The various fit functions in the numpy polynomial package no longer accept non-integers for degree specification. np.dot now raises TypeError instead of ValueError This behaviour mimics that of other functions such as np.inner. If the two arguments cannot be cast to a common type, it could have raised a TypeError or ValueError depending on their order. Now, np.dot will now always raise a TypeError. FutureWarning to changed behavior In np.lib.split an empty array in the result always had dimension (0,) no matter the dimensions of the array being split. This has been changed so that the dimensions will be preserved. A FutureWarning for this change has been in place since Numpy 1.9 but, due to a bug, sometimes no warning was raised and the dimensions were already preserved. % and // operators These operators are implemented with the remainder and floor_divide functions respectively. Those functions are now based around fmod and are computed together so as to be compatible with each other and with the Python versions for float types. The results should be marginally more accurate or outright bug fixes compared to the previous results, but they may differ significantly in cases where roundoff makes a difference in the integer returned by floor_divide. Some corner cases also change, for instance, NaN is always returned for both functions when the divisor is zero, divmod(1.0, inf) returns (0.0, 1.0) except on MSVC 2008, and divmod(-1.0, inf) returns (-1.0, inf). C API Removed the check_return and inner_loop_selector members of the PyUFuncObject struct (replacing them with reserved slots to preserve struct layout). These were never used for anything, so it's unlikely that any third-party code is using them either, but we mention it here for completeness. object dtype detection for old-style classes In python 2, objects which are instances of old-style user-defined classes no longer automatically count as 'object' type in the dtype-detection handler. Instead, as in python 3, they may potentially count as sequences, but only if they define both a __len__ and a __getitem__ method. This fixes a segfault and inconsistency between python 2 and 3. New Features np.histogram now provides plugin estimators for automatically estimating the optimal number of bins. Passing one of ['auto', 'fd', 'scott', 'rice', 'sturges'] as the argument to 'bins' results in the corresponding estimator being used. A benchmark suite using Airspeed Velocity has been added, converting the previous vbench-based one. You can run the suite locally via python runtests.py --bench. For more details, see benchmarks/README.rst. A new function np.shares_memory that can check exactly whether two arrays have memory overlap is added. np.may_share_memory also now has an option to spend more effort to reduce false positives. SkipTest and KnownFailureException exception classes are exposed in the numpy.testing namespace. Raise them in a test function to mark the test to be skipped or mark it as a known failure, respectively. f2py.compile has a new extension keyword parameter that allows the fortran extension to be specified for generated temp files. For instance, the files can be specifies to be *.f90. The verbose argument is also activated, it was previously ignored. A dtype parameter has been added to np.random.randint Random ndarrays of the following types can now be generated: np.bool, np.int8, np.uint8, np.int16, np.uint16, np.int32, np.uint32, np.int64, np.uint64, np.int_ ``, ``np.intp The specification is by precision rather than by C type. Hence, on some platforms np.int64 may be a long instead of long long even if the specified dtype is long long because the two may have the same precision. The resulting type depends on which C type numpy uses for the given precision. The byteorder specification is also ignored, the generated arrays are always in native byte order. A new np.moveaxis function allows for moving one or more array axes to a new position by explicitly providing source and destination axes. This function should be easier to use than the current rollaxis function as well as providing more functionality. The deg parameter of the various numpy.polynomial fits has been extended to accept a list of the degrees of the terms to be included in the fit, the coefficients of all other terms being constrained to zero. The change is backward compatible, passing a scalar deg will behave as before. A divmod function for float types modeled after the Python version has been added to the npy_math library. Improvements np.gradient now supports an axis argument The axis parameter was added to np.gradient for consistency. It allows to specify over which axes the gradient is calculated. np.lexsort now supports arrays with object data-type The function now internally calls the generic npy_amergesort when the type does not implement a merge-sort kind of argsort method. np.ma.core.MaskedArray now supports an order argument When constructing a new MaskedArray instance, it can be configured with an order argument analogous to the one when calling np.ndarray. The addition of this argument allows for the proper processing of an order argument in several MaskedArray-related utility functions such as np.ma.core.array and np.ma.core.asarray. Memory and speed improvements for masked arrays Creating a masked array with mask=True (resp. mask=False) now uses np.ones (resp. np.zeros) to create the mask, which is faster and avoid a big memory peak. Another optimization was done to avoid a memory peak and useless computations when printing a masked array. ndarray.tofile now uses fallocate on linux The function now uses the fallocate system call to reserve sufficient disk space on file systems that support it. Optimizations for operations of the form A.T @@ A and A @@ A.T Previously, gemm BLAS operations were used for all matrix products. Now, if the matrix product is between a matrix and its transpose, it will use syrk BLAS operations for a performance boost. This optimization has been extended to @@, numpy.dot, numpy.inner, and numpy.matmul. Note: Requires the transposed and non-transposed matrices to share data. np.testing.assert_warns can now be used as a context manager This matches the behavior of assert_raises. Speed improvement for np.random.shuffle np.random.shuffle is now much faster for 1d ndarrays. Changes Pyrex support was removed from numpy.distutils The method build_src.generate_a_pyrex_source will remain available; it has been monkeypatched by users to support Cython instead of Pyrex. It's recommended to switch to a better supported method of build Cython extensions though. np.broadcast can now be called with a single argument The resulting object in that case will simply mimic iteration over a single array. This change obsoletes distinctions like if len(x) == 1: shape = x[0].shape else: shape = np.broadcast(*x).shape Instead, np.broadcast can be used in all cases. np.trace now respects array subclasses This behaviour mimics that of other functions such as np.diagonal and ensures, e.g., that for masked arrays np.trace(ma) and ma.trace() give the same result. np.dot now raises TypeError instead of ValueError This behaviour mimics that of other functions such as np.inner. If the two arguments cannot be cast to a common type, it could have raised a TypeError or ValueError depending on their order. Now, np.dot will now always raise a TypeError. linalg.norm return type changes The linalg.norm function now does all its computations in floating point and returns floating results. This change fixes bugs due to integer overflow and the failure of abs with signed integers of minimum value, e.g., int8(-128). For consistancy, floats are used even where an integer might work. Deprecations Views of arrays in Fortran order The F_CONTIGUOUS flag was used to signal that views using a dtype that changed the element size would change the first index. This was always problematical for arrays that were both F_CONTIGUOUS and C_CONTIGUOUS because C_CONTIGUOUS took precedence. Relaxed stride checking results in more such dual contiguous arrays and breaks some existing code as a result. Note that this also affects changing the dtype by assigning to the dtype attribute of an array. The aim of this deprecation is to restrict views to C_CONTIGUOUS arrays at some future time. A work around that is backward compatible is to use a.T.view(...).T instead. A parameter may also be added to the view method to explicitly ask for Fortran order views, but that will not be backward compatible. Invalid arguments for array ordering It is currently possible to pass in arguments for the order parameter in methods like array.flatten or array.ravel that were not one of the following: 'C', 'F', 'A', 'K' (note that all of these possible values are both unicode and case insensitive). Such behavior will not be allowed in future releases. Random number generator in the testing namespace The Python standard library random number generator was previously exposed in the testing namespace as testing.rand. Using this generator is not recommended and it will be removed in a future release. Use generators from numpy.random namespace instead. Random integer generation on a closed interval In accordance with the Python C API, which gives preference to the half-open interval over the closed one, np.random.random_integers is being deprecated in favor of calling np.random.randint, which has been enhanced with the dtype parameter as described under "New Features". However, np.random.random_integers will not be removed anytime soon. FutureWarnings Assigning to slices/views of MaskedArray Currently a slice of a masked array contains a view of the original data and a copy-on-write view of the mask. Consequently, any changes to the slice's mask will result in a copy of the original mask being made and that new mask being changed rather than the original. For example, if we make a slice of the original like so, view = original[:], then modifications to the data in one array will affect the data of the other but, because the mask will be copied during assignment operations, changes to the mask will remain local. A similar situation occurs when explicitly constructing a masked array using MaskedArray(data, mask), the returned array will contain a view of data but the mask will be a copy-on-write view of mask. In the future, these cases will be normalized so that the data and mask arrays are treated the same way and modifications to either will propagate between views. In 1.11, numpy will issue a MaskedArrayFutureWarning warning whenever user code modifies the mask of a view that in the future may cause values to propagate back to the original. To silence these warnings and make your code robust against the upcoming changes, you have two options: if you want to keep the current behavior, call masked_view.unshare_mask() before modifying the mask. If you want to get the future behavior early, use masked_view._sharedmask = False. However, note that setting the _sharedmask attribute will break following explicit calls to masked_view.unshare_mask(). NumPy 1.10.4 Release Notes This release is a bugfix source release motivated by a segfault regression. No windows binaries are provided for this release, as there appear to be bugs in the toolchain we use to generate those files. Hopefully that problem will be fixed for the next release. In the meantime, we suggest using one of the providers of windows binaries. Compatibility notes The trace function now calls the trace method on subclasses of ndarray, except for matrix, for which the current behavior is preserved. This is to help with the units package of AstroPy and hopefully will not cause problems. Issues Fixed gh-6922 BUG: numpy.recarray.sort segfaults on Windows. gh-6937 BUG: busday_offset does the wrong thing with modifiedpreceding roll. gh-6949 BUG: Type is lost when slicing a subclass of recarray. Merged PRs The following PRs have been merged into 1.10.4. When the PR is a backport, the PR number for the original PR against master is listed. gh-6840 TST: Update travis testing script in 1.10.x gh-6843 BUG: Fix use of python 3 only FileNotFoundError in test_f2py. gh-6884 REL: Update pavement.py and setup.py to reflect current version. gh-6916 BUG: Fix test_f2py so it runs correctly in runtests.py. gh-6924 BUG: Fix segfault gh-6922. gh-6942 Fix datetime roll='modifiedpreceding' bug. gh-6943 DOC,BUG: Fix some latex generation problems. gh-6950 BUG trace is not subclass aware, np.trace(ma) != ma.trace(). gh-6952 BUG recarray slices should preserve subclass. NumPy 1.10.3 Release Notes N/A this release did not happen due to various screwups involving PyPi. NumPy 1.10.2 Release Notes This release deals with a number of bugs that turned up in 1.10.1 and adds various build and release improvements. Numpy 1.10.1 supports Python 2.6 - 2.7 and 3.2 - 3.5. Compatibility notes Relaxed stride checking is no longer the default There were back compatibility problems involving views changing the dtype of multidimensional Fortran arrays that need to be dealt with over a longer timeframe. Fix swig bug in numpy.i Relaxed stride checking revealed a bug in array_is_fortran(a), that was using PyArray_ISFORTRAN to check for Fortran contiguity instead of PyArray_IS_F_CONTIGUOUS. You may want to regenerate swigged files using the updated numpy.i Deprecate views changing dimensions in fortran order This deprecates assignment of a new descriptor to the dtype attribute of a non-C-contiguous array if it result in changing the shape. This effectively bars viewing a multidimensional Fortran array using a dtype that changes the element size along the first axis. The reason for the deprecation is that, when relaxed strides checking is enabled, arrays that are both C and Fortran contiguous are always treated as C contiguous which breaks some code that depended the two being mutually exclusive for non-scalar arrays of ndim > 1. This deprecation prepares the way to always enable relaxed stride checking. Issues Fixed gh-6019 Masked array repr fails for structured array with multi-dimensional column. gh-6462 Median of empty array produces IndexError. gh-6467 Performance regression for record array access. gh-6468 numpy.interp uses 'left' value even when x[0]==xp[0]. gh-6475 np.allclose returns a memmap when one of its arguments is a memmap. gh-6491 Error in broadcasting stride_tricks array. gh-6495 Unrecognized command line option '-ffpe-summary' in gfortran. gh-6497 Failure of reduce operation on recarrays. gh-6498 Mention change in default casting rule in 1.10 release notes. gh-6530 The partition function errors out on empty input. gh-6532 numpy.inner return wrong inaccurate value sometimes. gh-6563 Intent(out) broken in recent versions of f2py. gh-6569 Cannot run tests after 'python setup.py build_ext -i' gh-6572 Error in broadcasting stride_tricks array component. gh-6575 BUG: Split produces empty arrays with wrong number of dimensions gh-6590 Fortran Array problem in numpy 1.10. gh-6602 Random __all__ missing choice and dirichlet. gh-6611 ma.dot no longer always returns a masked array in 1.10. gh-6618 NPY_FORTRANORDER in make_fortran() in numpy.i gh-6636 Memory leak in nested dtypes in numpy.recarray gh-6641 Subsetting recarray by fields yields a structured array. gh-6667 ma.make_mask handles ma.nomask input incorrectly. gh-6675 Optimized blas detection broken in master and 1.10. gh-6678 Getting unexpected error from: X.dtype = complex (or Y = X.view(complex)) gh-6718 f2py test fail in pip installed numpy-1.10.1 in virtualenv. gh-6719 Error compiling Cython file: Pythonic division not allowed without gil. gh-6771 Numpy.rec.fromarrays losing dtype metadata between versions 1.9.2 and 1.10.1 gh-6781 The travis-ci script in maintenance/1.10.x needs fixing. gh-6807 Windows testing errors for 1.10.2 Merged PRs The following PRs have been merged into 1.10.2. When the PR is a backport, the PR number for the original PR against master is listed. gh-5773 MAINT: Hide testing helper tracebacks when using them with pytest. gh-6094 BUG: Fixed a bug with string representation of masked structured arrays. gh-6208 MAINT: Speedup field access by removing unneeded safety checks. gh-6460 BUG: Replacing the os.environ.clear by less invasive procedure. gh-6470 BUG: Fix AttributeError in numpy distutils. gh-6472 MAINT: Use Python 3.5 instead of 3.5-dev for travis 3.5 testing. gh-6474 REL: Update Paver script for sdist and auto-switch test warnings. gh-6478 BUG: Fix Intel compiler flags for OS X build. gh-6481 MAINT: LIBPATH with spaces is now supported Python 2.7+ and Win32. gh-6487 BUG: Allow nested use of parameters in definition of arrays in f2py. gh-6488 BUG: Extend common blocks rather than overwriting in f2py. gh-6499 DOC: Mention that default casting for inplace operations has changed. gh-6500 BUG: Recarrays viewed as subarrays don't convert to np.record type. gh-6501 REL: Add "make upload" command for built docs, update "make dist". gh-6526 BUG: Fix use of __doc__ in setup.py for -OO mode. gh-6527 BUG: Fix the IndexError when taking the median of an empty array. gh-6537 BUG: Make ma.atleast_* with scalar argument return arrays. gh-6538 BUG: Fix ma.masked_values does not shrink mask if requested. gh-6546 BUG: Fix inner product regression for non-contiguous arrays. gh-6553 BUG: Fix partition and argpartition error for empty input. gh-6556 BUG: Error in broadcast_arrays with as_strided array. gh-6558 MAINT: Minor update to "make upload" doc build command. gh-6562 BUG: Disable view safety checks in recarray. gh-6567 BUG: Revert some import * fixes in f2py. gh-6574 DOC: Release notes for Numpy 1.10.2. gh-6577 BUG: Fix for #6569, allowing build_ext --inplace gh-6579 MAINT: Fix mistake in doc upload rule. gh-6596 BUG: Fix swig for relaxed stride checking. gh-6606 DOC: Update 1.10.2 release notes. gh-6614 BUG: Add choice and dirichlet to numpy.random.__all__. gh-6621 BUG: Fix swig make_fortran function. gh-6628 BUG: Make allclose return python bool. gh-6642 BUG: Fix memleak in _convert_from_dict. gh-6643 ENH: make recarray.getitem return a recarray. gh-6653 BUG: Fix ma dot to always return masked array. gh-6668 BUG: ma.make_mask should always return nomask for nomask argument. gh-6686 BUG: Fix a bug in assert_string_equal. gh-6695 BUG: Fix removing tempdirs created during build. gh-6697 MAINT: Fix spurious semicolon in macro definition of PyArray_FROM_OT. gh-6698 TST: test np.rint bug for large integers. gh-6717 BUG: Readd fallback CBLAS detection on linux. gh-6721 BUG: Fix for #6719. gh-6726 BUG: Fix bugs exposed by relaxed stride rollback. gh-6757 BUG: link cblas library if cblas is detected. gh-6756 TST: only test f2py, not f2py2.7 etc, fixes #6718. gh-6747 DEP: Deprecate changing shape of non-C-contiguous array via descr. gh-6775 MAINT: Include from __future__ boilerplate in some files missing it. gh-6780 BUG: metadata is not copied to base_dtype. gh-6783 BUG: Fix travis ci testing for new google infrastructure. gh-6785 BUG: Quick and dirty fix for interp. gh-6813 TST,BUG: Make test_mvoid_multidim_print work for 32 bit systems. gh-6817 BUG: Disable 32-bit msvc9 compiler optimizations for npy_rint. gh-6819 TST: Fix test_mvoid_multidim_print failures on Python 2.x for Windows. Initial support for mingwpy was reverted as it was causing problems for non-windows builds. gh-6536 BUG: Revert gh-5614 to fix non-windows build problems A fix for np.lib.split was reverted because it resulted in "fixing" behavior that will be present in the Numpy 1.11 and that was already present in Numpy 1.9. See the discussion of the issue at gh-6575 for clarification. gh-6576 BUG: Revert gh-6376 to fix split behavior for empty arrays. Relaxed stride checking was reverted. There were back compatibility problems involving views changing the dtype of multidimensional Fortran arrays that need to be dealt with over a longer timeframe. gh-6735 MAINT: Make no relaxed stride checking the default for 1.10. Notes A bug in the Numpy 1.10.1 release resulted in exceptions being raised for RuntimeWarning and DeprecationWarning in projects depending on Numpy. That has been fixed. NumPy 1.10.1 Release Notes This release deals with a few build problems that showed up in 1.10.0. Most users would not have seen these problems. The differences are: Compiling with msvc9 or msvc10 for 32 bit Windows now requires SSE2. This was the easiest fix for what looked to be some miscompiled code when SSE2 was not used. If you need to compile for 32 bit Windows systems without SSE2 support, mingw32 should still work. Make compiling with VS2008 python2.7 SDK easier Change Intel compiler options so that code will also be generated to support systems without SSE4.2. Some _config test functions needed an explicit integer return in order to avoid the openSUSE rpmlinter erring out. We ran into a problem with pipy not allowing reuse of filenames and a resulting proliferation of ..*.postN releases. Not only were the names getting out of hand, some packages were unable to work with the postN suffix. Numpy 1.10.1 supports Python 2.6 - 2.7 and 3.2 - 3.5. Commits: 45a3d84 DEP: Remove warning for full when dtype is set. 0c1a5df BLD: import setuptools to allow compile with VS2008 python2.7 sdk 04211c6 BUG: mask nan to 1 in ordered compare 826716f DOC: Document the reason msvc requires SSE2 on 32 bit platforms. 49fa187 BLD: enable SSE2 for 32-bit msvc 9 and 10 compilers dcbc4cc MAINT: remove Wreturn-type warnings from config checks d6564cb BLD: do not build exclusively for SSE4.2 processors 15cb66f BLD: do not build exclusively for SSE4.2 processors c38bc08 DOC: fix var. reference in percentile docstring 78497f4 DOC: Sync 1.10.0-notes.rst in 1.10.x branch with master. NumPy 1.10.0 Release Notes This release supports Python 2.6 - 2.7 and 3.2 - 3.5. Highlights numpy.distutils now supports parallel compilation via the --parallel/-j argument passed to setup.py build numpy.distutils now supports additional customization via site.cfg to control compilation parameters, i.e. runtime libraries, extra linking/compilation flags. Addition of np.linalg.multi_dot: compute the dot product of two or more arrays in a single function call, while automatically selecting the fastest evaluation order. The new function np.stack provides a general interface for joining a sequence of arrays along a new axis, complementing np.concatenate for joining along an existing axis. Addition of nanprod to the set of nanfunctions. Support for the '@@' operator in Python 3.5. Dropped Support The _dotblas module has been removed. CBLAS Support is now in Multiarray. The testcalcs.py file has been removed. The polytemplate.py file has been removed. npy_PyFile_Dup and npy_PyFile_DupClose have been removed from npy_3kcompat.h. splitcmdline has been removed from numpy/distutils/exec_command.py. try_run and get_output have been removed from numpy/distutils/command/config.py The a._format attribute is no longer supported for array printing. Keywords skiprows and missing removed from np.genfromtxt. Keyword old_behavior removed from np.correlate. Future Changes In array comparisons like arr1 == arr2, many corner cases involving strings or structured dtypes that used to return scalars now issue FutureWarning or DeprecationWarning, and in the future will be change to either perform elementwise comparisons or raise an error. In np.lib.split an empty array in the result always had dimension (0,) no matter the dimensions of the array being split. In Numpy 1.11 that behavior will be changed so that the dimensions will be preserved. A FutureWarning for this change has been in place since Numpy 1.9 but, due to a bug, sometimes no warning was raised and the dimensions were already preserved. The SafeEval class will be removed in Numpy 1.11. The alterdot and restoredot functions will be removed in Numpy 1.11. See below for more details on these changes. Compatibility notes Default casting rule change Default casting for inplace operations has changed to 'same_kind'. For instance, if n is an array of integers, and f is an array of floats, then n += f will result in a TypeError, whereas in previous Numpy versions the floats would be silently cast to ints. In the unlikely case that the example code is not an actual bug, it can be updated in a backward compatible way by rewriting it as np.add(n, f, out=n, casting='unsafe'). The old 'unsafe' default has been deprecated since Numpy 1.7. numpy version string The numpy version string for development builds has been changed from x.y.z.dev-githash to x.y.z.dev0+githash (note the +) in order to comply with PEP 440. relaxed stride checking NPY_RELAXED_STRIDE_CHECKING is now true by default. UPDATE: In 1.10.2 the default value of NPY_RELAXED_STRIDE_CHECKING was changed to false for back compatibility reasons. More time is needed before it can be made the default. As part of the roadmap a deprecation of dimension changing views of f_contiguous not c_contiguous arrays was also added. Concatenation of 1d arrays along any but axis=0 raises IndexError Using axis != 0 has raised a DeprecationWarning since NumPy 1.7, it now raises an error. np.ravel, np.diagonal and np.diag now preserve subtypes There was inconsistent behavior between x.ravel() and np.ravel(x), as well as between x.diagonal() and np.diagonal(x), with the methods preserving subtypes while the functions did not. This has been fixed and the functions now behave like the methods, preserving subtypes except in the case of matrices. Matrices are special cased for backward compatibility and still return 1-D arrays as before. If you need to preserve the matrix subtype, use the methods instead of the functions. rollaxis and swapaxes always return a view Previously, a view was returned except when no change was made in the order of the axes, in which case the input array was returned. A view is now returned in all cases. nonzero now returns base ndarrays Previously, an inconsistency existed between 1-D inputs (returning a base ndarray) and higher dimensional ones (which preserved subclasses). Behavior has been unified, and the return will now be a base ndarray. Subclasses can still override this behavior by providing their own nonzero method. C API The changes to swapaxes also apply to the PyArray_SwapAxes C function, which now returns a view in all cases. The changes to nonzero also apply to the PyArray_Nonzero C function, which now returns a base ndarray in all cases. The dtype structure (PyArray_Descr) has a new member at the end to cache its hash value. This shouldn't affect any well-written applications. The change to the concatenation function DeprecationWarning also affects PyArray_ConcatenateArrays, recarray field return types Previously the returned types for recarray fields accessed by attribute and by index were inconsistent, and fields of string type were returned as chararrays. Now, fields accessed by either attribute or indexing will return an ndarray for fields of non-structured type, and a recarray for fields of structured type. Notably, this affect recarrays containing strings with whitespace, as trailing whitespace is trimmed from chararrays but kept in ndarrays of string type. Also, the dtype.type of nested structured fields is now inherited. recarray views Viewing an ndarray as a recarray now automatically converts the dtype to np.record. See new record array documentation. Additionally, viewing a recarray with a non-structured dtype no longer converts the result's type to ndarray - the result will remain a recarray. 'out' keyword argument of ufuncs now accepts tuples of arrays When using the 'out' keyword argument of a ufunc, a tuple of arrays, one per ufunc output, can be provided. For ufuncs with a single output a single array is also a valid 'out' keyword argument. Previously a single array could be provided in the 'out' keyword argument, and it would be used as the first output for ufuncs with multiple outputs, is deprecated, and will result in a DeprecationWarning now and an error in the future. byte-array indices now raises an IndexError Indexing an ndarray using a byte-string in Python 3 now raises an IndexError instead of a ValueError. Masked arrays containing objects with arrays For such (rare) masked arrays, getting a single masked item no longer returns a corrupted masked array, but a fully masked version of the item. Median warns and returns nan when invalid values are encountered Similar to mean, median and percentile now emits a Runtime warning and returns NaN in slices where a NaN is present. To compute the median or percentile while ignoring invalid values use the new nanmedian or nanpercentile functions. Functions available from numpy.ma.testutils have changed All functions from numpy.testing were once available from numpy.ma.testutils but not all of them were redefined to work with masked arrays. Most of those functions have now been removed from numpy.ma.testutils with a small subset retained in order to preserve backward compatibility. In the long run this should help avoid mistaken use of the wrong functions, but it may cause import problems for some. New Features Reading extra flags from site.cfg Previously customization of compilation of dependency libraries and numpy itself was only accomblishable via code changes in the distutils package. Now numpy.distutils reads in the following extra flags from each group of the site.cfg: runtime_library_dirs/rpath, sets runtime library directories to override LD_LIBRARY_PATH extra_compile_args, add extra flags to the compilation of sources extra_link_args, add extra flags when linking libraries This should, at least partially, complete user customization. np.cbrt to compute cube root for real floats np.cbrt wraps the C99 cube root function cbrt. Compared to np.power(x, 1./3.) it is well defined for negative real floats and a bit faster. numpy.distutils now allows parallel compilation By passing --parallel=n or -j n to setup.py build the compilation of extensions is now performed in n parallel processes. The parallelization is limited to files within one extension so projects using Cython will not profit because it builds extensions from single files. genfromtxt has a new max_rows argument A max_rows argument has been added to genfromtxt to limit the number of rows read in a single call. Using this functionality, it is possible to read in multiple arrays stored in a single file by making repeated calls to the function. New function np.broadcast_to for invoking array broadcasting np.broadcast_to manually broadcasts an array to a given shape according to numpy's broadcasting rules. The functionality is similar to broadcast_arrays, which in fact has been rewritten to use broadcast_to internally, but only a single array is necessary. New context manager clear_and_catch_warnings for testing warnings When Python emits a warning, it records that this warning has been emitted in the module that caused the warning, in a module attribute __warningregistry__. Once this has happened, it is not possible to emit the warning again, unless you clear the relevant entry in __warningregistry__. This makes is hard and fragile to test warnings, because if your test comes after another that has already caused the warning, you will not be able to emit the warning or test it. The context manager clear_and_catch_warnings clears warnings from the module registry on entry and resets them on exit, meaning that warnings can be re-raised. cov has new fweights and aweights arguments The fweights and aweights arguments add new functionality to covariance calculations by applying two types of weighting to observation vectors. An array of fweights indicates the number of repeats of each observation vector, and an array of aweights provides their relative importance or probability. Support for the '@@' operator in Python 3.5+ Python 3.5 adds support for a matrix multiplication operator '@@' proposed in PEP465. Preliminary support for that has been implemented, and an equivalent function matmul has also been added for testing purposes and use in earlier Python versions. The function is preliminary and the order and number of its optional arguments can be expected to change. New argument norm to fft functions The default normalization has the direct transforms unscaled and the inverse transforms are scaled by 1/n . It is possible to obtain unitary transforms by setting the keyword argument norm to "ortho" (default is None) so that both direct and inverse transforms will be scaled by 1/\\sqrt{n} . Improvements np.digitize using binary search np.digitize is now implemented in terms of np.searchsorted. This means that a binary search is used to bin the values, which scales much better for larger number of bins than the previous linear search. It also removes the requirement for the input array to be 1-dimensional. np.poly now casts integer inputs to float np.poly will now cast 1-dimensional input arrays of integer type to double precision floating point, to prevent integer overflow when computing the monic polynomial. It is still possible to obtain higher precision results by passing in an array of object type, filled e.g. with Python ints. np.interp can now be used with periodic functions np.interp now has a new parameter period that supplies the period of the input data xp. In such case, the input data is properly normalized to the given period and one end point is added to each extremity of xp in order to close the previous and the next period cycles, resulting in the correct interpolation behavior. np.pad supports more input types for pad_width and constant_values constant_values parameters now accepts NumPy arrays and float values. NumPy arrays are supported as input for pad_width, and an exception is raised if its values are not of integral type. np.argmax and np.argmin now support an out argument The out parameter was added to np.argmax and np.argmin for consistency with ndarray.argmax and ndarray.argmin. The new parameter behaves exactly as it does in those methods. More system C99 complex functions detected and used All of the functions in complex.h are now detected. There are new fallback implementations of the following functions. npy_ctan, npy_cacos, npy_casin, npy_catan npy_ccosh, npy_csinh, npy_ctanh, npy_cacosh, npy_casinh, npy_catanh As a result of these improvements, there will be some small changes in returned values, especially for corner cases. np.loadtxt support for the strings produced by the float.hex method The strings produced by float.hex look like 0x1.921fb54442d18p+1, so this is not the hex used to represent unsigned integer types. np.isclose properly handles minimal values of integer dtypes In order to properly handle minimal values of integer types, np.isclose will now cast to the float dtype during comparisons. This aligns its behavior with what was provided by np.allclose. np.allclose uses np.isclose internally. np.allclose now uses np.isclose internally and inherits the ability to compare NaNs as equal by setting equal_nan=True. Subclasses, such as np.ma.MaskedArray, are also preserved now. np.genfromtxt now handles large integers correctly np.genfromtxt now correctly handles integers larger than 2**31-1 on 32-bit systems and larger than 2**63-1 on 64-bit systems (it previously crashed with an OverflowError in these cases). Integers larger than 2**63-1 are converted to floating-point values. np.load, np.save have pickle backward compatibility flags The functions np.load and np.save have additional keyword arguments for controlling backward compatibility of pickled Python objects. This enables Numpy on Python 3 to load npy files containing object arrays that were generated on Python 2. MaskedArray support for more complicated base classes Built-in assumptions that the baseclass behaved like a plain array are being removed. In particular, setting and getting elements and ranges will respect baseclass overrides of __setitem__ and __getitem__, and arithmetic will respect overrides of __add__, __sub__, etc. Changes dotblas functionality moved to multiarray The cblas versions of dot, inner, and vdot have been integrated into the multiarray module. In particular, vdot is now a multiarray function, which it was not before. stricter check of gufunc signature compliance Inputs to generalized universal functions are now more strictly checked against the function's signature: all core dimensions are now required to be present in input arrays; core dimensions with the same label must have the exact same size; and output core dimension's must be specified, either by a same label input core dimension or by a passed-in output array. views returned from np.einsum are writeable Views returned by np.einsum will now be writeable whenever the input array is writeable. np.argmin skips NaT values np.argmin now skips NaT values in datetime64 and timedelta64 arrays, making it consistent with np.min, np.argmax and np.max. Deprecations Array comparisons involving strings or structured dtypes Normally, comparison operations on arrays perform elementwise comparisons and return arrays of booleans. But in some corner cases, especially involving strings are structured dtypes, NumPy has historically returned a scalar instead. For example: ### Current behaviour np.arange(2) == "foo" # -> False np.arange(2) < "foo" # -> True on Python 2, error on Python 3 np.ones(2, dtype="i4,i4") == np.ones(2, dtype="i4,i4,i4") # -> False Continuing work started in 1.9, in 1.10 these comparisons will now raise FutureWarning or DeprecationWarning, and in the future they will be modified to behave more consistently with other comparison operations, e.g.: ### Future behaviour np.arange(2) == "foo" # -> array([False, False]) np.arange(2) < "foo" # -> error, strings and numbers are not orderable np.ones(2, dtype="i4,i4") == np.ones(2, dtype="i4,i4,i4") # -> [False, False] SafeEval The SafeEval class in numpy/lib/utils.py is deprecated and will be removed in the next release. alterdot, restoredot The alterdot and restoredot functions no longer do anything, and are deprecated. pkgload, PackageLoader These ways of loading packages are now deprecated. bias, ddof arguments to corrcoef The values for the bias and ddof arguments to the corrcoef function canceled in the division implied by the correlation coefficient and so had no effect on the returned values. We now deprecate these arguments to corrcoef and the masked array version ma.corrcoef. Because we are deprecating the bias argument to ma.corrcoef, we also deprecate the use of the allow_masked argument as a positional argument, as its position will change with the removal of bias. allow_masked will in due course become a keyword-only argument. dtype string representation changes Since 1.6, creating a dtype object from its string representation, e.g. 'f4', would issue a deprecation warning if the size did not correspond to an existing type, and default to creating a dtype of the default size for the type. Starting with this release, this will now raise a TypeError. The only exception is object dtypes, where both 'O4' and 'O8' will still issue a deprecation warning. This platform-dependent representation will raise an error in the next release. In preparation for this upcoming change, the string representation of an object dtype, i.e. np.dtype(object).str, no longer includes the item size, i.e. will return '|O' instead of '|O4' or '|O8' as before. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.28 2015/04/17 00:41:38 wen Exp $ d42 1 d44 1 a44 1 .include "../../lang/python/distutils.mk" @ 1.28 log @Update to 1.9.2 Reviewed by: wiz@@ Upstream changes: NumPy 1.9.2 Release Notes ************************* This is a bugfix only release in the 1.9.x series. Issues fixed ============ * `#5316 `__: fix too large dtype alignment of strings and complex types * `#5424 `__: fix ma.median when used on ndarrays * `#5481 `__: Fix astype for structured array fields of different byte order * `#5354 `__: fix segfault when clipping complex arrays * `#5524 `__: allow np.argpartition on non ndarrays * `#5612 `__: Fixes ndarray.fill to accept full range of uint64 * `#5155 `__: Fix loadtxt with comments=None and a string None data * `#4476 `__: Masked array view fails if structured dtype has datetime component * `#5388 `__: Make RandomState.set_state and RandomState.get_state threadsafe * `#5390 `__: make seed, randint and shuffle threadsafe * `#5374 `__: Fixed incorrect assert_array_almost_equal_nulp documentation * `#5393 `__: Add support for ATLAS > 3.9.33. * `#5313 `__: PyArray_AsCArray caused segfault for 3d arrays * `#5492 `__: handle out of memory in rfftf * `#4181 `__: fix a few bugs in the random.pareto docstring * `#5359 `__: minor changes to linspace docstring * `#4723 `__: fix a compile issues on AIX NumPy 1.9.1 Release Notes ************************* This is a bugfix only release in the 1.9.x series. Issues fixed ============ * gh-5184: restore linear edge behaviour of gradient to as it was in < 1.9. The second order behaviour is available via the `edge_order` keyword * gh-4007: workaround Accelerate sgemv crash on OSX 10.9 * gh-5100: restore object dtype inference from iterable objects without `len()` * gh-5163: avoid gcc-4.1.2 (red hat 5) miscompilation causing a crash * gh-5138: fix nanmedian on arrays containing inf * gh-5240: fix not returning out array from ufuncs with subok=False set * gh-5203: copy inherited masks in MaskedArray.__array_finalize__ * gh-2317: genfromtxt did not handle filling_values=0 correctly * gh-5067: restore api of npy_PyFile_DupClose in python2 * gh-5063: cannot convert invalid sequence index to tuple * gh-5082: Segmentation fault with argmin() on unicode arrays * gh-5095: don't propagate subtypes from np.where * gh-5104: np.inner segfaults with SciPy's sparse matrices * gh-5251: Issue with fromarrays not using correct format for unicode arrays * gh-5136: Import dummy_threading if importing threading fails * gh-5148: Make numpy import when run with Python flag '-OO' * gh-5147: Einsum double contraction in particular order causes ValueError * gh-479: Make f2py work with intent(in out) * gh-5170: Make python2 .npy files readable in python3 * gh-5027: Use 'll' as the default length specifier for long long * gh-4896: fix build error with MSVC 2013 caused by C99 complex support * gh-4465: Make PyArray_PutTo respect writeable flag * gh-5225: fix crash when using arange on datetime without dtype set * gh-5231: fix build in c99 mode NumPy 1.9.0 Release Notes ************************* This release supports Python 2.6 - 2.7 and 3.2 - 3.4. Highlights ========== * Numerous performance improvements in various areas, most notably indexing and operations on small arrays are significantly faster. Indexing operations now also release the GIL. * Addition of `nanmedian` and `nanpercentile` rounds out the nanfunction set. Dropped Support =============== * The oldnumeric and numarray modules have been removed. * The doc/pyrex and doc/cython directories have been removed. * The doc/numpybook directory has been removed. * The numpy/testing/numpytest.py file has been removed together with the importall function it contained. Future Changes ============== * The numpy/polynomial/polytemplate.py file will be removed in NumPy 1.10.0. * Default casting for inplace operations will change to 'same_kind' in Numpy 1.10.0. This will certainly break some code that is currently ignoring the warning. * Relaxed stride checking will be the default in 1.10.0 * String version checks will break because, e.g., '1.9' > '1.10' is True. A NumpyVersion class has been added that can be used for such comparisons. * The diagonal and diag functions will return writeable views in 1.10.0 * The `S` and/or `a` dtypes may be changed to represent Python strings instead of bytes, in Python 3 these two types are very different. Compatibility notes =================== The diagonal and diag functions return readonly views. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In NumPy 1.8, the diagonal and diag functions returned readonly copies, in NumPy 1.9 they return readonly views, and in 1.10 they will return writeable views. Special scalar float values don't cause upcast to double anymore ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In previous numpy versions operations involving floating point scalars containing special values ``NaN``, ``Inf`` and ``-Inf`` caused the result type to be at least ``float64``. As the special values can be represented in the smallest available floating point type, the upcast is not performed anymore. For example the dtype of: ``np.array([1.], dtype=np.float32) * float('nan')`` now remains ``float32`` instead of being cast to ``float64``. Operations involving non-special values have not been changed. Percentile output changes ~~~~~~~~~~~~~~~~~~~~~~~~~ If given more than one percentile to compute numpy.percentile returns an array instead of a list. A single percentile still returns a scalar. The array is equivalent to converting the list returned in older versions to an array via ``np.array``. If the ``overwrite_input`` option is used the input is only partially instead of fully sorted. ndarray.tofile exception type ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ All ``tofile`` exceptions are now ``IOError``, some were previously ``ValueError``. Invalid fill value exceptions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Two changes to numpy.ma.core._check_fill_value: * When the fill value is a string and the array type is not one of 'OSUV', TypeError is raised instead of the default fill value being used. * When the fill value overflows the array type, TypeError is raised instead of OverflowError. Polynomial Classes no longer derived from PolyBase ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This may cause problems with folks who depended on the polynomial classes being derived from PolyBase. They are now all derived from the abstract base class ABCPolyBase. Strictly speaking, there should be a deprecation involved, but no external code making use of the old baseclass could be found. Using numpy.random.binomial may change the RNG state vs. numpy < 1.9 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A bug in one of the algorithms to generate a binomial random variate has been fixed. This change will likely alter the number of random draws performed, and hence the sequence location will be different after a call to distribution.c::rk_binomial_btpe. Any tests which rely on the RNG being in a known state should be checked and/or updated as a result. Random seed enforced to be a 32 bit unsigned integer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``np.random.seed`` and ``np.random.RandomState`` now throw a ``ValueError`` if the seed cannot safely be converted to 32 bit unsigned integers. Applications that now fail can be fixed by masking the higher 32 bit values to zero: ``seed = seed & 0xFFFFFFFF``. This is what is done silently in older versions so the random stream remains the same. Argmin and argmax out argument ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The ``out`` argument to ``np.argmin`` and ``np.argmax`` and their equivalent C-API functions is now checked to match the desired output shape exactly. If the check fails a ``ValueError`` instead of ``TypeError`` is raised. Einsum ~~~~~~ Remove unnecessary broadcasting notation restrictions. ``np.einsum('ijk,j->ijk', A, B)`` can also be written as ``np.einsum('ij...,j->ij...', A, B)`` (ellipsis is no longer required on 'j') Indexing ~~~~~~~~ The NumPy indexing has seen a complete rewrite in this version. This makes most advanced integer indexing operations much faster and should have no other implications. However some subtle changes and deprecations were introduced in advanced indexing operations: * Boolean indexing into scalar arrays will always return a new 1-d array. This means that ``array(1)[array(True)]`` gives ``array([1])`` and not the original array. * Advanced indexing into one dimensional arrays used to have (undocumented) special handling regarding repeating the value array in assignments when the shape of the value array was too small or did not match. Code using this will raise an error. For compatibility you can use ``arr.flat[index] = values``, which uses the old code branch. (for example ``a = np.ones(10); a[np.arange(10)] = [1, 2, 3]``) * The iteration order over advanced indexes used to be always C-order. In NumPy 1.9. the iteration order adapts to the inputs and is not guaranteed (with the exception of a *single* advanced index which is never reversed for compatibility reasons). This means that the result is undefined if multiple values are assigned to the same element. An example for this is ``arr[[0, 0], [1, 1]] = [1, 2]``, which may set ``arr[0, 1]`` to either 1 or 2. * Equivalent to the iteration order, the memory layout of the advanced indexing result is adapted for faster indexing and cannot be predicted. * All indexing operations return a view or a copy. No indexing operation will return the original array object. (For example ``arr[...]``) * In the future Boolean array-likes (such as lists of python bools) will always be treated as Boolean indexes and Boolean scalars (including python ``True``) will be a legal *boolean* index. At this time, this is already the case for scalar arrays to allow the general ``positive = a[a > 0]`` to work when ``a`` is zero dimensional. * In NumPy 1.8 it was possible to use ``array(True)`` and ``array(False)`` equivalent to 1 and 0 if the result of the operation was a scalar. This will raise an error in NumPy 1.9 and, as noted above, treated as a boolean index in the future. * All non-integer array-likes are deprecated, object arrays of custom integer like objects may have to be cast explicitly. * The error reporting for advanced indexing is more informative, however the error type has changed in some cases. (Broadcasting errors of indexing arrays are reported as ``IndexError``) * Indexing with more then one ellipsis (``...``) is deprecated. Non-integer reduction axis indexes are deprecated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Non-integer axis indexes to reduction ufuncs like `add.reduce` or `sum` are deprecated. ``promote_types`` and string dtype ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``promote_types`` function now returns a valid string length when given an integer or float dtype as one argument and a string dtype as another argument. Previously it always returned the input string dtype, even if it wasn't long enough to store the max integer/float value converted to a string. ``can_cast`` and string dtype ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``can_cast`` function now returns False in "safe" casting mode for integer/float dtype and string dtype if the string dtype length is not long enough to store the max integer/float value converted to a string. Previously ``can_cast`` in "safe" mode returned True for integer/float dtype and a string dtype of any length. astype and string dtype ~~~~~~~~~~~~~~~~~~~~~~~ The ``astype`` method now returns an error if the string dtype to cast to is not long enough in "safe" casting mode to hold the max value of integer/float array that is being casted. Previously the casting was allowed even if the result was truncated. `npyio.recfromcsv` keyword arguments change ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ `npyio.recfromcsv` no longer accepts the undocumented `update` keyword, which used to override the `dtype` keyword. The ``doc/swig`` directory moved ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The ``doc/swig`` directory has been moved to ``tools/swig``. The ``npy_3kcompat.h`` header changed ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The unused ``simple_capsule_dtor`` function has been removed from ``npy_3kcompat.h``. Note that this header is not meant to be used outside of numpy; other projects should be using their own copy of this file when needed. Negative indices in C-Api ``sq_item`` and ``sq_ass_item`` sequence methods ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When directly accessing the ``sq_item`` or ``sq_ass_item`` PyObject slots for item getting, negative indices will not be supported anymore. ``PySequence_GetItem`` and ``PySequence_SetItem`` however fix negative indices so that they can be used there. NDIter ~~~~~~ When ``NpyIter_RemoveAxis`` is now called, the iterator range will be reset. When a multi index is being tracked and an iterator is not buffered, it is possible to use ``NpyIter_RemoveAxis``. In this case an iterator can shrink in size. Because the total size of an iterator is limited, the iterator may be too large before these calls. In this case its size will be set to ``-1`` and an error issued not at construction time but when removing the multi index, setting the iterator range, or getting the next function. This has no effect on currently working code, but highlights the necessity of checking for an error return if these conditions can occur. In most cases the arrays being iterated are as large as the iterator so that such a problem cannot occur. This change was already applied to the 1.8.1 release. ``zeros_like`` for string dtypes now returns empty strings ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To match the `zeros` function `zeros_like` now returns an array initialized with empty strings instead of an array filled with `'0'`. New Features ============ Percentile supports more interpolation options ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``np.percentile`` now has the interpolation keyword argument to specify in which way points should be interpolated if the percentiles fall between two values. See the documentation for the available options. Generalized axis support for median and percentile ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``np.median`` and ``np.percentile`` now support generalized axis arguments like ufunc reductions do since 1.7. One can now say axis=(index, index) to pick a list of axes for the reduction. The ``keepdims`` keyword argument was also added to allow convenient broadcasting to arrays of the original shape. Dtype parameter added to ``np.linspace`` and ``np.logspace`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The returned data type from the ``linspace`` and ``logspace`` functions can now be specified using the dtype parameter. More general ``np.triu`` and ``np.tril`` broadcasting ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ For arrays with ``ndim`` exceeding 2, these functions will now apply to the final two axes instead of raising an exception. ``tobytes`` alias for ``tostring`` method ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``ndarray.tobytes`` and ``MaskedArray.tobytes`` have been added as aliases for ``tostring`` which exports arrays as ``bytes``. This is more consistent in Python 3 where ``str`` and ``bytes`` are not the same. Build system ~~~~~~~~~~~~ Added experimental support for the ppc64le and OpenRISC architecture. Compatibility to python ``numbers`` module ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ All numerical numpy types are now registered with the type hierarchy in the python ``numbers`` module. ``increasing`` parameter added to ``np.vander`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The ordering of the columns of the Vandermonde matrix can be specified with this new boolean argument. ``unique_counts`` parameter added to ``np.unique`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The number of times each unique item comes up in the input can now be obtained as an optional return value. Support for median and percentile in nanfunctions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The ``np.nanmedian`` and ``np.nanpercentile`` functions behave like the median and percentile functions except that NaNs are ignored. NumpyVersion class added ~~~~~~~~~~~~~~~~~~~~~~~~ The class may be imported from numpy.lib and can be used for version comparison when the numpy version goes to 1.10.devel. For example:: >>> from numpy.lib import NumpyVersion >>> if NumpyVersion(np.__version__) < '1.10.0'): ... print('Wow, that is an old NumPy version!') Allow saving arrays with large number of named columns ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The numpy storage format 1.0 only allowed the array header to have a total size of 65535 bytes. This can be exceeded by structured arrays with a large number of columns. A new format 2.0 has been added which extends the header size to 4 GiB. `np.save` will automatically save in 2.0 format if the data requires it, else it will always use the more compatible 1.0 format. Full broadcasting support for ``np.cross`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``np.cross`` now properly broadcasts its two input arrays, even if they have different number of dimensions. In earlier versions this would result in either an error being raised, or wrong results computed. Improvements ============ Better numerical stability for sum in some cases ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pairwise summation is now used in the sum method, but only along the fast axis and for groups of the values <= 8192 in length. This should also improve the accuracy of var and std in some common cases. Percentile implemented in terms of ``np.partition`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``np.percentile`` has been implemented in terms of ``np.partition`` which only partially sorts the data via a selection algorithm. This improves the time complexity from ``O(nlog(n))`` to ``O(n)``. Performance improvement for ``np.array`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The performance of converting lists containing arrays to arrays using ``np.array`` has been improved. It is now equivalent in speed to ``np.vstack(list)``. Performance improvement for ``np.searchsorted`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ For the built-in numeric types, ``np.searchsorted`` no longer relies on the data type's ``compare`` function to perform the search, but is now implemented by type specific functions. Depending on the size of the inputs, this can result in performance improvements over 2x. Optional reduced verbosity for np.distutils ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Set ``numpy.distutils.system_info.system_info.verbosity = 0`` and then calls to ``numpy.distutils.system_info.get_info('blas_opt')`` will not print anything on the output. This is mostly for other packages using numpy.distutils. Covariance check in ``np.random.multivariate_normal`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A ``RuntimeWarning`` warning is raised when the covariance matrix is not positive-semidefinite. Polynomial Classes no longer template based ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The polynomial classes have been refactored to use an abstract base class rather than a template in order to implement a common interface. This makes importing the polynomial package faster as the classes do not need to be compiled on import. More GIL releases ~~~~~~~~~~~~~~~~~ Several more functions now release the Global Interpreter Lock allowing more efficient parallization using the ``threading`` module. Most notably the GIL is now released for fancy indexing, ``np.where`` and the ``random`` module now uses a per-state lock instead of the GIL. MaskedArray support for more complicated base classes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Built-in assumptions that the baseclass behaved like a plain array are being removed. In particalur, ``repr`` and ``str`` should now work more reliably. C-API ~~~~~ Deprecations ============ Non-integer scalars for sequence repetition ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Using non-integer numpy scalars to repeat python sequences is deprecated. For example ``np.float_(2) * [1]`` will be an error in the future. ``select`` input deprecations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The integer and empty input to ``select`` is deprecated. In the future only boolean arrays will be valid conditions and an empty ``condlist`` will be considered an input error instead of returning the default. ``rank`` function ~~~~~~~~~~~~~~~~~ The ``rank`` function has been deprecated to avoid confusion with ``numpy.linalg.matrix_rank``. Object array equality comparisons ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In the future object array comparisons both `==` and `np.equal` will not make use of identity checks anymore. For example: >>> a = np.array([np.array([1, 2, 3]), 1]) >>> b = np.array([np.array([1, 2, 3]), 1]) >>> a == b will consistently return False (and in the future an error) even if the array in `a` and `b` was the same object. The equality operator `==` will in the future raise errors like `np.equal` if broadcasting or element comparisons, etc. fails. Comparison with `arr == None` will in the future do an elementwise comparison instead of just returning False. Code should be using `arr is None`. All of these changes will give Deprecation- or FutureWarnings at this time. C-API ~~~~~ The utility function npy_PyFile_Dup and npy_PyFile_DupClose are broken by the internal buffering python 3 applies to its file objects. To fix this two new functions npy_PyFile_Dup2 and npy_PyFile_DupClose2 are declared in npy_3kcompat.h and the old functions are deprecated. Due to the fragile nature of these functions it is recommended to instead use the python API when possible. This change was already applied to the 1.8.1 release. NumPy 1.8.2 Release Notes ************************* This is a bugfix only release in the 1.8.x series. Issues fixed ============ * gh-4836: partition produces wrong results for multiple selections in equal ranges * gh-4656: Make fftpack._raw_fft threadsafe * gh-4628: incorrect argument order to _copyto in in np.nanmax, np.nanmin * gh-4642: Hold GIL for converting dtypes types with fields * gh-4733: fix np.linalg.svd(b, compute_uv=False) * gh-4853: avoid unaligned simd load on reductions on i386 * gh-4722: Fix seg fault converting empty string to object * gh-4613: Fix lack of NULL check in array_richcompare * gh-4774: avoid unaligned access for strided byteswap * gh-650: Prevent division by zero when creating arrays from some buffers * gh-4602: ifort has issues with optimization flag O2, use O1 NumPy 1.8.1 Release Notes ************************* This is a bugfix only release in the 1.8.x series. Issues fixed ============ * gh-4276: Fix mean, var, std methods for object arrays * gh-4262: remove insecure mktemp usage * gh-2385: absolute(complex(inf)) raises invalid warning in python3 * gh-4024: Sequence assignment doesn't raise exception on shape mismatch * gh-4027: Fix chunked reading of strings longer than BUFFERSIZE * gh-4109: Fix object scalar return type of 0-d array indices * gh-4018: fix missing check for memory allocation failure in ufuncs * gh-4156: high order linalg.norm discards imaginary elements of complex arrays * gh-4144: linalg: norm fails on longdouble, signed int * gh-4094: fix NaT handling in _strided_to_strided_string_to_datetime * gh-4051: fix uninitialized use in _strided_to_strided_string_to_datetime * gh-4093: Loading compressed .npz file fails under Python 2.6.6 * gh-4138: segfault with non-native endian memoryview in python 3.4 * gh-4123: Fix missing NULL check in lexsort * gh-4170: fix native-only long long check in memoryviews * gh-4187: Fix large file support on 32 bit * gh-4152: fromfile: ensure file handle positions are in sync in python3 * gh-4176: clang compatibility: Typos in conversion_utils * gh-4223: Fetching a non-integer item caused array return * gh-4197: fix minor memory leak in memoryview failure case * gh-4206: fix build with single-threaded python * gh-4220: add versionadded:: 1.8.0 to ufunc.at docstring * gh-4267: improve handling of memory allocation failure * gh-4267: fix use of capi without gil in ufunc.at * gh-4261: Detect vendor versions of GNU Compilers * gh-4253: IRR was returning nan instead of valid negative answer * gh-4254: fix unnecessary byte order flag change for byte arrays * gh-3263: numpy.random.shuffle clobbers mask of a MaskedArray * gh-4270: np.random.shuffle not work with flexible dtypes * gh-3173: Segmentation fault when 'size' argument to random.multinomial * gh-2799: allow using unique with lists of complex * gh-3504: fix linspace truncation for integer array scalar * gh-4191: get_info('openblas') does not read libraries key * gh-3348: Access violation in _descriptor_from_pep3118_format * gh-3175: segmentation fault with numpy.array() from bytearray * gh-4266: histogramdd - wrong result for entries very close to last boundary * gh-4408: Fix stride_stricks.as_strided function for object arrays * gh-4225: fix log1p and exmp1 return for np.inf on windows compiler builds * gh-4359: Fix infinite recursion in str.format of flex arrays * gh-4145: Incorrect shape of broadcast result with the exponent operator * gh-4483: Fix commutativity of {dot,multiply,inner}(scalar, matrix_of_objs) * gh-4466: Delay npyiter size check when size may change * gh-4485: Buffered stride was erroneously marked fixed * gh-4354: byte_bounds fails with datetime dtypes * gh-4486: segfault/error converting from/to high-precision datetime64 objects * gh-4428: einsum(None, None, None, None) causes segfault * gh-4134: uninitialized use for for size 1 object reductions Changes ======= NDIter ~~~~~~ When ``NpyIter_RemoveAxis`` is now called, the iterator range will be reset. When a multi index is being tracked and an iterator is not buffered, it is possible to use ``NpyIter_RemoveAxis``. In this case an iterator can shrink in size. Because the total size of an iterator is limited, the iterator may be too large before these calls. In this case its size will be set to ``-1`` and an error issued not at construction time but when removing the multi index, setting the iterator range, or getting the next function. This has no effect on currently working code, but highlights the necessity of checking for an error return if these conditions can occur. In most cases the arrays being iterated are as large as the iterator so that such a problem cannot occur. Optional reduced verbosity for np.distutils ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Set ``numpy.distutils.system_info.system_info.verbosity = 0`` and then calls to ``numpy.distutils.system_info.get_info('blas_opt')`` will not print anything on the output. This is mostly for other packages using numpy.distutils. Deprecations ============ C-API ~~~~~ The utility function npy_PyFile_Dup and npy_PyFile_DupClose are broken by the internal buffering python 3 applies to its file objects. To fix this two new functions npy_PyFile_Dup2 and npy_PyFile_DupClose2 are declared in npy_3kcompat.h and the old functions are deprecated. Due to the fragile nature of these functions it is recommended to instead use the python API when possible. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.27 2014/02/28 09:43:10 adam Exp $ d3 2 a4 1 DISTNAME= numpy-1.9.2 d7 2 a8 1 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=numpy/} d19 1 a19 19 REPLACE_PYTHON+= *.py REPLACE_PYTHON+= numpy/*.py REPLACE_PYTHON+= numpy/compat/*.py REPLACE_PYTHON+= numpy/core/*.py REPLACE_PYTHON+= numpy/core/tests/*.py REPLACE_PYTHON+= numpy/distutils/*.py REPLACE_PYTHON+= numpy/distutils/tests/*.py REPLACE_PYTHON+= numpy/distutils/tests/f2py_ext/*.py REPLACE_PYTHON+= numpy/distutils/tests/f2py_f90_ext/*.py REPLACE_PYTHON+= numpy/distutils/tests/gen_ext/*.py REPLACE_PYTHON+= numpy/distutils/tests/pyrex_ext/*.py REPLACE_PYTHON+= numpy/distutils/tests/swig_ext/*.py REPLACE_PYTHON+= numpy/f2py/*.py REPLACE_PYTHON+= numpy/f2py/docs/usersguide/*.py REPLACE_PYTHON+= numpy/fft/tests/*.py REPLACE_PYTHON+= numpy/ma/*.py REPLACE_PYTHON+= numpy/matrixlib/*.py REPLACE_PYTHON+= numpy/random/mtrand/*.py REPLACE_PYTHON+= numpy/testing/*.py d39 2 a40 2 #do-test: # ${PYTHONBIN} -c "import numpy; numpy.test()" @ 1.27 log @Changes 1.8.0: * New, no 2to3, Python 2 and Python 3 are supported by a common code base. * New, gufuncs for linear algebra, enabling operations on stacked arrays. * New, inplace fancy indexing for ufuncs with the ``.at`` method. * New, ``partition`` function, partial sorting via selection for fast median. * New, ``nanmean``, ``nanvar``, and ``nanstd`` functions skipping NaNs. * New, ``full`` and ``full_like`` functions to create value initialized arrays. * New, ``PyUFunc_RegisterLoopForDescr``, better ufunc support for user dtypes. * Numerous performance improvements in many areas. * Support for Python versions 2.4 and 2.5 has been dropped. * Support for SCons has been removed. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.26 2014/01/25 10:30:13 wiz Exp $ d3 1 a3 1 DISTNAME= numpy-1.8.0 d21 1 a36 5 SUBST_CLASSES+= numpy SUBST_STAGE.numpy= post-patch SUBST_FILES.numpy= numpy/f2py/setup.py SUBST_SED.numpy= -e 's:%(os.path.basename(sys.executable))::' a51 7 # This package also does its own linking of dependent packages, so we need # to ensure that linker is called with the correct arguments. SUBST_CLASSES+= linkabi SUBST_STAGE.linkabi= post-patch SUBST_FILES.linkabi= numpy/distutils/fcompiler/gnu.py SUBST_SED.linkabi= -e 's,@@COMPILER_ABI_FLAG@@,${_COMPILER_ABI_FLAG.${ABI}},' @ 1.26 log @Mark packages as not ready for python-3.x where applicable; either because they themselves are not ready or because a dependency isn't. This is annotated by PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of x.y.z or PYTHON_VERSIONS_INCOMPATIBLE= 33 # py-foo, py-bar respectively, please use the same style for other packages, and check during updates. Use versioned_dependencies.mk where applicable. Use REPLACE_PYTHON instead of handcoded alternatives, where applicable. Reorder Makefile sections into standard order, where applicable. Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default with the next commit. Whitespace cleanups and other nits corrected, where necessary. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.25 2013/05/20 05:59:58 adam Exp $ d3 1 a3 1 DISTNAME= numpy-1.7.1 d9 1 a9 1 HOMEPAGE= http://numpy.scipy.org/ d17 1 d33 1 d38 2 a39 3 SUBST_FILES.numpy= numpy/f2py/setup.py numpy/f2py/setupscons.py SUBST_SED.numpy= -e 's:/usr/bin/env %s:${PYTHONBIN}:' SUBST_SED.numpy+= -e 's:%(os.path.basename(sys.executable))::' a64 6 .if ${OPSYS} == "Darwin" # to avoid '-bundle can't be used with -dynamiclib' error BUILDLINK_TRANSFORM+= rm:-bundle LDFLAGS+= -lpython .endif d71 2 d75 1 @ 1.25 log @Changes 1.7.1: gh-2973 Fix `1` is printed during numpy.test() gh-2983 BUG: gh-2969: Backport memory leak fix 80b3a34. gh-3007 Backport gh-3006 gh-2984 Backport fix complex polynomial fit gh-2982 BUG: Make nansum work with booleans. gh-2985 Backport large sort fixes gh-3039 Backport object take gh-3105 Backport nditer fix op axes initialization gh-3108 BUG: npy-pkg-config ini files were missing after Bento build. gh-3124 BUG: PyArray_LexSort allocates too much temporary memory. gh-3131 BUG: Exported f2py_size symbol prevents linking multiple f2py modules. gh-3117 Backport gh-2992 gh-3135 DOC: Add mention of PyArray_SetBaseObject stealing a reference gh-3134 DOC: Fix typo in fft docs (the indexing variable is 'm', not 'n'). gh-3136 Backport 3128 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.24 2013/02/21 10:59:38 jperkin Exp $ a13 1 PYTHON_VERSIONS_INCLUDE_3X= yes @ 1.24 log @Ensure the correct compiler ABI flag is used when this package does its own builds for dependencies. Fixes issue on SunOS 32-bit when the native gfortran produces 64-bit by default. Bump PKGREVISION. @ text @d1 1 a1 2 # $NetBSD: Makefile,v 1.23 2012/09/11 23:04:31 asau Exp $ # d3 1 a3 1 DISTNAME= numpy-1.6.2 a4 1 PKGREVISION= 1 d13 1 a13 1 USE_LANGUAGES+= c fortran d15 2 a16 2 PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX} MAKE_ENV+= ATLAS=None d18 16 a33 5 REPLACE_PYTHON+= numpy/core/scons_support.py REPLACE_PYTHON+= numpy/distutils/from_template.py REPLACE_PYTHON+= numpy/distutils/system_info.py REPLACE_PYTHON+= numpy/ma/bench.py REPLACE_PYTHON+= numpy/distutils/conv_template.py d45 1 a45 1 PYSETUPBUILDARGS+= --fcompiler=g95 d47 1 a47 1 PYSETUPBUILDARGS+= --fcompiler=gnu95 d49 1 a49 1 PYSETUPBUILDARGS+= --fcompiler=gnu a51 4 # According to http://projects.scipy.org/numpy/ticket/1101, # LDFLAGS should either not be set or include -shared. LDFLAGS+= -shared d63 8 @ 1.23 log @"user-destdir" is default these days @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.22 2012/08/15 17:16:37 drochner Exp $ d6 1 d26 1 a26 1 SUBST_CLASSES+= numpy d51 7 @ 1.22 log @update to 1.6.2 changes: bugfixes pkgsrc change: mark Python3 ready @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.21 2012/08/14 21:04:21 fhajny Exp $ a13 2 PKG_DESTDIR_SUPPORT= user-destdir @ 1.21 log @The previous commit actually doesn't affect the build of math/py-numpy, but changes the py-numpy binary package in order for math/py-scipy to build successfully (at least on SmartOS). Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.20 2012/08/14 20:19:20 fhajny Exp $ d4 1 a4 1 DISTNAME= numpy-1.6.1 a5 1 PKGREVISION= 1 d17 1 @ 1.20 log @Fix build on SmartOS by making sure linker always gets -shared @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.19 2012/08/09 12:42:16 jperkin Exp $ d6 1 @ 1.19 log @Pass through the correct ABI flags as this package calls compilers directly. Fixes build on Solaris where ABI=32 with 64-bit compilers. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.18 2012/04/25 16:36:39 hans Exp $ d47 1 a47 1 # This package bypasses the wrappers and calls the compilers directly when @ 1.18 log @Always add -shared to LDFLAGS to work around some stupidity. Should fix pkg/44107, tested on SunOS and NetBSD. More can be found information here: http://projects.scipy.org/numpy/ticket/1101 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.17 2012/04/17 17:24:41 drochner Exp $ d47 4 @ 1.17 log @update to 1.6.1 changes: any new features, performance improvements and bug fixes, Some highlights are: -Re-introduction of datetime dtype support to deal with dates in arrays. -A new 16-bit floating point type. -A new iterator, which improves performance of many functions. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.16 2012/02/09 13:09:09 obache Exp $ d43 4 @ 1.16 log @distutils pkg, register egg-info. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.15 2011/12/20 16:38:30 joerg Exp $ d4 1 a4 2 DISTNAME= numpy-1.4.1 PKGREVISION= 3 d16 1 a16 1 USE_LANGUAGES+= c fortran77 @ 1.15 log @Make sure that builds with g95 create position independent code. Bump revision. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.14 2011/04/19 15:32:28 roy Exp $ d5 2 a6 2 PKGREVISION= 2 PKGNAME= ${PYPKGPREFIX}-numpy-1.4.1 a16 1 PYDISTUTILSPKG= yes d49 1 a49 1 .include "../../lang/python/extension.mk" @ 1.14 log @Just replace what we need. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.13 2011/04/19 13:14:28 roy Exp $ d5 1 a5 1 PKGREVISION= 1 @ 1.13 log @Use python correctly. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2010/07/30 10:36:30 asau Exp $ d22 6 a27 1 REPLACE_PYTHON+= *.py */*.py */*/*.py */*/*/*.py */*/*/*/*.py @ 1.12 log @"fortran" -> "fortran77" except where it is clear that it isn't F77. "fortran" is alias of "fortran77" for now, but it will change later. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2010/04/24 17:13:55 gls Exp $ d5 1 d22 6 a27 5 REPLACE_PYTHON+= numpy/core/scons_support.py REPLACE_PYTHON+= numpy/distutils/from_template.py REPLACE_PYTHON+= numpy/distutils/system_info.py REPLACE_PYTHON+= numpy/ma/bench.py REPLACE_PYTHON+= numpy/distutils/conv_template.py @ 1.11 log @Update to 1.4.1. From Wen Heping in PR pkg/43204. This minor release removes datetime support, which fixes the binary incompatibility issues with SciPy and other packages. It also includes several bug fixes. No new features are introduced. Bugs fixed ---------- - #1336: Fix for 1299 exposes Bus error on Sparc - #1379: CPU ID not set correctly on PARISC - #1388: frombuffer calls PyErr_Format without throwing an error - log1p - kaiser for M=1 - paver execution on Windows 7 for Python 2.6 - several fixes to Chebyshev and Polynomial @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2010/01/30 16:27:59 heinz Exp $ d17 1 a17 1 USE_LANGUAGES+= c fortran @ 1.10 log @Added LICENSE information. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2010/01/27 20:48:20 drochner Exp $ d4 2 a5 2 DISTNAME= numpy-1.4.0 PKGNAME= ${PYPKGPREFIX}-numpy-1.4.0 @ 1.9 log @update to 1.4.0 changes: - Faster import time - Extended array wrapping mechanism for ufuncs - New Neighborhood iterator (C-level only) - C99-like complex functions in npymath, and a lot of portability fixes for basic floating point math functions @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2009/12/04 21:23:22 markd Exp $ d12 1 @ 1.8 log @Fix so works again with non-default values of PKGSRC_FORTRAN. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2009/10/24 14:22:49 ahoka Exp $ d4 2 a5 3 DISTNAME= numpy-1.3.0 PKGNAME= ${PYPKGPREFIX}-numpy-1.3.0 PKGREVISION= 3 d37 4 @ 1.7 log @Follow f2c/libf2c split: bump revision of all packages that list Fortran in used languages. @ text @d6 1 a6 1 PKGREVISION= 2 d30 5 a34 1 .if !empty(PKGSRC_COMPILER:Mgcc) @ 1.6 log @Avoid picking up other fortran compilers when they are installed. Fixes build when lang/g95 is present on the system. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2009/09/10 19:03:26 wiz Exp $ d6 1 a6 1 PKGREVISION= 1 @ 1.5 log @Add a few REPLACE_PYTHON. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2009/07/25 12:08:26 markd Exp $ d27 7 @ 1.4 log @Update numpy to 1.3.0 This minor includes numerous bug fixes, official python 2.6 support, and several new features such as generalized ufuncs. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2009/06/26 19:47:14 joerg Exp $ d6 1 d21 7 @ 1.3 log @Allow Python 2.6 to fix dependencies of a number of other packages. Seems to build fine. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2008/12/19 22:09:55 markd Exp $ d4 2 a5 2 DISTNAME= numpy-1.1.0 PKGNAME= ${PYPKGPREFIX}-numpy-1.1.0 @ 1.2 log @user-destdir support. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1.1.1 2008/12/19 22:04:36 markd Exp $ a15 1 PYTHON_VERSIONS_ACCEPTED= 25 24 23 @ 1.1 log @Initial revision @ text @d1 1 a1 1 # $NetBSD$ d13 2 @ 1.1.1.1 log @Initial import of py-numpy 1.1.0 NumPy is a general-purpose array-processing package designed to efficiently manipulate large multi-dimensional arrays of arbitrary records without sacrificing too much speed for small multi-dimensional arrays. NumPy is built on the Numeric code base and adds features introduced by numarray as well as an extended C-API and the ability to create arrays of arbitrary type. There are also basic facilities for discrete fourier transform, basic linear algebra and random number generation. Pkgsrc issue: if the package build happens to find a fortran it prefers over the one pkgsrc is using it will try to use it and the wrong thing will happen. @ text @@