Back to index

texmacs  1.0.7.15
obj2scm.m
Go to the documentation of this file.
00001 function tmp=obj2scm(n)
00002        switch (typeinfo(n))
00003               case ('matrix')
00004                      tmp=mat2scm(n);
00005               case ('complex matrix')
00006                      tmp=mat2scm(n);
00007               case ('bool matrix')
00008                      tmp=mat2scm(n);
00009               case ('scalar')
00010                      tmp=num2scm(n);
00011               case ('complex scalar')
00012                      tmp=num2scm(n);
00013               case ('bool scalar')
00014                      tmp=num2scm(n);
00015               case ('struct')
00016                      tmp=struct2scm(n,1,'(with "mode" "math" (big "triangleup"))');
00017               case ('string')
00018                      tmp=str2scm(n);
00019               otherwise
00020                      tmp='';
00021        end