File: mtlb_sparse.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (39 lines) | stat: -rw-r--r-- 1,047 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.TH mtlb_sparse 1 "January 1999" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
mtlb_sparse -  convert sparse matrix 
.SH CALLING SEQUENCE
.nf
Y=mtlb_sparse(X)
.fi
.SH PARAMETERS
.TP
X
: sparse matrix
.TP
Y
: sparse matrix in Matlab format
.SH DESCRIPTION
\fVY=mtlb_sparse(X)\fR is used to convert \fVX\fR, a Scilab sparse matrix, to 
Matlab format. \fVY\fR is the a variable with type 7,
i.e. \fVtype(Y)\fR is equal to 7.
This function should be used in mexfiles (a Matlab mexfile containing sparse
matrices can be used only if the Scilab sparse matrices are converted
to that format). The functions \fVfull\fR and \fVspget\fR  work
with this format. 
.LP
 Other operations and functions using this format
can be overloaded with Scilab functions using the prefix "%msp". 
For instance the function 
\fV%msp_p(x)\fR (see SCIDIR/macros/percent directory) is used to
display such "type 7" objects.
.SH EXAMPLE
.nf
X=sparse(rand(2,2)); Y=mtlb_sparse(X);
Y, full(Y), [ij,v,mn]=spget(Y)
.fi
.SH SEE ALSO
full, spget