Changeset 1650 in Sophya for trunk/SophyaProg/Examples/arr1.icc


Ignore:
Timestamp:
Sep 14, 2001, 1:16:44 AM (24 years ago)
Author:
ansari
Message:

exemple arr1.icc complete - Reza 14/9/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaProg/Examples/arr1.icc

    r1337 r1650  
    1818  cout << " MinMax(sma) : min= " << min << " max= " << max << endl;
    1919
     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.