Some questions about gen class
Publié : mar. déc. 19, 2017 1:23 pm
Hello Bernard,
Can you help me to clarify some details about gen class? I have a few questions.
1. How do I know when gen holds an error message (generated by undeferr function)? Is it enough to check subtype==-1?
2. Is there an "at_" variable assigned to Hadamard/Schur matrix product?
3. What's the difference between is_real and is_approx? I assume that is_approx just checks for a floating point number. But I haven't figured out what does REAL unary type mean... What purpose are gen unary types SPOL1, EXT, USER, EQW and POINTER used for?
4. What are gen_binary_types for?
I also have some questions about giac::context structure.
1. What are globalcontextptr and globalptr fields for?
2. How are contexts organized? I see that it has "parent" and "previous" fields... How does one use these?
3. What are quoted_global_vars, rootofs and tabptr fields?
4. How does one set parameters for a context (Digits, epsilon etc.)?
Thanks in advance!
Luka
Can you help me to clarify some details about gen class? I have a few questions.
1. How do I know when gen holds an error message (generated by undeferr function)? Is it enough to check subtype==-1?
2. Is there an "at_" variable assigned to Hadamard/Schur matrix product?
3. What's the difference between is_real and is_approx? I assume that is_approx just checks for a floating point number. But I haven't figured out what does REAL unary type mean... What purpose are gen unary types SPOL1, EXT, USER, EQW and POINTER used for?
4. What are gen_binary_types for?
I also have some questions about giac::context structure.
1. What are globalcontextptr and globalptr fields for?
2. How are contexts organized? I see that it has "parent" and "previous" fields... How does one use these?
3. What are quoted_global_vars, rootofs and tabptr fields?
4. How does one set parameters for a context (Digits, epsilon etc.)?
Thanks in advance!
Luka