spLib
|
File I/O for Vector (<sp/fileio.h>) | |
spSVector | xsvreadssignal (const char *filename, long headlen, int swap) |
spLVector | xlvreadlsignal (const char *filename, long headlen, int swap) |
spFVector | xfvreadfsignal (const char *filename, long headlen, int swap) |
spDVector | xdvreaddsignal (const char *filename, long headlen, int swap) |
spDVector | xdvreadssignal (const char *filename, long headlen, int swap) |
spDVector | xdvreadlsignal (const char *filename, long headlen, int swap) |
spDVector | xdvreadfsignal (const char *filename, long headlen, int swap) |
spBool | svwritessignal (const char *filename, spSVector vector, int swap) |
spBool | lvwritelsignal (const char *filename, spLVector vector, int swap) |
spBool | fvwritefsignal (const char *filename, spFVector vector, int swap) |
spBool | dvwritedsignal (const char *filename, spDVector vector, int swap) |
spBool | dvwritessignal (const char *filename, spDVector vector, int swap) |
spBool | dvwritelsignal (const char *filename, spDVector vector, int swap) |
spBool | dvwritefsignal (const char *filename, spDVector vector, int swap) |
#define | xdvreaddvector(filename, swap) xdvreaddsignal((filename), 0, (swap)) |
#define | xdvreadsvector(filename, swap) xdvreadssignal((filename), 0, (swap)) |
#define | xdvreadlvector(filename, swap) xdvreadlsignal((filename), 0, (swap)) |
#define | xdvreadfvector(filename, swap) xdvreadfsignal((filename), 0, (swap)) |
#define | dvwritedvector(filename, vector, swap) dvwritedsignal(filename, vector, swap) |
#define | dvwritesvector(filename, vector, swap) dvwritessignal(filename, vector, swap) |
#define | dvwritelvector(filename, vector, swap) dvwritelsignal(filename, vector, swap) |
#define | dvwritefvector(filename, vector, swap) dvwritefsignal(filename, vector, swap) |
#define | xfvreadfvector(filename, swap) xfvreadfsignal((filename), 0, (swap)) |
#define | fvwritefvector(filename, vector, swap) fvwritefsignal(filename, vector, swap) |
#define | xlvreadlvector(filename, swap) xlvreadlsignal((filename), 0, (swap)) |
#define | lvwritelvector(filename, vector, swap) lvwritelsignal(filename, vector, swap) |
#define | xsvreadsvector(filename, swap) xsvreadssignal((filename), 0, (swap)) |
#define | svwritesvector(filename, vector, swap) svwritessignal(filename, vector, swap) |
File I/O for Matrix (<sp/fileio.h>) | |
spSMatrix | xsmreadsmatrix (const char *filename, long ncol, int swap) |
spLMatrix | xlmreadlmatrix (const char *filename, long ncol, int swap) |
spFMatrix | xfmreadfmatrix (const char *filename, long ncol, int swap) |
spDMatrix | xdmreaddmatrix (const char *filename, long ncol, int swap) |
spDMatrix | xdmreadsmatrix (const char *filename, long ncol, int swap) |
spDMatrix | xdmreadlmatrix (const char *filename, long ncol, int swap) |
spDMatrix | xdmreadfmatrix (const char *filename, long ncol, int swap) |
spBool | smwritesmatrix (const char *filename, spSMatrix mat, int swap) |
spBool | lmwritelmatrix (const char *filename, spLMatrix mat, int swap) |
spBool | fmwritefmatrix (const char *filename, spFMatrix mat, int swap) |
spBool | dmwritedmatrix (const char *filename, spDMatrix mat, int swap) |
spBool | dmwritesmatrix (const char *filename, spDMatrix mat, int swap) |
spBool | dmwritelmatrix (const char *filename, spDMatrix mat, int swap) |
spBool | dmwritefmatrix (const char *filename, spDMatrix mat, int swap) |
Text I/O for Vector (<sp/fileio.h>) | |
spBool | svreadsvector_txt (const char *filename, spSVector vector) |
spBool | lvreadlvector_txt (const char *filename, spLVector vector) |
spBool | fvreadfvector_txt (const char *filename, spFVector vector) |
spBool | dvreaddvector_txt (const char *filename, spDVector vector) |
spSVector | xsvreadsvector_txt (const char *filename) |
spLVector | xlvreadlvector_txt (const char *filename) |
spFVector | xfvreadfvector_txt (const char *filename) |
spDVector | xdvreaddvector_txt (const char *filename) |
spBool | svreadcol_txt (const char *filename, int col, spSVector vector) |
spBool | lvreadcol_txt (const char *filename, int col, spLVector vector) |
spBool | fvreadcol_txt (const char *filename, int col, spFVector vector) |
spBool | dvreadcol_txt (const char *filename, int col, spDVector vector) |
spSVector | xsvreadcol_txt (const char *filename, int col) |
spLVector | xlvreadcol_txt (const char *filename, int col) |
spFVector | xfvreadcol_txt (const char *filename, int col) |
spDVector | xdvreadcol_txt (const char *filename, int col) |
spBool | svwritesvector_txt (const char *filename, spSVector vector) |
spBool | lvwritelvector_txt (const char *filename, spLVector vector) |
spBool | fvwritefvector_txt (const char *filename, spFVector vector) |
spBool | dvwritedvector_txt (const char *filename, spDVector vector) |
Vector Modification for I/O (<sp/fileio.h>) | |
float | fvmaxamp (spFVector vec) |
double | dvmaxamp (spDVector vec) |
float | fvadjustamp (spFVector vec, float amp) |
double | dvadjustamp (spDVector vec, double amp) |
float | fvlimitamp (spFVector vec, float amp) |
double | dvlimitamp (spDVector vec, double amp) |
spFVector | xfvextractchannel (spFVector x, int channel, int num_channel) |
spDVector | xdvextractchannel (spDVector x, int channel, int num_channel) |
Vector Dump (<sp/fileio.h>) | |
void | svdump (spSVector vec) |
void | lvdump (spLVector vec) |
void | fvdump (spFVector vec) |
void | dvdump (spDVector vec) |
void | svfdump (spSVector vec, FILE *fp) |
void | lvfdump (spLVector vec, FILE *fp) |
void | fvfdump (spFVector vec, FILE *fp) |
void | dvfdump (spDVector vec, FILE *fp) |
void | svnfdump (FILE *fp,...) |
void | lvnfdump (FILE *fp,...) |
void | fvnfdump (FILE *fp,...) |
void | dvnfdump (FILE *fp,...) |
Matrix Dump (<sp/fileio.h>) | |
void | smfdump (spSMatrix mat, FILE *fp) |
void | lmfdump (spLMatrix mat, FILE *fp) |
void | fmfdump (spFMatrix mat, FILE *fp) |
void | dmfdump (spDMatrix mat, FILE *fp) |
#define | dmdump(mat) dmfdump(mat, (stdout)) |
#define | fmdump(mat) fmfdump(mat, (stdout)) |
#define | lmdump(mat) lmfdump(mat, (stdout)) |
#define | smdump(mat) smfdump(mat, (stdout)) |
#define dmdump | ( | mat | ) | dmfdump(mat, (stdout)) |
Displays the contents of the matrix mat
to the standard output.
|
related |
Loads a binary vector into a new vector.
[in] | filename | The name of the input vector file. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
|
related |
Loads a binary vector of short type into a new vector of double type.
[in] | filename | The name of the input vector file containing data of short type. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
|
related |
Loads a binary vector of long type into a new vector of double type.
[in] | filename | The name of the input vector file containing data of long type. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
|
related |
Loads a binary vector of float type into a new vector of double type.
[in] | filename | The name of the input vector file containing data of float type. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
|
related |
Saves the vector as a binary vector file.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
|
related |
Saves the vector of double type as a binary vector file of short type.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
|
related |
Saves the vector of double type as a binary vector file of long type.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
|
related |
Saves the vector of double type as a binary vector file of float type.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
#define fmdump | ( | mat | ) | fmfdump(mat, (stdout)) |
Displays the contents of the matrix mat
to the standard output.
|
related |
Loads a binary vector into a new vector.
[in] | filename | The name of the input vector file. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
|
related |
Saves the vector as a binary vector file.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
#define lmdump | ( | mat | ) | lmfdump(mat, (stdout)) |
Displays the contents of the matrix mat
to the standard output.
|
related |
Loads a binary vector into a new vector.
[in] | filename | The name of the input vector file. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
|
related |
Saves the vector as a binary vector file.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
#define smdump | ( | mat | ) | smfdump(mat, (stdout)) |
Displays the contents of the matrix mat
to the standard output.
|
related |
Loads a binary vector into a new vector.
[in] | filename | The name of the input vector file. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
|
related |
Saves the vector as a binary vector file.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
spSVector xsvreadssignal | ( | const char * | filename, |
long | headlen, | ||
int | swap ) |
Loads a binary signal into a new vector.
[in] | filename | The name of the input signal file. |
[in] | headlen | The header size in bytes of the file. The beginning of the file of this size will be skipped. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
spLVector xlvreadlsignal | ( | const char * | filename, |
long | headlen, | ||
int | swap ) |
Loads a binary signal into a new vector.
[in] | filename | The name of the input signal file. |
[in] | headlen | The header size in bytes of the file. The beginning of the file of this size will be skipped. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
spFVector xfvreadfsignal | ( | const char * | filename, |
long | headlen, | ||
int | swap ) |
Loads a binary signal into a new vector.
[in] | filename | The name of the input signal file. |
[in] | headlen | The header size in bytes of the file. The beginning of the file of this size will be skipped. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
spDVector xdvreaddsignal | ( | const char * | filename, |
long | headlen, | ||
int | swap ) |
Loads a binary signal into a new vector.
[in] | filename | The name of the input signal file. |
[in] | headlen | The header size in bytes of the file. The beginning of the file of this size will be skipped. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
spDVector xdvreadssignal | ( | const char * | filename, |
long | headlen, | ||
int | swap ) |
Loads a binary signal of short type into a new vector of double type.
[in] | filename | The name of the input signal file containing data of short type. |
[in] | headlen | The header size in bytes of the file. The beginning of the file of this size will be skipped. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
spDVector xdvreadlsignal | ( | const char * | filename, |
long | headlen, | ||
int | swap ) |
Loads a binary signal of long type into a new vector of double type.
[in] | filename | The name of the input signal file containing data of long type. |
[in] | headlen | The header size in bytes of the file. The beginning of the file of this size will be skipped. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
spDVector xdvreadfsignal | ( | const char * | filename, |
long | headlen, | ||
int | swap ) |
Loads a binary signal of float type into a new vector of double type.
[in] | filename | The name of the input signal file containing data of float type. |
[in] | headlen | The header size in bytes of the file. The beginning of the file of this size will be skipped. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
Saves the vector as a binary signal file.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the vector as a binary signal file.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the vector as a binary signal file.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the vector as a binary signal file.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the vector of double type as a binary signal file of short type.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the vector of double type as a binary signal file of long type.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the vector of double type as a binary signal file of float type.
[in] | filename | The name of the file. |
[in] | vector | The vector to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
spSMatrix xsmreadsmatrix | ( | const char * | filename, |
long | ncol, | ||
int | swap ) |
Loads a binary matrix into a new matrix.
[in] | filename | The name of the input matrix file. |
[in] | ncol | The number of columns of the input matrix file. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
spLMatrix xlmreadlmatrix | ( | const char * | filename, |
long | ncol, | ||
int | swap ) |
Loads a binary matrix into a new matrix.
[in] | filename | The name of the input matrix file. |
[in] | ncol | The number of columns of the input matrix file. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
spFMatrix xfmreadfmatrix | ( | const char * | filename, |
long | ncol, | ||
int | swap ) |
Loads a binary matrix into a new matrix.
[in] | filename | The name of the input matrix file. |
[in] | ncol | The number of columns of the input matrix file. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
spDMatrix xdmreaddmatrix | ( | const char * | filename, |
long | ncol, | ||
int | swap ) |
Loads a binary matrix into a new matrix.
[in] | filename | The name of the input matrix file. |
[in] | ncol | The number of columns of the input matrix file. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
spDMatrix xdmreadsmatrix | ( | const char * | filename, |
long | ncol, | ||
int | swap ) |
Loads a binary matrix of short type into a new matrix of double type.
[in] | filename | The name of the input matrix file containing data of short type. |
[in] | ncol | The number of columns of the input matrix file. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
spDMatrix xdmreadlmatrix | ( | const char * | filename, |
long | ncol, | ||
int | swap ) |
Loads a binary matrix of long type into a new matrix of double type.
[in] | filename | The name of the input matrix file containing data of long type. |
[in] | ncol | The number of columns of the input matrix file. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
spDMatrix xdmreadfmatrix | ( | const char * | filename, |
long | ncol, | ||
int | swap ) |
Loads a binary matrix of float type into a new matrix of double type.
[in] | filename | The name of the input matrix file containing data of float type. |
[in] | ncol | The number of columns of the input matrix file. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
Saves the matrix as a binary matrix file.
[in] | filename | The name of the file. |
[in] | mat | The matrix to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the matrix as a binary matrix file.
[in] | filename | The name of the file. |
[in] | mat | The matrix to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the matrix as a binary matrix file.
[in] | filename | The name of the file. |
[in] | mat | The matrix to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the matrix as a binary matrix file.
[in] | filename | The name of the file. |
[in] | mat | The matrix to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the matrix of double type as a binary matrix file of short type.
[in] | filename | The name of the file. |
[in] | mat | The matrix to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the matrix of double type as a binary matrix file of long type.
[in] | filename | The name of the file. |
[in] | mat | The matrix to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the matrix of double type as a binary matrix file of float type.
[in] | filename | The name of the file. |
[in] | mat | The matrix to save. |
[in] | swap | Nonzero value enables the endian (byte-order) conversion. |
SP_TRUE | Success |
SP_FALSE | Failure |
Loads a text vector into the specified vector. If the number of lines of the file is longer than the length of the specified vector, the lines whose index exceeds the length will be ignored. If the number of lines of the file is shorter than the length of the specified vector, the trailing data of the vector will be zero-padded.
[in] | filename | The name of the input text file. Each line of the text file corresponds to an element of the vector. |
[in,out] | vector | The vector into which the data of the file loads. |
SP_TRUE | Success |
SP_FALSE | Failure |
Loads a text vector into the specified vector. If the number of lines of the file is longer than the length of the specified vector, the lines whose index exceeds the length will be ignored. If the number of lines of the file is shorter than the length of the specified vector, the trailing data of the vector will be zero-padded.
[in] | filename | The name of the input text file. Each line of the text file corresponds to an element of the vector. |
[in,out] | vector | The vector into which the data of the file loads. |
SP_TRUE | Success |
SP_FALSE | Failure |
Loads a text vector into the specified vector. If the number of lines of the file is longer than the length of the specified vector, the lines whose index exceeds the length will be ignored. If the number of lines of the file is shorter than the length of the specified vector, the trailing data of the vector will be zero-padded.
[in] | filename | The name of the input text file. Each line of the text file corresponds to an element of the vector. |
[in,out] | vector | The vector into which the data of the file loads. |
SP_TRUE | Success |
SP_FALSE | Failure |
Loads a text vector into the specified vector. If the number of lines of the file is longer than the length of the specified vector, the lines whose index exceeds the length will be ignored. If the number of lines of the file is shorter than the length of the specified vector, the trailing data of the vector will be zero-padded.
[in] | filename | The name of the input text file. Each line of the text file corresponds to an element of the vector. |
[in,out] | vector | The vector into which the data of the file loads. |
SP_TRUE | Success |
SP_FALSE | Failure |
spSVector xsvreadsvector_txt | ( | const char * | filename | ) |
Loads a text vector into a new vector.
[in] | filename | The name of the input text file. Each line of the text file corresponds to an element of the vector. |
spLVector xlvreadlvector_txt | ( | const char * | filename | ) |
Loads a text vector into a new vector.
[in] | filename | The name of the input text file. Each line of the text file corresponds to an element of the vector. |
spFVector xfvreadfvector_txt | ( | const char * | filename | ) |
Loads a text vector into a new vector.
[in] | filename | The name of the input text file. Each line of the text file corresponds to an element of the vector. |
spDVector xdvreaddvector_txt | ( | const char * | filename | ) |
Loads a text vector into a new vector.
[in] | filename | The name of the input text file. Each line of the text file corresponds to an element of the vector. |
Loads a text vector containing multiple data columns into the specified vector. If the number of lines of the file is longer than the length of the specified vector, the lines whose index exceeds the length will be ignored. If the number of lines of the file is shorter than the length of the specified vector, the trailing data of the vector will be zero-padded.
[in] | filename | The name of the input text file. Each line of the text file contains multiples numbers separated by a whitespace. |
[in] | col | A 0-based column index. |
[in,out] | vector | The vector into which the data of the file loads. |
SP_TRUE | Success |
SP_FALSE | Failure |
Loads a text vector containing multiple data columns into the specified vector. If the number of lines of the file is longer than the length of the specified vector, the lines whose index exceeds the length will be ignored. If the number of lines of the file is shorter than the length of the specified vector, the trailing data of the vector will be zero-padded.
[in] | filename | The name of the input text file. Each line of the text file contains multiples numbers separated by a whitespace. |
[in] | col | A 0-based column index. |
[in,out] | vector | The vector into which the data of the file loads. |
SP_TRUE | Success |
SP_FALSE | Failure |
Loads a text vector containing multiple data columns into the specified vector. If the number of lines of the file is longer than the length of the specified vector, the lines whose index exceeds the length will be ignored. If the number of lines of the file is shorter than the length of the specified vector, the trailing data of the vector will be zero-padded.
[in] | filename | The name of the input text file. Each line of the text file contains multiples numbers separated by a whitespace. |
[in] | col | A 0-based column index. |
[in,out] | vector | The vector into which the data of the file loads. |
SP_TRUE | Success |
SP_FALSE | Failure |
Loads a text vector containing multiple data columns into the specified vector. If the number of lines of the file is longer than the length of the specified vector, the lines whose index exceeds the length will be ignored. If the number of lines of the file is shorter than the length of the specified vector, the trailing data of the vector will be zero-padded.
[in] | filename | The name of the input text file. Each line of the text file contains multiples numbers separated by a whitespace. |
[in] | col | A 0-based column index. |
[in,out] | vector | The vector into which the data of the file loads. |
SP_TRUE | Success |
SP_FALSE | Failure |
spSVector xsvreadcol_txt | ( | const char * | filename, |
int | col ) |
Loads a text vector containing multiple data columns into a new vector.
[in] | filename | The name of the input text file. Each line of the text file contains multiples numbers separated by a whitespace. |
[in] | col | The zero-based column number to load. |
spLVector xlvreadcol_txt | ( | const char * | filename, |
int | col ) |
Loads a text vector containing multiple data columns into a new vector.
[in] | filename | The name of the input text file. Each line of the text file contains multiples numbers separated by a whitespace. |
[in] | col | The zero-based column number to load. |
spFVector xfvreadcol_txt | ( | const char * | filename, |
int | col ) |
Loads a text vector containing multiple data columns into a new vector.
[in] | filename | The name of the input text file. Each line of the text file contains multiples numbers separated by a whitespace. |
[in] | col | The zero-based column number to load. |
spDVector xdvreadcol_txt | ( | const char * | filename, |
int | col ) |
Loads a text vector containing multiple data columns into a new vector.
[in] | filename | The name of the input text file. Each line of the text file contains multiples numbers separated by a whitespace. |
[in] | col | The zero-based column number to load. |
Saves the vector as a text vector file.
[in] | filename | The name of the file. Each line of the text file corresponds to an element of the vector. |
[in] | vector | The vector to save. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the vector as a text vector file.
[in] | filename | The name of the file. Each line of the text file corresponds to an element of the vector. |
[in] | vector | The vector to save. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the vector as a text vector file.
[in] | filename | The name of the file. Each line of the text file corresponds to an element of the vector. |
[in] | vector | The vector to save. |
SP_TRUE | Success |
SP_FALSE | Failure |
Saves the vector as a text vector file.
[in] | filename | The name of the file. Each line of the text file corresponds to an element of the vector. |
[in] | vector | The vector to save. |
SP_TRUE | Success |
SP_FALSE | Failure |
float fvmaxamp | ( | spFVector | vec | ) |
Gets the maximal absolute amplitude of the vector.
double dvmaxamp | ( | spDVector | vec | ) |
Gets the maximal absolute amplitude of the vector.
float fvadjustamp | ( | spFVector | vec, |
float | amp ) |
Amplifies the specified vector so that the maximal absolute amplitude of the vector is amp
.
double dvadjustamp | ( | spDVector | vec, |
double | amp ) |
Amplifies the specified vector so that the maximal absolute amplitude of the vector is amp
.
float fvlimitamp | ( | spFVector | vec, |
float | amp ) |
Amplifies the specified vector so that the maximal absolute amplitude of the vector is amp
only if the maximal absolute amplitude exceeds amp
.
double dvlimitamp | ( | spDVector | vec, |
double | amp ) |
Amplifies the specified vector so that the maximal absolute amplitude of the vector is amp
only if the maximal absolute amplitude exceeds amp
.
Extracts data associated with channel
from the vector containing multi-channel data with the interleaved format which the number of the channel is num_channel
.
Extracts data associated with channel
from the vector containing multi-channel data with the interleaved format which the number of the channel is num_channel
.
void svdump | ( | spSVector | vec | ) |
Displays the contents of the vector vec
to the standard output.
void lvdump | ( | spLVector | vec | ) |
Displays the contents of the vector vec
to the standard output.
void fvdump | ( | spFVector | vec | ) |
Displays the contents of the vector vec
to the standard output.
void dvdump | ( | spDVector | vec | ) |
Displays the contents of the vector vec
to the standard output.
void svfdump | ( | spSVector | vec, |
FILE * | fp ) |
Outputs the contents of the vector vec
to the file associated with the file pointer fp
.
void lvfdump | ( | spLVector | vec, |
FILE * | fp ) |
Outputs the contents of the vector vec
to the file associated with the file pointer fp
.
void fvfdump | ( | spFVector | vec, |
FILE * | fp ) |
Outputs the contents of the vector vec
to the file associated with the file pointer fp
.
void dvfdump | ( | spDVector | vec, |
FILE * | fp ) |
Outputs the contents of the vector vec
to the file associated with the file pointer fp
.
void svnfdump | ( | FILE * | fp, |
... ) |
Outputs the real part of the multiple vectors of spSVector type to the file associated with the file pointer fp
. Each column of the output corresponds to the contents of a vector. The final argument of this function must be NULL.
void lvnfdump | ( | FILE * | fp, |
... ) |
Outputs the real part of the multiple vectors of spLVector type to the file associated with the file pointer fp
. Each column of the output corresponds to the contents of a vector. The final argument of this function must be NULL.
void fvnfdump | ( | FILE * | fp, |
... ) |
Outputs the real part of the multiple vectors of spFVector type to the file associated with the file pointer fp
. Each column of the output corresponds to the contents of a vector. The final argument of this function must be NULL.
void dvnfdump | ( | FILE * | fp, |
... ) |
Outputs the real part of the multiple vectors of spDVector type to the file associated with the file pointer fp
. Each column of the output corresponds to the contents of a vector. The final argument of this function must be NULL.
void smfdump | ( | spSMatrix | mat, |
FILE * | fp ) |
Outputs the contents of the matrix mat
to the file associated with the file pointer fp
.
void lmfdump | ( | spLMatrix | mat, |
FILE * | fp ) |
Outputs the contents of the matrix mat
to the file associated with the file pointer fp
.
void fmfdump | ( | spFMatrix | mat, |
FILE * | fp ) |
Outputs the contents of the matrix mat
to the file associated with the file pointer fp
.
void dmfdump | ( | spDMatrix | mat, |
FILE * | fp ) |
Outputs the contents of the matrix mat
to the file associated with the file pointer fp
.