Changeset 2917 in Sophya for trunk/SophyaLib/TArray/tmatrix.cc


Ignore:
Timestamp:
Feb 23, 2006, 2:50:26 PM (20 years ago)
Author:
ansari
Message:

Documentation + debug Range et extraction sous-tableaux , Reza 23/02/2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/tmatrix.cc

    r2915 r2917  
    1 // $Id: tmatrix.cc,v 1.34 2006-02-22 18:17:30 ansari Exp $
     1// $Id: tmatrix.cc,v 1.35 2006-02-23 13:50:26 ansari Exp $
    22//                         C.Magneville          04/99
    33#include "sopnamsp.h"
     
    1717  two dimensional arrays as matrices. Matrix and vector operations,
    1818  such as matrix multiplication or transposition is implemented.
     19
     20  Sub-matrices, in particular matrix rows and columns can easily and
     21  efficiently be extracted and manipulated.
     22  It should be noted that a significant memory overhead is associated with
     23  small matrices (typically less than 10x10=100 elements).However,
     24  higher dimension arrays (3D for examples) can be used to represent large
     25  number of small matrices or vectors.
     26
    1927  \b Matrix is a typedef for double precision floating point matrix ( TMatrix<r_8> ).
    2028
    2129  \sa SOPHYA::TArray  SOPHYA::TVector
    22   \sa SOPHYA::Range  \sa SOPHYA::Sequence
    23   \sa SOPHYA::MathArray  \sa SOPHYA::SimpleMatrixOperation
     30  \sa SOPHYA::Range  SOPHYA::Sequence
     31  \sa SOPHYA::MathArray  SOPHYA::SimpleMatrixOperation
    2432
    2533  The following sample code illustrates vector-matrix multiplication
     
    254262  if (mm == CMemoryMapping)  { rx = rcol;  ry = rline; }
    255263  else { ry = rcol;  rx = rline; }
    256   TMatrix sm(SubArray(rx, ry, Range::first(), Range::first(), Range::first()), true);
     264  TMatrix sm(SubArray(rx, ry, Range::first(), Range::first(), Range::first(), false), true);
    257265  sm.UpdateMemoryMapping(mm);
    258266  return(sm);
Note: See TracChangeset for help on using the changeset viewer.