NumCpp
2.6.2
A Templatized Header Only C++ Implementation of the Python NumPy Library
print.hpp
Go to the documentation of this file.
1
28
#pragma once
29
30
#include "
NumCpp/Core/Internal/StaticAsserts.hpp
"
31
#include "
NumCpp/NdArray.hpp
"
32
33
#include <iostream>
34
35
namespace
nc
36
{
37
//============================================================================
38
// Method Description:
46
template
<
typename
dtype>
47
void
print
(
const
NdArray<dtype>
& inArray)
48
{
49
STATIC_ASSERT_ARITHMETIC_OR_COMPLEX
(dtype);
50
51
std::cout << inArray;
52
}
53
}
// namespace nc
NdArray.hpp
StaticAsserts.hpp
STATIC_ASSERT_ARITHMETIC_OR_COMPLEX
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition:
StaticAsserts.hpp:50
nc::NdArray
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition:
NdArrayCore.hpp:72
nc
Definition:
Coordinate.hpp:45
nc::print
void print(const NdArray< dtype > &inArray)
Definition:
print.hpp:47
include
NumCpp
Functions
print.hpp
Generated by
1.9.2