Back to C-ASPT Contents Page
Vector and matrix printing functions
API Summary
- DT32S dispR32f(const DT32F x[], DT32S N);
- DT32S fdispR32f(FILE *f, const DT32F x[], DT32S N);
- DT32S dispC32f(const DT32F x[], DT32S N);
- DT32S fdispC32f(FILE *f, const DT32F x[], DT32S N);
- DT32S dispR32fc(const DT32FC x[], DT32S N);
- DT32S fdispR32fc(FILE *f, const DT32FC x[], DT32S N);
- DT32S dispC32fc(const DT32FC x[], DT32S N);
- DT32S fdispC32fc(FILE *f, const DT32FC x[], DT32S N);
- DT32S dispM32f(const DT32F x[],DT32S col,DT32S row);
- DT32S fdispM32f(FILE *f,const DT32F x[],DT32S col,DT32S row);
- DT32S dispMT32f(const DT32F x[],DT32S col,DT32S row);
- DT32S fdispMT32f(FILE *f,const DT32F x[],DT32S col,DT32S row);
- DT32S dispMc32f(const DT32F x[],DT32S chL,DT32S Nin,DT32S Nout,DT32S N);
- DT32S fdispMc32f(FILE *f,const DT32F x[],DT32S chL,DT32S Nin,DT32S Nout,DT32S N);
- DT32S dispMcR32f(const DT32F x[],DT32S chL,DT32S Nin,DT32S in,DT32S out,DT32S N);
- DT32S fdispMcR32f(FILE *f,const DT32F x[],DT32S chL,DT32S Nin,DT32S in,DT32S out,DT32S N);
- DT32S dispMcC32f(const DT32F x[],DT32S chL,DT32S Nin,DT32S in,DT32S out,DT32S N);
- DT32S fdispMcC32f(FILE *f,const DT32F x[],DT32S chL,DT32S Nin,DT32S in,DT32S out,DT32S N);
Description
Implements functions to display vectors and matrixes as a column or row of numbers.
Copyright
Copyright (c) DSP ALGORITHMS 2003; all rights reserved.
<< Back to top
dispR32f
DT32S dispR32f(const DT32F x[], DT32S N);
Prints N elements of the vector x[] to stdout as a row vector.- Input Parameters :
- x : array to be printed
- N : number of elements to be printed
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
fdispR32f
DT32S fdispR32f(FILE *f, const DT32F x[], DT32S N);
Prints N elements of the vector x[] to the file ID f as a row vector.- Input Parameters :
- f : file id obtained from calling fopen()
- x : array to be printed
- N : number of elements to be printed
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
dispC32f
DT32S dispC32f(const DT32F x[], DT32S N);
Prints N elements of the vector x[] to stdout as a column vector.- Input Parameters :
- x : array to be printed
- N : number of elements to be printed
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
fdispC32f
DT32S fdispC32f(FILE *f, const DT32F x[], DT32S N);
Prints N elements of the vector x[] to the file ID f as a column vector.- Input Parameters :
- f : file id obtained from calling fopen()
- x : array to be printed
- N : number of elements to be printed
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
dispR32fc
DT32S dispR32fc(const DT32FC x[], DT32S N);
Prints N elements of the complex vector x[] to stdout as a row vector.- Input Parameters :
- x : complex array to be printed
- N : number of complex elements to be printed
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
fdispR32fc
DT32S fdispR32fc(FILE *f, const DT32FC x[], DT32S N);
Prints N elements of the complex vector x[] to the file ID f as a row vector.- Input Parameters :
- f : file id obtained from calling fopen()
- x : complex array to be printed
- N : number of complex elements to be printed
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
dispC32fc
DT32S dispC32fc(const DT32FC x[], DT32S N);
Prints N elements of the complex vector x[] to stdout as a column vector.- Input Parameters :
- x : complex array to be printed
- N : number of complex elements to be printed
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
fdispR32fc
DT32S fdispR32fc(FILE *f, const DT32FC x[], DT32S N);
Prints N elements of the complex vector x[] to the file ID f as a column vector.- Input Parameters :
- f : file id obtained from calling fopen()
- x : complex array to be printed
- N : number of complex elements to be printed
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
dispMc32f
DT32S dispMc32f(const DT32F x[],DT32S chL,DT32S Nin,DT32S Nout,DT32S N);
Prints the first N coefficients of each channel from the multi-channel transfer function x[]. Coefficients are stored in x[] as follows: x(0,0) x(1,0) .. x(Nin,0) x(0,1) .. x(Nin,1) .. x(0,Nout) .. x(Nin,Nout)- Input Parameters :
- x : multi-channel system to be displayed
- chL : number of coefficients in each channel
- Nin : number of system inputs
- Nout : number of system outputs
- N : number of elements to be printed for each channel
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
fdispMc32f
DT32S fdispMc32f(FILE *f,const DT32F x[],DT32S chL,DT32S Nin,DT32S Nout,DT32S N);
Prints the first N coefficients of each channel from the multi-channel transfer function x[] to file. Coefficients are stored in x[] as follows: x(0,0) x(1,0) .. x(Nin,0) x(0,1) .. x(Nin,1) .. x(0,Nout) .. x(Nin,Nout)- Input Parameters :
- f : file id obtained from calling fopen()
- x : multi-channel system to be displayed
- chL : number of coefficients in each channel
- Nin : number of system inputs
- Nout : number of system outputs
- N : number of elements to be printed for each channel
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
dispMcC32f
DT32S dispMcC32f(const DT32F x[],DT32S chL,DT32S Nin,DT32S in,DT32S out,DT32S N);
Prints the first N coefficients of channel (in,out) from the multi-channel transfer function x[] as column. Coefficients are stored in x[] as follows: x(0,0) x(1,0) .. x(Nin,0) x(0,1) .. x(Nin,1) .. x(0,Nout) .. x(Nin,Nout)- Input Parameters :
- x : multi-channel system to be displayed
- chL : number of coefficients in each channel
- Nin : number of system inputs
- in : index of the input channel
- out : number of output channel
- N : number of elements to be printed for each channel
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
fdispMcC32f
DT32S fdispMcC32f(FILE *f,const DT32F x[],DT32S chL,DT32S Nin,DT32S in,DT32S out,DT32S N);
Prints the first N coefficients of channel (in,out) from the multi-channel transfer function x[] as column to the file f. Coeff. are stored in x[] as follows: x(0,0) x(1,0) .. x(Nin,0) x(0,1) .. x(Nin,1) .. x(0,Nout) .. x(Nin,Nout)- Input Parameters :
- f : file id obtained from calling fopen()
- x : multi-channel system to be displayed
- chL : number of coefficients in each channel
- Nin : number of system inputs
- in : index of the input channel
- out : number of output channel
- N : number of elements to be printed for each channel
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
dispMcR32f
DT32S dispMcR32f(const DT32F x[],DT32S chL,DT32S Nin,DT32S in,DT32S out,DT32S N);
Prints the first N coefficients of channel (in,out) from the multi-channel transfer function x[] as row. Coefficients are stored in x[] as follows: x(0,0) x(1,0) .. x(Nin,0) x(0,1) .. x(Nin,1) .. x(0,Nout) .. x(Nin,Nout)- Input Parameters :
- x : multi-channel system to be displayed
- chL : number of coefficients in each channel
- Nin : number of system inputs
- in : index of the input channel
- out : number of output channel
- N : number of elements to be printed for each channel
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
fdispMcR32f
DT32S fdispMcR32f(FILE *f,const DT32F x[],DT32S chL,DT32S Nin,DT32S in,DT32S out,DT32S N);
Prints the first N coefficients of channel (in,out) from the multi-channel transfer function x[] as row to the file f. Coeff. are stored in x[] as follows: x(0,0) x(1,0) .. x(Nin,0) x(0,1) .. x(Nin,1) .. x(0,Nout) .. x(Nin,Nout)- Input Parameters :
- f : file id obtained from calling fopen()
- x : multi-channel system to be displayed
- chL : number of coefficients in each channel
- Nin : number of system inputs
- in : index of the input channel
- out : number of output channel
- N : number of elements to be printed for each channel
- Returns :
-
number of characters written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
dispM32f
DT32S dispM32f(const DT32F x[],DT32S col,DT32S row);
Prints a matrix x with col columns and row rows. The matrix is stored as [row1 row2 .. rowN] - Input Parameters :
- x : matrix to be displayed
- col : number of matrix columns
- row : number of matrix rows to be displayed
- Returns :
-
number of elements written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
fdispM32f
DT32S fdispM32f(FILE *f,const DT32F x[],DT32S col,DT32S row);
Prints a matrix x with col columns and row rows to the file f. The matrix is stored as [row1 row2 .. rowN] - Input Parameters :
- f : file id obtained from calling fopen()
- x : matrix to be displayed
- col : number of matrix columns
- row : number of matrix rows to be displayed
- Returns :
-
number of elements written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
dispMT32f
DT32S dispMT32f(const DT32F x[],DT32S col,DT32S row);
Prints a matrix x with col columns and row rows in transposed form. The matrix is stored as [row1 row2 .. rowN] - Input Parameters :
- x : matrix to be displayed
- col : number of matrix columns
- row : number of matrix rows to be displayed
- Returns :
-
number of elements written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions
<< Back to top
fdispMT32f
DT32S fdispMT32f(FILE *f,const DT32F x[],DT32S col,DT32S row);
Prints a matrix x with col columns and row rows to the file f in a transposed form. The matrix is stored as [row1 row2 .. rowN] - Input Parameters :
- f : file id obtained from calling fopen()
- x : matrix to be displayed
- col : number of matrix columns
- row : number of matrix rows to be displayed
- Returns :
-
number of elements written, otherwise negative int if error occurs.
- Output Parameters :
- Error Conditions