Go to the source code of this file.
std::ostream& operator<< |
( |
std::ostream & |
s, |
|
|
const zhematrix & |
mat |
|
) |
| |
|
inline |
Definition at line 65 of file zhematrix-io.hpp.
References conj(), i(), imag(), and zhematrix::n.
67 for(CPPL_INT
i=0;
i<mat.
n;
i++){
68 for(CPPL_INT j=0; j<mat.
n; j++){
69 if(
i>j){ s <<
" " << mat(
i,j) <<
" "; }
70 else if(
i==j){ s <<
" " << std::real(mat(
i,
i)) <<
" "; }
71 else{ s <<
"{" <<
std::conj(mat(j,
i)) <<
"} "; }
78 std::cerr <<
"The " <<
i <<
"th diagonal component of the zhematrix is not a real number." << std::endl;
_dgematrix i(const _dgbmatrix &mat)
_zcovector conj(const _zcovector &vec)
CPPL_INT n
matrix column size
dcovec3 imag(const dquater &q)