Skip to content

Commit 8edf712

Browse files
author
=
committed
pushing changes for v1.9.0
1 parent 0d7eb13 commit 8edf712

File tree

1,842 files changed

+25006
-13581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,842 files changed

+25006
-13581
lines changed

CMakeLists.txt

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
cmake_minimum_required(VERSION 3.14...3.99)
22

33
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
4+
include(NumCppTools)
5+
numcpp_find_version_file("" NUMCPP_VERSION_FILE)
6+
message(STATUS "Found version file: ${NUMCPP_VERSION_FILE}")
7+
numcpp_read_version("${NUMCPP_VERSION_FILE}" "" VERSION_STRING)
8+
9+
project("NumCpp"
10+
VERSION "${VERSION_STRING}"
11+
DESCRIPTION "A Templatized Header Only C++ Implementation of the Python NumPy Library"
12+
HOMEPAGE_URL "https://github.com/dpilger26/NumCpp"
13+
LANGUAGES CXX
14+
)
15+
16+
message(STATUS "Building ${PROJECT_NAME} version ${VERSION_STRING}")
417

518
if(NOT CMAKE_BUILD_TYPE)
619
set(CMAKE_BUILD_TYPE Release)
@@ -41,18 +54,29 @@ endif()
4154
set(ALL_INTERFACE_TARGET compile_definitions)
4255
add_library(${ALL_INTERFACE_TARGET} INTERFACE)
4356

57+
target_compile_definitions(${ALL_INTERFACE_TARGET} INTERFACE $<$<CXX_COMPILER_ID:MSVC>:NOMINMAX>)
58+
4459
if(NUMCPP_NO_USE_BOOST)
4560
target_compile_definitions(${ALL_INTERFACE_TARGET} INTERFACE -DNUMCPP_NO_USE_BOOST)
4661
else()
47-
find_package(Boost 1.68.0 REQUIRED)
48-
target_link_libraries(${ALL_INTERFACE_TARGET} INTERFACE Boost::boost)
62+
find_package(Boost 1.68.0 REQUIRED
63+
COMPONENTS
64+
date_time
65+
)
66+
target_link_libraries(${ALL_INTERFACE_TARGET} INTERFACE
67+
Boost::boost
68+
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>:Boost::date_time>
69+
)
4970
endif()
5071

5172
if(NUMCPP_USE_MULTITHREAD)
52-
target_compile_definitions(${ALL_INTERFACE_TARGET} INTERFACE -DNUMCPP_USE_MULTITHREAD)
73+
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
74+
find_package(TBB REQUIRED)
75+
endif()
5376
target_link_libraries(${ALL_INTERFACE_TARGET} INTERFACE
54-
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>:tbb>
77+
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>:TBB::tbb>
5578
)
79+
target_compile_definitions(${ALL_INTERFACE_TARGET} INTERFACE -DNUMCPP_USE_MULTITHREAD)
5680
endif()
5781

