From e59107e6bb2695fc20fd0ab229e296b9bf739fc4 Mon Sep 17 00:00:00 2001 From: siddhu8990 Date: Tue, 7 Feb 2017 16:16:31 +0530 Subject: Support for 'lqr' and 'lqe' added --- 2.3-1/src/c/CACSD/lqr/as_per_sci_code.c | 144 ++++++++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 2.3-1/src/c/CACSD/lqr/as_per_sci_code.c (limited to '2.3-1/src/c/CACSD/lqr/as_per_sci_code.c') diff --git a/2.3-1/src/c/CACSD/lqr/as_per_sci_code.c b/2.3-1/src/c/CACSD/lqr/as_per_sci_code.c new file mode 100644 index 00000000..01f002c3 --- /dev/null +++ b/2.3-1/src/c/CACSD/lqr/as_per_sci_code.c @@ -0,0 +1,144 @@ + + sizeBA = 2*no_of_states + no_of_inputs; + BigE = (double*) malloc (sizeBA*sizeBA*sizeof(double)); + BigA = (double*) malloc (sizeBA*sizeBA*sizeof(double)); + + /*Setup BigE*/ + deyea(BigE,sizeBA,sizeBA); + + for(row = no_of_states*2; row