#include"boost/filesystem.hpp"
#include<iostream>
int main()
{
auto a2 = a1.
astype<
double>();
auto a3 = nc::linspace<int>(1, 10, 5);
auto a4 = nc::arange<int>(3, 7);
auto a5 = nc::eye<int>(4);
auto a6 = nc::zeros<int>(3, 4);
auto a8 = nc::ones<int>(3, 4);
auto a12 = nc::empty<int>(3, 4);
auto a14 = nc::random::randInt<int>({ 10, 10 }, 0, 100);
auto value = a14(2, 3);
auto slice = a14({ 2, 5 }, { 2, 5 });
auto rowSlice = a14(a14.rSlice(), 7);
auto values = a14[a14 > 50];
a14.putMask(a14 > 50, 666);
auto a15 = nc::random::randN<double>({3, 4});
auto a16 = nc::random::randInt<int>({3, 4}, 0, 10);
auto a17 = nc::random::rand<double>({3, 4});
auto a = nc::random::randInt<int>({3, 4}, 0, 10);
auto b = nc::random::randInt<int>({3, 4}, 0, 10);
auto c = nc::random::randInt<int>({3, 4}, 0, 10);
auto d = nc::random::randInt<int>({5, 5}, 0, 10);
for (auto it = a.begin(); it < a.end(); ++it)
{
std::cout << *it << " ";
}
std::cout << std::endl;
for (auto& arrayValue : a)
{
std::cout << arrayValue << " ";
}
std::cout << std::endl;
auto a37 = a == b;
auto a39 = a != b;
#ifdef __cpp_structured_bindings
#else
auto& rows = rowsCols.first;
auto& cols = rowsCols.second;
#endif
auto value5 = nc::sum<int>(a);
auto value6 = nc::prod<int>(a);
a.print();
std::cout << a << std::endl;
auto tempDir = boost::filesystem::temp_directory_path();
auto tempTxt = (tempDir / "temp.txt").string();
a.tofile(tempTxt, "\n");
auto a50 = nc::fromfile<int>(tempTxt, "\n");
auto tempBin = (tempDir / "temp.bin").string();
auto a51 = nc::load<int>(tempBin);
auto a60 = nc::power<int>(a, 4);
auto a71 = nc::norm<int>(a);
auto a72 = nc::dot<int>(a, b.transpose());
auto a73 = nc::random::randInt<int>({3, 3}, 0, 10);
auto a74 = nc::random::randInt<int>({4, 3}, 0, 10);
auto a75 = nc::random::randInt<int>({1, 4}, 0, 10);
auto a78 = nc::linalg::matrix_power<int>(a73, 3);
auto a79 = nc::linalg::multi_dot<int>({ a, b.transpose(),
c });
return 0;
}