Changeset 1650 in Sophya for trunk/SophyaProg/Examples/arr1.icc
- Timestamp:
- Sep 14, 2001, 1:16:44 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Examples/arr1.icc
r1337 r1650 18 18 cout << " MinMax(sma) : min= " << min << " max= " << max << endl; 19 19 20 // Vector , matrix multiplication 21 Vector v1(5); 22 v1 = 12.; 23 Vector v2(5); 24 v2 = 14; 25 Matrix m = v2*v1.Transpose(); 26 cout << " m= v2*v1.Transpose() : " << m; 27 // Computing the scalar product 28 cout << " v1.v2 = " << (v1.Transpose()*v2).toScalar() << endl;
Note:
See TracChangeset
for help on using the changeset viewer.