LAPACK  3.5.0
LAPACK: Linear Algebra PACKage
 All Classes Files Functions Variables Typedefs Macros
lapacke_chs_trans.c File Reference
#include "lapacke_utils.h"
Include dependency graph for lapacke_chs_trans.c:

Go to the source code of this file.

Functions

void LAPACKE_chs_trans (int matrix_order, lapack_int n, const lapack_complex_float *in, lapack_int ldin, lapack_complex_float *out, lapack_int ldout)
 

Function Documentation

void LAPACKE_chs_trans ( int  matrix_order,
lapack_int  n,
const lapack_complex_float in,
lapack_int  ldin,
lapack_complex_float out,
lapack_int  ldout 
)

Definition at line 40 of file lapacke_chs_trans.c.

43 {
44  if( in == NULL || out == NULL ) return;
45 
46  /* Convert subdiagonal first */
47  if( matrix_order == LAPACK_COL_MAJOR ) {
48  LAPACKE_cge_trans( LAPACK_COL_MAJOR, 1, n-1, &in[1], ldin+1,
49  &out[ldout], ldout+1 );
50  } else if ( matrix_order == LAPACK_ROW_MAJOR ) {
51  LAPACKE_cge_trans( LAPACK_ROW_MAJOR, n-1, 1, &in[ldin], ldin+1,
52  &out[1], ldout+1 );
53  } else {
54  return;
55  }
56 
57  /* Convert upper triangular. */
58  LAPACKE_ctr_trans( matrix_order, 'u', 'n', n, in, ldin, out, ldout);
59 }
void LAPACKE_ctr_trans(int matrix_order, char uplo, char diag, lapack_int n, const lapack_complex_float *in, lapack_int ldin, lapack_complex_float *out, lapack_int ldout)
#define LAPACK_COL_MAJOR
Definition: lapacke.h:120
void LAPACKE_cge_trans(int matrix_order, lapack_int m, lapack_int n, const lapack_complex_float *in, lapack_int ldin, lapack_complex_float *out, lapack_int ldout)
#define LAPACK_ROW_MAJOR
Definition: lapacke.h:119

Here is the call graph for this function: