1 Star 0 Fork 16

一张弓/NumCpp

forked from Gitee 极速下载/NumCpp 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
example01.cpp 736 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tobias Knopp 提交于 2013-10-22 13:34 +08:00 . win changes
#include <numcpp/core.h>
#include <numcpp/base.h>
#include <numcpp/fft.h>
#include <numcpp/expressions.h>
#include <numcpp/graphics.h>
using namespace numcpp;
int main()
{
Array<double> x = ones(16);
auto y = fft(x);
auto z = reshape(y,4,4);
print(z);
auto p = phantom(256);
export_image(p, "C:\\test.pdf", 0, 1, colormaps::autumn);
}
/*!
@page example01 Simple Example
This is a simple example of the usage of NumCpp. First a vector of 16 elements is initialized with ones.
Then a one-dimensional FFT of x is calculated. Then the vector is reshaped into a 4x4 matrix and printed
to the console.
@code
int main()
{
Array<double> x = ones(16);
auto y = fft(x);
auto z = reshape(y,4,4);
print(z);
}
@endcode
*/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/a-bow/numcpp.git
git@gitee.com:a-bow/numcpp.git
a-bow
numcpp
NumCpp
master

搜索帮助