Amath 483/583 - Lecture 2 Notes:: Outline
Amath 483/583 - Lecture 2 Notes:: Outline
Notes:
Outline:
Binary storage, floating point numbers
Version control main ideas
Client-server version control, e.g., CVS, Subversion
Distributed version control, e.g., git, Mercurial
Reading:
class notes: Storing information in binary
class notes: version control section
class notes: git section
Bitbucket 101
R.J. LeVeque, University of Washington
Homework #1
Notes:
Use git to clone the class repository and set up your own
repository on bitbucket.
Copy some files from one to the other, run codes and store
output.
to see.
Notes:
Notes:
Outline of quarter
Notes:
Parallel computing
OpenMP
Notes:
See the class notes Unix page for a brief intro and many links.
Unix commands will be introduced as needed and mostly
discussed in the context of other things.
Some important ones...
cd, pwd, ls, mkdir
mv, cp
Notes:
Notes:
Notes:
It depends on how many bytes are used for each real number.
1 byte = 8 bits, bit = binary digit
Assuming 8 bytes (64 bits) per value:
A 10, 000 10, 000 matrix has 108 elements,
so this requires 8 108 bytes = 800 MB.
And less than 50, 000 values are nonzero, so 99.95% are 0.
R.J. LeVeque, University of Washington
Kilo
Mega
Giga
Tera
Peta
Exa
Notes:
= thousand (103 )
= million (106 )
= billion (109 )
= trillion (1012 )
= 1015
= 1018
Computer memory
Notes:
= 0
= 1
= 2
= 255
Integers
Notes:
= -128
= -127
= -126
=
=
=
=
=
-2
-1
0
1
2
= 127
Integers
Notes:
Notes:
Use, e.g. 64 bits for a real number but always assume N bits in
integer part and M bits in fractional part.
Analog in decimal arithmetic, e.g.:
5 digits for integer part and
6 digits in fractional part
Could represent, e.g.:
00003.141592
00000.000314
31415.926535
(pi)
(pi / 10000)
(pi * 10000)
Disadvantages:
Precision depends on size of number
Often many wasted bits (leading 0s)
Limited range; often scientific problems involve very large
or small numbers.
R.J. LeVeque, University of Washington
Notes:
Exponent: 18
So the number is
0.703125 227 5.2386894822120667 109
R.J. LeVeque, University of Washington
Notes:
Notes:
Notes:
publications,
Server-client model:
Notes:
changes.
The system keeps track of diffs from one version to the next
(and info on who made the changes, when, etc.)
A changeset is a collection of diffs from one commit.
R.J. LeVeque, University of Washington
Server-client model:
Notes:
or update)
Note:
You can retrieve older versions from the server.
Can only commit or update when connected to server.
When you commit, it will be seen by anyone else who does
Notes:
Notes:
Notes:
Bitbucket
Notes:
Github
Notes:
https://github.com
Notes: