GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
la.h File Reference
#include <grass/config.h>
#include <stdio.h>
#include <grass/blas.h>
#include <grass/lapack.h>
#include <grass/defs/la.h>
Include dependency graph for la.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  complex
 
struct  doublecomplex
 
struct  matrix_
 

Macros

#define GRASS_LA_H
 
#define MAX_POS   1 /* Indicates maximum value */
 
#define MAX_NEG   -1 /* Indicates minimum value */
 
#define MAX_ABS   0 /* Indicates absolute value */
 
#define DO_COMPACT   0 /* Eliminate unnecessary rows (cols) in matrix */
 
#define NO_COMPACT   1 /* ... or not */
 
#define f77_dgesv   dgesv_
 
#define f77_dgemm   dgemm_
 
#define f77_dnrm2   dnrm2_
 

Typedefs

typedef int integer
 
typedef unsigned int uinteger
 
typedef char * address
 
typedef short shortint
 
typedef float real
 
typedef double doublereal
 
typedef int logical
 
typedef short shortlogical
 
typedef char logical1
 
typedef char integer1
 
typedef long longint
 
typedef unsigned long ulongint
 
typedef int ftnlen
 
typedef int(* U_fp) ()
 
typedef shortint(* J_fp) ()
 
typedef integer(* I_fp) ()
 
typedef real(* R_fp) ()
 
typedef doublereal(* D_fp) ()
 
typedef doublereal(*)(* E_fp) ()
 
typedef void(* C_fp) ()
 
typedef void(* Z_fp) ()
 
typedef logical(* L_fp) ()
 
typedef shortlogical(* K_fp) ()
 
typedef void(* H_fp) ()
 
typedef int(* S_fp) ()
 
typedef void C_f
 
typedef void H_f
 
typedef void Z_f
 
typedef doublereal E_f
 
typedef struct matrix_ mat_struct
 
typedef mat_struct vec_struct
 

Enumerations

enum  mat_type { NONSYM, SYM, HERMITIAN }
 
enum  mat_spec { MATRIX_, ROWVEC_, COLVEC_ }
 
enum  vtype { RVEC, CVEC }
 

Macro Definition Documentation

◆ DO_COMPACT

#define DO_COMPACT   0 /* Eliminate unnecessary rows (cols) in matrix */

Definition at line 108 of file la.h.

Referenced by G_vector_copy().

◆ f77_dgemm

#define f77_dgemm   dgemm_

Definition at line 118 of file la.h.

Referenced by G_matrix_product().

◆ f77_dgesv

#define f77_dgesv   dgesv_

Definition at line 117 of file la.h.

Referenced by G_matrix_LU_solve().

◆ f77_dnrm2

#define f77_dnrm2   dnrm2_

Definition at line 119 of file la.h.

Referenced by G_vector_norm_euclid().

◆ GRASS_LA_H

#define GRASS_LA_H

Definition at line 25 of file la.h.

◆ MAX_ABS

#define MAX_ABS   0 /* Indicates absolute value */

Definition at line 106 of file la.h.

Referenced by G_vector_norm_maxval().

◆ MAX_NEG

#define MAX_NEG   -1 /* Indicates minimum value */

Definition at line 105 of file la.h.

Referenced by G_vector_norm_maxval().

◆ MAX_POS

#define MAX_POS   1 /* Indicates maximum value */

Definition at line 104 of file la.h.

Referenced by G_vector_norm_maxval().

◆ NO_COMPACT

#define NO_COMPACT   1 /* ... or not */

Definition at line 109 of file la.h.

Referenced by G_vector_copy().

Typedef Documentation

◆ address

typedef char* address

Definition at line 50 of file la.h.

◆ C_f

typedef void C_f

Definition at line 86 of file la.h.

◆ C_fp

typedef void(* C_fp) ()

Definition at line 78 of file la.h.

◆ D_fp

typedef doublereal(* D_fp) ()

Definition at line 77 of file la.h.

◆ doublereal

typedef double doublereal

Definition at line 53 of file la.h.

◆ E_f

typedef doublereal E_f

Definition at line 89 of file la.h.

◆ E_fp

typedef doublereal(*)(* E_fp) ()

Definition at line 77 of file la.h.

◆ ftnlen

typedef int ftnlen

Definition at line 70 of file la.h.

◆ H_f

typedef void H_f

Definition at line 87 of file la.h.

◆ H_fp

typedef void(* H_fp) ()

Definition at line 82 of file la.h.

◆ I_fp

typedef integer(* I_fp) ()

Definition at line 75 of file la.h.

◆ integer

typedef int integer

Definition at line 48 of file la.h.

◆ integer1

typedef char integer1

Definition at line 65 of file la.h.

◆ J_fp

typedef shortint(* J_fp) ()

Definition at line 74 of file la.h.

◆ K_fp

typedef shortlogical(* K_fp) ()

Definition at line 81 of file la.h.

◆ L_fp

typedef logical(* L_fp) ()

Definition at line 80 of file la.h.

◆ logical

typedef int logical

Definition at line 62 of file la.h.

◆ logical1

typedef char logical1

Definition at line 64 of file la.h.

◆ longint

typedef long longint

Definition at line 66 of file la.h.

◆ mat_struct

typedef struct matrix_ mat_struct

◆ R_fp

typedef real(* R_fp) ()

Definition at line 76 of file la.h.

◆ real

typedef float real

Definition at line 52 of file la.h.

◆ S_fp

typedef int(* S_fp) ()

Definition at line 83 of file la.h.

◆ shortint

typedef short shortint

Definition at line 51 of file la.h.

◆ shortlogical

typedef short shortlogical

Definition at line 63 of file la.h.

◆ U_fp

typedef int(* U_fp) ()

Definition at line 73 of file la.h.

◆ uinteger

typedef unsigned int uinteger

Definition at line 49 of file la.h.

◆ ulongint

typedef unsigned long ulongint

Definition at line 67 of file la.h.

◆ vec_struct

Definition at line 156 of file la.h.

◆ Z_f

typedef void Z_f

Definition at line 88 of file la.h.

◆ Z_fp

typedef void(* Z_fp) ()

Definition at line 79 of file la.h.

Enumeration Type Documentation

◆ mat_spec

enum mat_spec
Enumerator
MATRIX_ 
ROWVEC_ 
COLVEC_ 

Definition at line 128 of file la.h.

◆ mat_type

enum mat_type
Enumerator
NONSYM 
SYM 
HERMITIAN 

Definition at line 126 of file la.h.

◆ vtype

enum vtype
Enumerator
RVEC 
CVEC 

Definition at line 130 of file la.h.