lstsq/quickref.tex
author Puneeth Chaganti <punchagan@fossee.in>
Mon, 11 Oct 2010 01:00:14 +0530
changeset 277 d4cee7ebcf9b
parent 237 6c203780bfbe
child 330 efb8ddf26aff
permissions -rw-r--r--
Slides for loading data from files LO.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
237
6c203780bfbe Converted lstsq to new template form
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     1
Creating a tuple:\\
6c203780bfbe Converted lstsq to new template form
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     2
{\ex \lstinline|    t = (1, "hello", 2.5)|}
6c203780bfbe Converted lstsq to new template form
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     3
6c203780bfbe Converted lstsq to new template form
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     4
Accessing elements of tuples:\\
6c203780bfbe Converted lstsq to new template form
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     5
{\ex \lstinline|    t[index] Ex: t[2]|}
6c203780bfbe Converted lstsq to new template form
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     6
6c203780bfbe Converted lstsq to new template form
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     7
Accessing slices of tuples:\\
6c203780bfbe Converted lstsq to new template form
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     8
{\ex \lstinline|    t[start:stop:step]|}
6c203780bfbe Converted lstsq to new template form
Nishanth <nishanth@fossee.in>
parents:
diff changeset
     9
6c203780bfbe Converted lstsq to new template form
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    10
Swapping values:\\
6c203780bfbe Converted lstsq to new template form
Nishanth <nishanth@fossee.in>
parents:
diff changeset
    11
{\ex \lstinline|    a, b = b, a|}