5882
target_compile_options(${ALL_INTERFACE_TARGET} INTERFACE
@@ -78,21 +102,6 @@ target_link_options(${ALL_INTERFACE_TARGET} INTERFACE
78102
)
79103

80104
get_filename_component(NUMCPP_INCLUDES ./include ABSOLUTE)
81-
82-
include(NumCppTools)
83-
numcpp_find_version_file("" NUMCPP_VERSION_FILE)
84-
message(STATUS "Found version file: ${NUMCPP_VERSION_FILE}")
85-
numcpp_read_version("${NUMCPP_VERSION_FILE}" "" VERSION_STRING)
86-
87-
project("NumCpp"
88-
VERSION "${VERSION_STRING}"
89-
DESCRIPTION "A Templatized Header Only C++ Implementation of the Python NumPy Library"
90-
HOMEPAGE_URL "https://github.com/dpilger26/NumCpp"
91-
LANGUAGES CXX
92-
)
93-
94-
message(STATUS "Building ${PROJECT_NAME} version ${VERSION_STRING}")
95-
96105
set(OUTPUT_BINARY_DIR ${PROJECT_SOURCE_DIR}/bin/$<0:>)
97106

98107
if (BUILD_TESTS OR BUILD_MULTIPLE_TEST)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 David Pilger
3+
Copyright (C) 2018-2023 David Pilger
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 143 additions & 145 deletions
Large diffs are not rendered by default.

cmake/NumCppConfig.cmake.in

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@ if(NOT TARGET @PROJECT_NAME@::@PROJECT_NAME@)
2121
set_and_check(@PROJECT_NAME@_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_INCLUDEDIR@")
2222
check_required_components("@PROJECT_NAME@")
2323

24-
find_package(Boost REQUIRED)
25-
set_property(TARGET @PROJECT_NAME@::@PROJECT_NAME@ APPEND PROPERTY INTERFACE_LINK_LIBRARIES Boost::headers)
24+
find_package(Boost REQUIRED COMPONENTS date_time)
25+
set_property(TARGET @PROJECT_NAME@::@PROJECT_NAME@ APPEND
26+
PROPERTY
27+
INTERFACE_LINK_LIBRARIES
28+
Boost::boost
29+
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>:Boost::date_time>
30+
)
2631

2732
message(STATUS "Found NumCpp: ${@PROJECT_NAME@_INCLUDE_DIR} (found version ${@PROJECT_NAME@_VERSION})")
2833
endif()

develop/ToDo.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
# TODO
2+
3+
* Issue #177: make index inputs any integer type
4+
* Issue #170: insert()
5+
* Issue #74 #147, #174: column and row broadcasting where applicable

docs/doxygen/html/_bisection_8hpp.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<td id="projectlogo"><img alt="Logo" src="NumCppLogoDoxygen.png" /></td>
4747
<td id="projectalign" style="padding-left: 0.5em;">
4848
<div id="projectname">NumCpp
49-
&#160;<span id="projectnumber">2.8.0</span>
49+
&#160;<span id="projectnumber">2.9.0</span>
5050
</div>
5151
<div id="projectbrief">A Templatized Header Only C++ Implementation of the Python NumPy Library</div>
5252
</td>
@@ -131,7 +131,7 @@
131131
</table>
132132
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
133133
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>David Pilger <a href="#" onclick="location.href='mai'+'lto:'+'dpi'+'lg'+'er2'+'6@'+'gma'+'il'+'.co'+'m'; return false;">dpilg<span style="display: none;">.nosp@m.</span>er26<span style="display: none;">.nosp@m.</span>@gmai<span style="display: none;">.nosp@m.</span>l.co<span style="display: none;">.nosp@m.</span>m</a> <a href="https://github.com/dpilger26/NumCpp">GitHub Repository</a></dd></dl>
134-
<p>License Copyright 2019 Benjamin Mahr Copyright 2018-2022 David Pilger</p>
134+
<p>License Copyright 2019 Benjamin Mahr Copyright 2018-2023 David Pilger</p>
135135
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :</p>
136136
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
137137
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>

docs/doxygen/html/_bisection_8hpp_source.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<td id="projectlogo"><img alt="Logo" src="NumCppLogoDoxygen.png" /></td>
4747
<td id="projectalign" style="padding-left: 0.5em;">
4848
<div id="projectname">NumCpp
49-
&#160;<span id="projectnumber">2.8.0</span>
49+
&#160;<span id="projectnumber">2.9.0</span>
5050
</div>
5151
<div id="projectbrief">A Templatized Header Only C++ Implementation of the Python NumPy Library</div>
5252
</td>

docs/doxygen/html/_boost_interface_8hpp.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<td id="projectlogo"><img alt="Logo" src="NumCppLogoDoxygen.png" /></td>
4747
<td id="projectalign" style="padding-left: 0.5em;">
4848
<div id="projectname">NumCpp
49-
&#160;<span id="projectnumber">2.8.0</span>
49+
&#160;<span id="projectnumber">2.9.0</span>
5050
</div>
5151
<div id="projectbrief">A Templatized Header Only C++ Implementation of the Python NumPy Library</div>
5252
</td>
@@ -110,7 +110,7 @@
110110
<p><a href="_boost_interface_8hpp_source.html">Go to the source code of this file.</a></p>
111111
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
112112
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>David Pilger <a href="#" onclick="location.href='mai'+'lto:'+'dpi'+'lg'+'er2'+'6@'+'gma'+'il'+'.co'+'m'; return false;">dpilg<span style="display: none;">.nosp@m.</span>er26<span style="display: none;">.nosp@m.</span>@gmai<span style="display: none;">.nosp@m.</span>l.co<span style="display: none;">.nosp@m.</span>m</a> <a href="https://github.com/dpilger26/NumCpp">GitHub Repository</a></dd></dl>
113-
<p>License Copyright 2018-2022 David Pilger</p>
113+
<p>License Copyright 2018-2023 David Pilger</p>
114114
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :</p>
115115
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
116116
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>

docs/doxygen/html/_boost_interface_8hpp_source.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<td id="projectlogo"><img alt="Logo" src="NumCppLogoDoxygen.png" /></td>
4747
<td id="projectalign" style="padding-left: 0.5em;">
4848
<div id="projectname">NumCpp
49-
&#160;<span id="projectnumber">2.8.0</span>
49+
&#160;<span id="projectnumber">2.9.0</span>
5050
</div>
5151
<div id="projectbrief">A Templatized Header Only C++ Implementation of the Python NumPy Library</div>
5252
</td>

docs/doxygen/html/_boost_numpy_ndarray_helper_8hpp.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<td id="projectlogo"><img alt="Logo" src="NumCppLogoDoxygen.png" /></td>
4747
<td id="projectalign" style="padding-left: 0.5em;">
4848
<div id="projectname">NumCpp
49-
&#160;<span id="projectnumber">2.8.0</span>
49+
&#160;<span id="projectnumber">2.9.0</span>
5050
</div>
5151
<div id="projectbrief">A Templatized Header Only C++ Implementation of the Python NumPy Library</div>
5252
</td>
@@ -110,7 +110,7 @@
110110
<p><a href="_boost_numpy_ndarray_helper_8hpp_source.html">Go to the source code of this file.</a></p>
111111
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
112112
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>David Pilger <a href="#" onclick="location.href='mai'+'lto:'+'dpi'+'lg'+'er2'+'6@'+'gma'+'il'+'.co'+'m'; return false;">dpilg<span style="display: none;">.nosp@m.</span>er26<span style="display: none;">.nosp@m.</span>@gmai<span style="display: none;">.nosp@m.</span>l.co<span style="display: none;">.nosp@m.</span>m</a> <a href="https://github.com/dpilger26/NumCpp">GitHub Repository</a></dd></dl>
113-
<p>License Copyright 2018-2022 David Pilger</p>
113+
<p>License Copyright 2018-2023 David Pilger</p>
114114
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :</p>
115115
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
116116
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>

0 commit comments

Comments
 (0)