add spaces for PICout operators
This commit is contained in:
@@ -771,6 +771,8 @@ inline std::ostream & operator<<(std::ostream & s, const PIMathMatrixT<Rows, Col
|
||||
//! \return непечатанная в консоль \a PICout.
|
||||
template<uint Rows, uint Cols, typename Type>
|
||||
inline PICout operator<<(PICout s, const PIMathMatrixT<Rows, Cols, Type> & m) {
|
||||
s.space();
|
||||
s.saveAndSetControls(0);
|
||||
s << "{";
|
||||
for (uint r = 0; r < Rows; ++r) {
|
||||
for (uint c = 0; c < Cols; ++c) {
|
||||
@@ -780,6 +782,7 @@ inline PICout operator<<(PICout s, const PIMathMatrixT<Rows, Cols, Type> & m) {
|
||||
if (r < Rows - 1) s << PICoutManipulators::NewLine << " ";
|
||||
}
|
||||
s << "}";
|
||||
s.restoreControls();
|
||||
return s;
|
||||
}
|
||||
|
||||
@@ -1465,6 +1468,8 @@ inline std::ostream & operator<<(std::ostream & s, const PIMathMatrix<Type> & m)
|
||||
//! \return непечатанная в консоль \a PICout.
|
||||
template<typename Type>
|
||||
inline PICout operator<<(PICout s, const PIMathMatrix<Type> & m) {
|
||||
s.space();
|
||||
s.saveAndSetControls(0);
|
||||
s << "Matrix{";
|
||||
for (uint r = 0; r < m.rows(); ++r) {
|
||||
for (uint c = 0; c < m.cols(); ++c) {
|
||||
@@ -1474,6 +1479,7 @@ inline PICout operator<<(PICout s, const PIMathMatrix<Type> & m) {
|
||||
if (r < m.rows() - 1) s << PICoutManipulators::NewLine << " ";
|
||||
}
|
||||
s << "}";
|
||||
s.restoreControls();
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user