itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
_sci_create_sci_var.hpp
1 /*xxx
2 * \brief - Convert it++ classes into sci_var object. Newly created objects are stored on heap
3 * \author maki
4 */
5 
6 #ifndef SCI_CREATE_SCI_VAR_HPP
7 #define SCI_CREATE_SCI_VAR_HPP
8 
9 #include <complex>
10 
11 #include "sci\_sci_var.hpp"
12 
13 namespace SCI
14 {
15 
17 
18 // vec to sci_var_vec
19 sci_var* create_sci_var(vec* p_vector);
20 
21 // int to sci_var_ivec
22 sci_var* create_sci_var(int* p_int);
23 
24 // double to sci_var_vec
25 sci_var* create_sci_var(double* p_double);
26 
27 // bool to sci_var_bvec
28 sci_var* create_sci_var(bool* p_bool);
29 
30 // complex to sci_var_cvec
31 sci_var* create_sci_var(std::complex<double>* p_complex);
32 
33 // ivec to sci_var_ivec
34 sci_var* create_sci_var(ivec* p_ivector);
35 
36 // cvec to sci_var_cvec
37 sci_var* create_sci_var(cvec* p_cvector);
38 
39 // bvec to sci_var_bvec
40 sci_var* create_sci_var(bvec* p_bvector);
41 
42 // mat to sci_var_mat
43 sci_var* create_sci_var(mat* p_matrix);
44 
45 // imat to sci_var_imat
46 sci_var* create_sci_var(imat* p_imatrix);
47 
48 // cmat to sci_var_cmat
49 sci_var* create_sci_var(cmat* p_cmatrix);
50 
51 // bmat to sci_var_bmat
52 sci_var* create_sci_var(bmat* p_bmatrix);
53 
55 
56 } // namespace SCI
57 
58 #endif
SCI layer implements SCI_API interface as wrappers for SIM layer models.
Definition: _sci_create_sci_var.cpp:8