numcpp速度对比_NumCpp - Python Numpy的C++实现

NumCpp是一个C++头文件库,实现了Python的NumPy库的功能。它支持C++14及更高版本,适用于多种编译器和Boost版本。这个库提供了NdArray容器、初始化函数、切片和广播操作、随机数生成、连接操作、对角线和三角形矩阵操作、迭代、逻辑操作、比较、统计汇总、输入输出以及各种数学函数,包括指数、幂、三角和双曲函数等。它还提供了与NumPy类似的接口,方便从NumPy迁移到NumCpp。
摘要由CSDN通过智能技术生成

NumCpp: A Templatized Header Only C++ Implementation of the Python NumPy Library

Author: David Pilger dpilger26@gmail.com

Version: 2.0.0

License

Copyright 2020 David Pilger

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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

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.

Testing

C++ Standards: C++14, C++17, and C++2a

Compilers: VS 2017/2019, GCC 6.5.0/7.5.0/8.4.0/9.3.0, and Clang 8.0/9.0/10.0

Boost Versions: 1.68, 1.70, 1.72, and 1.73

Release Notes

Version 2.0.0

Dropped support of C++11, now requires a C++14 or higher compiler

Added support for std::complex, closing Issue #58

Added more NdArray constructors for STL containers including std::vector<:vector>>, closing Issue #59

Added polyfit routine inline with Numpy polyfit, closing Issue #61

Added ability to use NdArray as con

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值