Changeset 142 for trunk/SRC/ToBeReviewed/CALCULS/determ3.pro
- Timestamp:
- 07/21/06 14:47:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/CALCULS/determ3.pro
r134 r142 1 1 ;+ 2 ; NAME:determ33 2 ; 4 ; PURPOSE: computes the determinant of n 3 by 3 arrays 3 ; @file_comments 4 ; computes the determinant of n 3 by 3 arrays. 5 ; Z2DS is an 3*3*n array 5 6 ; 6 ; CATEGORY: no DO loops and better accuracy 7 ; @categories 8 ; Without loop 7 9 ; 8 ; CALLING SEQUENCE:2 cases:9 ; res = determ2(z2ds)10 ; res = determ2(in00, in01, in02, in10, in11, in12, in20, in21, in22)10 ; @param IN00 {in}{required} 11 ; It is an n element array 12 ; defined by in00 = z2ds[0, 0, *] 11 13 ; 12 ; INPUTS: 13 ; z2ds: an 3*3*n array 14 ; or 15 ; in00, in01, in02, in10, in11, in12, in20, in21, in22: the nine n 16 ; elements arrays defined as: 17 ; in00 = z2ds[0, 0, *] 18 ; in01 = z2ds[0, 1, *] 19 ; in02 = z2ds[0, 2, *] 20 ; in10 = z2ds[1, 0, *] 21 ; in11 = z2ds[1, 1, *] 22 ; in12 = z2ds[1, 2, *] 23 ; in20 = z2ds[2, 0, *] 24 ; in21 = z2ds[2, 1, *] 25 ; in22 = z2ds[2, 2, *] 14 ; @param IN01 {in}{required} 15 ; It is an n element array 16 ; defined by in01 = z2ds[0, 1, *] 26 17 ; 27 ; OUTPUTS: n elements array, the determinent of each 3*3 arrrays 18 ; @param IN02 {in}{required} 19 ; It is an n element array 20 ; defined by in02 = z2ds[0, 2, *] 28 21 ; 29 ; EXAMPLE: 22 ; @param IN10 {in}{required} 23 ; It is an n element array 24 ; defined by in10 = z2ds[1, 0, *] 30 25 ; 26 ; 27 ; @param IN11 {in}{required} 28 ; It is an n element array 29 ; defined by in11 = z2ds[1, 1, *] 30 ; 31 ; 32 ; @param IN12 {in}{required} 33 ; It is an n element array 34 ; defined by in12 = z2ds[1, 2, *] 35 ; 36 ; 37 ; @param IN20 {in}{required} 38 ; It is an n element array 39 ; defined by in20 = z2ds[2, 0, *] 40 ; 41 ; 42 ; @param IN21 {in}{required} 43 ; It is an n element array 44 ; defined by in21 = z2ds[2, 1, *] 45 ; 46 ; 47 ; @param IN22 {in}{required} 48 ; It is an n element array 49 ; defined by in22 = z2ds[2, 2, *] 50 ; 51 ; @returns 52 ; n elements array, the determinent of each 3*3 arrrays 53 ; 54 ; @examples 31 55 ; a=findgen(3,3,5) 32 56 ; print, determ3(a^2) 33 57 ; FOR i=0,4 DO print, determ((a[*,*,i])^2) ; IDL solution 34 58 ; 35 ; MODIFICATION HISTORY:59 ; @history 36 60 ; S. Masson (smasson@lodyc.jussieu.fr) 37 61 ; July 11th, 2002 62 ; 63 ; @version 64 ; $Id$ 65 ; 38 66 ;- 39 67 FUNCTION determ3, in00, in01, in02, in10, in11, in12, in20, in21, in22
Note: See TracChangeset
for help on using the changeset viewer.