Skip to content
Snippets Groups Projects
Commit 5ef677d7 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

add operator<<

[[Imported from SVN: r8543]]
parent d5866fd2
No related branches found
No related tags found
No related merge requests found
......@@ -106,4 +106,20 @@ private:
size_t N3_;
};
//! Output operator for TensorSSD
template <class T, int N1, int N2>
inline std::ostream& operator<< (std::ostream& s, const TensorSSD<T,N1,N2>& tensor)
{
for (int i=0; i<N1; i++) {
for (int j=0; j<N2; j++) {
for (size_t k=0; k<tensor.dim(2); k++)
s << tensor(i,j,k) << " ";
s << std::endl;
}
s << std::endl;
}
return s;
}
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment