Changeset 142 for trunk/SRC/ToBeReviewed/CALCULS/determ2.pro
- Timestamp:
- 07/21/06 14:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/CALCULS/determ2.pro
r134 r142 1 1 ;+ 2 ; NAME:determ23 2 ; 4 ; PURPOSE: computes the determinant of n 2 by 2 arrays 3 ; file_comments 4 ; computes the determinant of n 2 by 2 arrays 5 ; Z2DS is an 2*2*n array 5 6 ; 6 ; CATEGORY: no DO loops and better accuracy 7 ; @categories 8 ; Without loop 9 ; 10 ; @param A {in}{required} 11 ; n element array 12 ; Defined as z2ds[0, 0, *] = z1d00 7 13 ; 8 ; CALLING SEQUENCE: 2 cases:9 ; res = determ2(z2ds)10 ; res = determ2(z1d00,z1d01,z1d10,z1d11)14 ; @param B {in}{required} 15 ; n element array 16 ; Defined as z2ds[0, 1, *] = z1d01 11 17 ; 12 ; INPUTS: 13 ; z2ds: an 2*2*n array 14 ; or 15 ; z1d00,z1d01,z1d10,z1d11: the four n elements arrays 16 ; defined as: 17 ; z2ds[0, 0, *] = z1d00 18 ; z2ds[0, 1, *] = z1d01 19 ; z2ds[1, 0, *] = z1d10 20 ; z2ds[1, 1, *] = z1d11 18 ; @param C {in}{required} 19 ; n element array 20 ; Defined as z2ds[1, 0, *] = z1d10 21 21 ; 22 ; OUTPUTS: n elements array, the determinent of each 2*2 arrrays 22 ; @param D {in}{required} 23 ; n element array 24 ; Defined as z2ds[1, 1, *] = z1d11 23 25 ; 24 ; EXAMPLE: 26 ; @returns 27 ; n elements array, the determinent of each 2*2 arrrays 25 28 ; 29 ; @examples 26 30 ; a=findgen(2,2,5) 27 31 ; print, determ2(a) 28 32 ; FOR i=0,4 DO print, determ(a[*,*,i]) ; IDL solution 29 33 ; 30 ; MODIFICATION HISTORY:34 ; @history 31 35 ; S. Masson (smasson@lodyc.jussieu.fr) 32 36 ; July 11th, 2002 37 ; 38 ; @version 39 ; $Id$ 40 ; 33 41 ;- 34 42 FUNCTION determ2, a, b, c, d
Note: See TracChangeset
for help on using the changeset viewer.