Skip to content

Commit 518d886

Browse files
authored
Merge pull request #6 from numgeom/jiao/dev
fixed computation of weights and reformatted
2 parents 4db9d26 + bcc1ada commit 518d886

File tree

5 files changed

+19396
-22446
lines changed

5 files changed

+19396
-22446
lines changed

src/rrqr_trunc.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010

1111
// Include files
1212
#include "rrqr_trunc.h"
13-
#include "m2c_lib.h"
1413
#include "coder_array.h"
14+
#include "m2c_lib.h"
1515
#include <cstdio>
1616
#include <stdexcept>
1717

1818
// Function Definitions
1919
namespace wls {
20+
// rrqr_trunc Truncate the output from QRCP based on DAG
2021
void rrqr_trunc(const ::coder::array<unsigned char, 2U> &dag, int *n1, int rank,
2122
::coder::array<int, 1U> &p, ::coder::array<int, 2U> &work,
2223
boolean_T *permuted)
@@ -25,7 +26,6 @@ void rrqr_trunc(const ::coder::array<unsigned char, 2U> &dag, int *n1, int rank,
2526
int child;
2627
int n;
2728
int nChanged;
28-
// Truncate the output from QRCP based on DAG
2929
n = dag.size(1) - 2;
3030
// Last column of dag is for signature
3131
work.set_size(4, dag.size(1) - 1);

src/rrqr_trunc.h

+6-5
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@
99
#define RRQR_TRUNC_H
1010

1111
// Include files
12-
#include "rtwtypes.h"
13-
#include "m2c_lib.h"
1412
#include "coder_array.h"
13+
#include "m2c_lib.h"
14+
#include "rtwtypes.h"
1515
#include <cstddef>
1616
#include <cstdlib>
1717

1818
// Function Declarations
1919
namespace wls {
20-
static inline void rrqr_trunc(const ::coder::array<unsigned char, 2U> &dag, int *n1,
21-
int rank, ::coder::array<int, 1U> &p,
22-
::coder::array<int, 2U> &work, boolean_T *permuted);
20+
static inline void rrqr_trunc(const ::coder::array<unsigned char, 2U> &dag,
21+
int *n1, int rank, ::coder::array<int, 1U> &p,
22+
::coder::array<int, 2U> &work,
23+
boolean_T *permuted);
2324

2425
} // namespace wls
2526

0 commit comments

Comments
 (0)