~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to sandbox/la/test/demo.m

  • Committer: Garth N. Wells
  • Date: 2008-03-29 09:34:25 UTC
  • Revision ID: gnw20@cam.ac.uk-20080329093425-3ea2vhjvccq56zvi
Add some basic build & install instructions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
 
3
 
 
4
 
A;
5
 
b1;
6
 
b1=x; 
7
 
b2; 
8
 
b2=x; 
9
 
b3; 
10
 
b3=x; 
11
 
 
12
 
x = A'*b1; 
13
 
 
14
 
x'*x 
15
 
 
16
 
 
17
 
x = A*b2; 
18
 
x'*x 
19
 
 
20
 
d = b1 + b3; 
21
 
d'*d
22
 
 
23
 
e = b1 - b3; 
24
 
e'*e
25
 
 
26
 
e = b1*3.7; 
27
 
e'*e
28
 
 
29