39 for (
int i = 0; i < v.
length(); i++) {
40 temp(i) = v(i).unfix();
48 for (
int i = 0; i < v.
length(); i++) {
49 temp(i) = v(i).unfix();
57 for (
int i = 0; i < m.
rows(); i++) {
58 for (
int j = 0; j < m.
cols(); j++) {
59 temp(i, j) = m(i, j).unfix();
68 for (
int i = 0; i < m.
rows(); i++) {
69 for (
int j = 0; j < m.
cols(); j++) {
70 temp(i, j) = m(i, j).unfix();
79 return Fix((tmp >= 0 ? tmp : -tmp),
Definitions of a set of functions for Fix, Fixed, CFix and CFixed classes.
vec imag(const cvec &data)
Imaginary part of complex values.
cvec conj(const cvec &x)
Conjugate of complex value.
cmat to_cmat(const Mat< T > &m)
Converts a Mat<T> to cmat.
mat to_mat(const Mat< T > &m)
Converts a Mat<T> to mat.
fixrep get_re() const
Get data representation (mainly for internal use since it reveals the representation type) ...
int cols() const
The number of columns.
Complex fixed-point data type.
vec to_vec(const Vec< T > &v)
Converts a Vec<T> to vec.
int length() const
The size of the vector.
fixrep get_im() const
Get data representation for imaginary part (mainly for internal use since it reveals the representati...
int rows() const
The number of rows.
cvec to_cvec(const Vec< T > &v)
Converts a Vec<T> to cvec.
fixrep get_re() const
Get data representation for real part (mainly for internal use since it reveals the representation ty...
bin abs(const bin &inbin)
absolute value of bin
int64_t fixrep
Representation for fixed-point data types.
vec real(const cvec &data)
Real part of complex values.
int get_shift() const
Get shift.