I want to use SCALAPACK's pdgesvd routine, I have previously used this example for Lapack in Visual Studio, but, is there any sample program using pdgesvd instead of dgesvd
#include "stdafx.h"
#include <stdlib.h>
#include <stdio.h>
extern "C" void dgesvd_( char* jobu, char* jobvt, int* m, int* n, double* a,
int* lda, double* s, double* u, int* ldu, double* vt, int* ldvt,
double* work, int* lwork, int* info );
///SOME CODE INIT VARIABLES...
double arr[], double u[], double s[];
int m = M, n = N, lda = m, ldu = m, ldvt = n, info, lwork;
double wkopt;
double* work;
lwork = -1;
dgesvd_( "All", "All", &m, &n, arr, &lda, s, u, &ldu, vt, &ldvt, &wkopt, &lwork, &info );
lwork = (int)wkopt;
work = (double*)malloc( lwork*sizeof(double) );
dgesvd_( "All", "All", &m, &n, arr, &lda, s, u, &ldu, vt, &ldvt, work, &lwork, &info );
free( (void*)work );
//MORE CODE...

