FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Trying MSVS 2019 by tdegeus · Pull Request #278 · xtensor-stack/xtensor-python · GitHub

Repository navigation

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .cpp  (1) .py  (1) .yml  (6) All 3 file types selected
Deleted files Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
2 changes: 1 addition & 1 deletion .appveyor.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build: false

os: Visual Studio 2015
os: Visual Studio 2019

platform:
- x64
Expand Down
38 changes: 0 additions & 38 deletions .azure-pipelines/azure-pipelines-linux-clang.yml

This file was deleted.

33 changes: 0 additions & 33 deletions .azure-pipelines/azure-pipelines-linux-gcc.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .azure-pipelines/azure-pipelines-osx.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .azure-pipelines/unix-build.yml

This file was deleted.

8 changes: 0 additions & 8 deletions azure-pipelines.yml

This file was deleted.

6 changes: 6 additions & 0 deletions test_python/main.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ using complex_t = std::complex<double>;

// Examples

auto argmin(xt::pyarray<int>& m)
{
return xt::argmin(m);
}

double example1(xt::pyarray<double>& m)
{
return m(0);
Expand Down Expand Up @@ -291,6 +296,7 @@ PYBIND11_MODULE(xtensor_python_test, m)

m.doc() = "Test module for xtensor python bindings";

m.def("argmin", argmin);
m.def("example1", example1);
m.def("example2", example2);
m.def("example3_xarray", example3_xarray);
Expand Down
3 changes: 3 additions & 0 deletions test_python/test_pyarray.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class XtensorTest(TestCase):
def test_rm(self):
xt.test_rm(np.array([10], dtype=int))

def test_argmin(self):
self.assertEqual(1, xt.argmin([7, 5, 6]))

def test_example1(self):
self.assertEqual(4, xt.example1([4, 5, 6]))

Expand Down

Back | FazBrowse Home | New Git URL