gf_spmat_set
Purpose
Synopsis
gf_spmat_set(M,'clear'[, I[, J]]) gf_spmat_set(M,'scale', V) gf_spmat_set(M,'transpose') gf_spmat_set(M,'conjugate') gf_spmat_set(M,'transconj') gf_spmat_set(M,'to_csc') gf_spmat_set(M,'to_wsc') gf_spmat_set(M,'to_complex') gf_spmat_set(M,'diag', mat D [, ivec E]) gf_spmat_set(M,'assign', ivec I, ivec J, V)gf_spmat_set(M,'add', I, J, V)
Description
gf_spmat_set(M,'clear'[, I[, J]]) : erase the non-zero entries of the matrix. The optional arguments I and J may be specified to clear a sub-matrix instead of the entire matrix.
gf_spmat_set(M,'scale', V) : multiplie the matrix by a scalar value V.
gf_spmat_set(M,'transpose') : transposition of the matrix.
gf_spmat_set(M,'conjugate') : conjugate each element of the matrix (does nothing for REAL matrices).
gf_spmat_set(M,'transconj') : transpose and conjugate the matrix.
gf_spmat_set(M,'to_csc') : convert the matrix to CSC storage. CSC storage is recommended for the speed of matrix-vector multiplications.
gf_spmat_set(M,'to_wsc') : convert the matrix to WSC storage. Read and write operation are quite fast with WSC storage.
gf_spmat_set(M,'to_complex') : store complex numbers.
gf_spmat_set(M,'diag', mat D [, ivec E]) : change the diagonal (or sub-diagonals) of the matrix. If E is given, D might be a matrix and each column of E will contain the sub-diagonal number that will be filled with the corresponding column of D.
gf_spmat_set(M,'assign', ivec I, ivec J, V) : copy V into the sub-matrix M(I,J). V might be a sparse matrix or a full matrix.
gf_spmat_set(M,'add', I, J, V) : add V to the sub-matrix M(I,J). V might be a sparse matrix or a full matrix.
