Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
emfomy committed Aug 16, 2018
1 parent c01feea commit 8216f92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
3 changes: 2 additions & 1 deletion demo/cdemo.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ int main( int argc, char **argv ) {

/// [allocate-matrix]
// Allocate matrix
const isvd_int_t k = 20, p = 12, l = k+p, N = 16;
const isvd_int_t k = 20, p = 12, N = 16;
const isvd_Param param = isvd_createParam(m, n, k, p, N, mpi_root, MPI_COMM_WORLD);
const isvd_int_t mb = param.nrow_each;
const isvd_int_t Pmb = param.nrow_total;
const isvd_int_t Pnb = param.ncol_total;
const isvd_int_t l = param.dim_sketch;

double *s = isvd_dMalloc(l);

Expand Down
12 changes: 2 additions & 10 deletions demo/ctest.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,8 @@ int main( int argc, char **argv ) {
isvd_PrintEnvironment(MPI_COMM_WORLD);
}

const isvd_int_t m = 100;
const isvd_int_t k = 10;

isvd_d_val_t *q = isvd_dMalloc(k * m);
const isvd_int_t ldq = k;

isvd_d_val_t *tau = isvd_dMalloc(k);

isvd_dGelqf(k, m, q, ldq, tau);
isvd_dOrglq(k, m, k, q, ldq, tau);
const isvd_int_t m = 100, n = 1000, k = 20, p = 12, N = 16;
const isvd_Param param = isvd_createParam(m, n, k, p, N, mpi_root, MPI_COMM_WORLD);

isvd_Finalize();

Expand Down
2 changes: 1 addition & 1 deletion src/include/c/isvd/def.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ typedef int omp_int_t;
/// \brief The MPI communicator type.
#if !defined(DOXYGEN_SHOULD_SKIP_THIS)
#if !defined(__cplusplus)
typedef void* isvd_MpiComm;
typedef int isvd_MpiComm;
#else // __cplusplus
#include <mpi.h>
typedef MPI_Comm isvd_MpiComm;
Expand Down

0 comments on commit 8216f92

Please sign in to comment.