| 1 | <?xml version='1.0' encoding='UTF-8' standalone='no'?> |
|---|
| 2 | <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.5.6"> |
|---|
| 3 | <compounddef id="matrix_8h" kind="file"> |
|---|
| 4 | <compoundname>matrix.h</compoundname> |
|---|
| 5 | <includedby refid="ekf_8cpp" local="yes">work/git/mixpp/pmsm/simulator_zdenek/ekf_example/ekf.cpp</includedby> |
|---|
| 6 | <includedby refid="ekf__obj_8h" local="yes">work/git/mixpp/pmsm/simulator_zdenek/ekf_example/ekf_obj.h</includedby> |
|---|
| 7 | <includedby refid="matrix_8cpp" local="yes">work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.cpp</includedby> |
|---|
| 8 | <invincdepgraph> |
|---|
| 9 | <node id="761"> |
|---|
| 10 | <label>work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h</label> |
|---|
| 11 | <link refid="matrix.h"/> |
|---|
| 12 | <childnode refid="762" relation="include"> |
|---|
| 13 | </childnode> |
|---|
| 14 | </node> |
|---|
| 15 | <node id="762"> |
|---|
| 16 | <label>work/git/mixpp/pmsm/simulator_zdenek/ekf_example/ekf_obj.h</label> |
|---|
| 17 | <link refid="ekf__obj_8h"/> |
|---|
| 18 | </node> |
|---|
| 19 | </invincdepgraph> |
|---|
| 20 | <sectiondef kind="func"> |
|---|
| 21 | <memberdef kind="function" id="matrix_8h_1dc97517fcf76dba18a7b7eadbf485783" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 22 | <type>void</type> |
|---|
| 23 | <definition>void madd</definition> |
|---|
| 24 | <argsstring>(int *m1, int *m2, int *result, unsigned int rows, unsigned int columns)</argsstring> |
|---|
| 25 | <name>madd</name> |
|---|
| 26 | <param> |
|---|
| 27 | <type>int *</type> |
|---|
| 28 | <declname>m1</declname> |
|---|
| 29 | </param> |
|---|
| 30 | <param> |
|---|
| 31 | <type>int *</type> |
|---|
| 32 | <declname>m2</declname> |
|---|
| 33 | </param> |
|---|
| 34 | <param> |
|---|
| 35 | <type>int *</type> |
|---|
| 36 | <declname>result</declname> |
|---|
| 37 | </param> |
|---|
| 38 | <param> |
|---|
| 39 | <type>unsigned int</type> |
|---|
| 40 | <declname>rows</declname> |
|---|
| 41 | </param> |
|---|
| 42 | <param> |
|---|
| 43 | <type>unsigned int</type> |
|---|
| 44 | <declname>columns</declname> |
|---|
| 45 | </param> |
|---|
| 46 | <briefdescription> |
|---|
| 47 | </briefdescription> |
|---|
| 48 | <detaileddescription> |
|---|
| 49 | </detaileddescription> |
|---|
| 50 | <inbodydescription> |
|---|
| 51 | </inbodydescription> |
|---|
| 52 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="16"/> |
|---|
| 53 | </memberdef> |
|---|
| 54 | <memberdef kind="function" id="matrix_8h_1eb7b1130cdfdad80c1f6ff08bdabcd9e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 55 | <type>void</type> |
|---|
| 56 | <definition>void maddD</definition> |
|---|
| 57 | <argsstring>(int *m1, int *m2, unsigned int minrowcol, unsigned int columns)</argsstring> |
|---|
| 58 | <name>maddD</name> |
|---|
| 59 | <param> |
|---|
| 60 | <type>int *</type> |
|---|
| 61 | <declname>m1</declname> |
|---|
| 62 | </param> |
|---|
| 63 | <param> |
|---|
| 64 | <type>int *</type> |
|---|
| 65 | <declname>m2</declname> |
|---|
| 66 | </param> |
|---|
| 67 | <param> |
|---|
| 68 | <type>unsigned int</type> |
|---|
| 69 | <declname>minrowcol</declname> |
|---|
| 70 | </param> |
|---|
| 71 | <param> |
|---|
| 72 | <type>unsigned int</type> |
|---|
| 73 | <declname>columns</declname> |
|---|
| 74 | </param> |
|---|
| 75 | <briefdescription> |
|---|
| 76 | </briefdescription> |
|---|
| 77 | <detaileddescription> |
|---|
| 78 | </detaileddescription> |
|---|
| 79 | <inbodydescription> |
|---|
| 80 | </inbodydescription> |
|---|
| 81 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="19"/> |
|---|
| 82 | </memberdef> |
|---|
| 83 | <memberdef kind="function" id="matrix_8h_1fc147fb81a107ed3d11edce11680c73b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 84 | <type>void</type> |
|---|
| 85 | <definition>void msub</definition> |
|---|
| 86 | <argsstring>(int *m1, int *m2, int *result, unsigned int rows, unsigned int columns)</argsstring> |
|---|
| 87 | <name>msub</name> |
|---|
| 88 | <param> |
|---|
| 89 | <type>int *</type> |
|---|
| 90 | <declname>m1</declname> |
|---|
| 91 | </param> |
|---|
| 92 | <param> |
|---|
| 93 | <type>int *</type> |
|---|
| 94 | <declname>m2</declname> |
|---|
| 95 | </param> |
|---|
| 96 | <param> |
|---|
| 97 | <type>int *</type> |
|---|
| 98 | <declname>result</declname> |
|---|
| 99 | </param> |
|---|
| 100 | <param> |
|---|
| 101 | <type>unsigned int</type> |
|---|
| 102 | <declname>rows</declname> |
|---|
| 103 | </param> |
|---|
| 104 | <param> |
|---|
| 105 | <type>unsigned int</type> |
|---|
| 106 | <declname>columns</declname> |
|---|
| 107 | </param> |
|---|
| 108 | <briefdescription> |
|---|
| 109 | </briefdescription> |
|---|
| 110 | <detaileddescription> |
|---|
| 111 | </detaileddescription> |
|---|
| 112 | <inbodydescription> |
|---|
| 113 | </inbodydescription> |
|---|
| 114 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="22"/> |
|---|
| 115 | </memberdef> |
|---|
| 116 | <memberdef kind="function" id="matrix_8h_10dd80217f9ca5906058c49a7383a4498" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 117 | <type>void</type> |
|---|
| 118 | <definition>void mmult</definition> |
|---|
| 119 | <argsstring>(int *m1, int *m2, int *result, unsigned int rows, unsigned int columnsx, unsigned int columns)</argsstring> |
|---|
| 120 | <name>mmult</name> |
|---|
| 121 | <param> |
|---|
| 122 | <type>int *</type> |
|---|
| 123 | <declname>m1</declname> |
|---|
| 124 | </param> |
|---|
| 125 | <param> |
|---|
| 126 | <type>int *</type> |
|---|
| 127 | <declname>m2</declname> |
|---|
| 128 | </param> |
|---|
| 129 | <param> |
|---|
| 130 | <type>int *</type> |
|---|
| 131 | <declname>result</declname> |
|---|
| 132 | </param> |
|---|
| 133 | <param> |
|---|
| 134 | <type>unsigned int</type> |
|---|
| 135 | <declname>rows</declname> |
|---|
| 136 | </param> |
|---|
| 137 | <param> |
|---|
| 138 | <type>unsigned int</type> |
|---|
| 139 | <declname>columnsx</declname> |
|---|
| 140 | </param> |
|---|
| 141 | <param> |
|---|
| 142 | <type>unsigned int</type> |
|---|
| 143 | <declname>columns</declname> |
|---|
| 144 | </param> |
|---|
| 145 | <briefdescription> |
|---|
| 146 | </briefdescription> |
|---|
| 147 | <detaileddescription> |
|---|
| 148 | </detaileddescription> |
|---|
| 149 | <inbodydescription> |
|---|
| 150 | </inbodydescription> |
|---|
| 151 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="26"/> |
|---|
| 152 | </memberdef> |
|---|
| 153 | <memberdef kind="function" id="matrix_8h_1aad8e0b5c84bc2ef9c3442d7904493b7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 154 | <type>void</type> |
|---|
| 155 | <definition>void mmultt</definition> |
|---|
| 156 | <argsstring>(int *m1, int *m2, int *result, unsigned int rows, unsigned int columnsx, unsigned int columns)</argsstring> |
|---|
| 157 | <name>mmultt</name> |
|---|
| 158 | <param> |
|---|
| 159 | <type>int *</type> |
|---|
| 160 | <declname>m1</declname> |
|---|
| 161 | </param> |
|---|
| 162 | <param> |
|---|
| 163 | <type>int *</type> |
|---|
| 164 | <declname>m2</declname> |
|---|
| 165 | </param> |
|---|
| 166 | <param> |
|---|
| 167 | <type>int *</type> |
|---|
| 168 | <declname>result</declname> |
|---|
| 169 | </param> |
|---|
| 170 | <param> |
|---|
| 171 | <type>unsigned int</type> |
|---|
| 172 | <declname>rows</declname> |
|---|
| 173 | </param> |
|---|
| 174 | <param> |
|---|
| 175 | <type>unsigned int</type> |
|---|
| 176 | <declname>columnsx</declname> |
|---|
| 177 | </param> |
|---|
| 178 | <param> |
|---|
| 179 | <type>unsigned int</type> |
|---|
| 180 | <declname>columns</declname> |
|---|
| 181 | </param> |
|---|
| 182 | <briefdescription> |
|---|
| 183 | </briefdescription> |
|---|
| 184 | <detaileddescription> |
|---|
| 185 | </detaileddescription> |
|---|
| 186 | <inbodydescription> |
|---|
| 187 | </inbodydescription> |
|---|
| 188 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="30"/> |
|---|
| 189 | </memberdef> |
|---|
| 190 | <memberdef kind="function" id="matrix_8h_180321ddd04c2295a7898aaac3e1f7ca7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 191 | <type>void</type> |
|---|
| 192 | <definition>void mmult15</definition> |
|---|
| 193 | <argsstring>(int *m1, int *m2, int *result, unsigned int rows, unsigned int columnsx, unsigned int columns)</argsstring> |
|---|
| 194 | <name>mmult15</name> |
|---|
| 195 | <param> |
|---|
| 196 | <type>int *</type> |
|---|
| 197 | <declname>m1</declname> |
|---|
| 198 | </param> |
|---|
| 199 | <param> |
|---|
| 200 | <type>int *</type> |
|---|
| 201 | <declname>m2</declname> |
|---|
| 202 | </param> |
|---|
| 203 | <param> |
|---|
| 204 | <type>int *</type> |
|---|
| 205 | <declname>result</declname> |
|---|
| 206 | </param> |
|---|
| 207 | <param> |
|---|
| 208 | <type>unsigned int</type> |
|---|
| 209 | <declname>rows</declname> |
|---|
| 210 | </param> |
|---|
| 211 | <param> |
|---|
| 212 | <type>unsigned int</type> |
|---|
| 213 | <declname>columnsx</declname> |
|---|
| 214 | </param> |
|---|
| 215 | <param> |
|---|
| 216 | <type>unsigned int</type> |
|---|
| 217 | <declname>columns</declname> |
|---|
| 218 | </param> |
|---|
| 219 | <briefdescription> |
|---|
| 220 | </briefdescription> |
|---|
| 221 | <detaileddescription> |
|---|
| 222 | </detaileddescription> |
|---|
| 223 | <inbodydescription> |
|---|
| 224 | </inbodydescription> |
|---|
| 225 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="34"/> |
|---|
| 226 | </memberdef> |
|---|
| 227 | <memberdef kind="function" id="matrix_8h_17b21ce82e50b9491450fbe8f0ba45830" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 228 | <type>void</type> |
|---|
| 229 | <definition>void mmultt15</definition> |
|---|
| 230 | <argsstring>(int *m1, int *m2, int *result, unsigned int rows, unsigned int columnsx, unsigned int columns)</argsstring> |
|---|
| 231 | <name>mmultt15</name> |
|---|
| 232 | <param> |
|---|
| 233 | <type>int *</type> |
|---|
| 234 | <declname>m1</declname> |
|---|
| 235 | </param> |
|---|
| 236 | <param> |
|---|
| 237 | <type>int *</type> |
|---|
| 238 | <declname>m2</declname> |
|---|
| 239 | </param> |
|---|
| 240 | <param> |
|---|
| 241 | <type>int *</type> |
|---|
| 242 | <declname>result</declname> |
|---|
| 243 | </param> |
|---|
| 244 | <param> |
|---|
| 245 | <type>unsigned int</type> |
|---|
| 246 | <declname>rows</declname> |
|---|
| 247 | </param> |
|---|
| 248 | <param> |
|---|
| 249 | <type>unsigned int</type> |
|---|
| 250 | <declname>columnsx</declname> |
|---|
| 251 | </param> |
|---|
| 252 | <param> |
|---|
| 253 | <type>unsigned int</type> |
|---|
| 254 | <declname>columns</declname> |
|---|
| 255 | </param> |
|---|
| 256 | <briefdescription> |
|---|
| 257 | </briefdescription> |
|---|
| 258 | <detaileddescription> |
|---|
| 259 | </detaileddescription> |
|---|
| 260 | <inbodydescription> |
|---|
| 261 | </inbodydescription> |
|---|
| 262 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="38"/> |
|---|
| 263 | </memberdef> |
|---|
| 264 | <memberdef kind="function" id="matrix_8h_1acfc7e3b42ad50e39b11f11753b749f6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 265 | <type>void</type> |
|---|
| 266 | <definition>void mmult1530</definition> |
|---|
| 267 | <argsstring>(int *m1, long *m2, int *result, unsigned int rows, unsigned int columnsx, unsigned int columns)</argsstring> |
|---|
| 268 | <name>mmult1530</name> |
|---|
| 269 | <param> |
|---|
| 270 | <type>int *</type> |
|---|
| 271 | <declname>m1</declname> |
|---|
| 272 | </param> |
|---|
| 273 | <param> |
|---|
| 274 | <type>long *</type> |
|---|
| 275 | <declname>m2</declname> |
|---|
| 276 | </param> |
|---|
| 277 | <param> |
|---|
| 278 | <type>int *</type> |
|---|
| 279 | <declname>result</declname> |
|---|
| 280 | </param> |
|---|
| 281 | <param> |
|---|
| 282 | <type>unsigned int</type> |
|---|
| 283 | <declname>rows</declname> |
|---|
| 284 | </param> |
|---|
| 285 | <param> |
|---|
| 286 | <type>unsigned int</type> |
|---|
| 287 | <declname>columnsx</declname> |
|---|
| 288 | </param> |
|---|
| 289 | <param> |
|---|
| 290 | <type>unsigned int</type> |
|---|
| 291 | <declname>columns</declname> |
|---|
| 292 | </param> |
|---|
| 293 | <briefdescription> |
|---|
| 294 | </briefdescription> |
|---|
| 295 | <detaileddescription> |
|---|
| 296 | </detaileddescription> |
|---|
| 297 | <inbodydescription> |
|---|
| 298 | </inbodydescription> |
|---|
| 299 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="42"/> |
|---|
| 300 | </memberdef> |
|---|
| 301 | <memberdef kind="function" id="matrix_8h_1ff076c1db8aa1be1797eede839441da8" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 302 | <type>void</type> |
|---|
| 303 | <definition>void mmultDl</definition> |
|---|
| 304 | <argsstring>(int *m2, int *result, unsigned int rows, unsigned int columnsx, unsigned int columns, unsigned int minrowcol)</argsstring> |
|---|
| 305 | <name>mmultDl</name> |
|---|
| 306 | <param> |
|---|
| 307 | <type>int *</type> |
|---|
| 308 | <declname>m2</declname> |
|---|
| 309 | </param> |
|---|
| 310 | <param> |
|---|
| 311 | <type>int *</type> |
|---|
| 312 | <declname>result</declname> |
|---|
| 313 | </param> |
|---|
| 314 | <param> |
|---|
| 315 | <type>unsigned int</type> |
|---|
| 316 | <declname>rows</declname> |
|---|
| 317 | </param> |
|---|
| 318 | <param> |
|---|
| 319 | <type>unsigned int</type> |
|---|
| 320 | <declname>columnsx</declname> |
|---|
| 321 | </param> |
|---|
| 322 | <param> |
|---|
| 323 | <type>unsigned int</type> |
|---|
| 324 | <declname>columns</declname> |
|---|
| 325 | </param> |
|---|
| 326 | <param> |
|---|
| 327 | <type>unsigned int</type> |
|---|
| 328 | <declname>minrowcol</declname> |
|---|
| 329 | </param> |
|---|
| 330 | <briefdescription> |
|---|
| 331 | </briefdescription> |
|---|
| 332 | <detaileddescription> |
|---|
| 333 | </detaileddescription> |
|---|
| 334 | <inbodydescription> |
|---|
| 335 | </inbodydescription> |
|---|
| 336 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="47"/> |
|---|
| 337 | </memberdef> |
|---|
| 338 | <memberdef kind="function" id="matrix_8h_1094cd71f8538a5e9375f0ab2759b688d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 339 | <type>void</type> |
|---|
| 340 | <definition>void mmultDl15</definition> |
|---|
| 341 | <argsstring>(int *DIAG, int *m2, int *result, unsigned int rows, unsigned int columnsx, unsigned int columns, unsigned int minrowcol)</argsstring> |
|---|
| 342 | <name>mmultDl15</name> |
|---|
| 343 | <param> |
|---|
| 344 | <type>int *</type> |
|---|
| 345 | <declname>DIAG</declname> |
|---|
| 346 | </param> |
|---|
| 347 | <param> |
|---|
| 348 | <type>int *</type> |
|---|
| 349 | <declname>m2</declname> |
|---|
| 350 | </param> |
|---|
| 351 | <param> |
|---|
| 352 | <type>int *</type> |
|---|
| 353 | <declname>result</declname> |
|---|
| 354 | </param> |
|---|
| 355 | <param> |
|---|
| 356 | <type>unsigned int</type> |
|---|
| 357 | <declname>rows</declname> |
|---|
| 358 | </param> |
|---|
| 359 | <param> |
|---|
| 360 | <type>unsigned int</type> |
|---|
| 361 | <declname>columnsx</declname> |
|---|
| 362 | </param> |
|---|
| 363 | <param> |
|---|
| 364 | <type>unsigned int</type> |
|---|
| 365 | <declname>columns</declname> |
|---|
| 366 | </param> |
|---|
| 367 | <param> |
|---|
| 368 | <type>unsigned int</type> |
|---|
| 369 | <declname>minrowcol</declname> |
|---|
| 370 | </param> |
|---|
| 371 | <briefdescription> |
|---|
| 372 | </briefdescription> |
|---|
| 373 | <detaileddescription> |
|---|
| 374 | </detaileddescription> |
|---|
| 375 | <inbodydescription> |
|---|
| 376 | </inbodydescription> |
|---|
| 377 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="52"/> |
|---|
| 378 | </memberdef> |
|---|
| 379 | <memberdef kind="function" id="matrix_8h_1ececc21a99cfdc6238b5fbe1a0e61bb4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 380 | <type>void</type> |
|---|
| 381 | <definition>void mmultDr</definition> |
|---|
| 382 | <argsstring>(int *m1, int *result, unsigned int rows, unsigned int columnsx, unsigned int columns, unsigned int minrowcol)</argsstring> |
|---|
| 383 | <name>mmultDr</name> |
|---|
| 384 | <param> |
|---|
| 385 | <type>int *</type> |
|---|
| 386 | <declname>m1</declname> |
|---|
| 387 | </param> |
|---|
| 388 | <param> |
|---|
| 389 | <type>int *</type> |
|---|
| 390 | <declname>result</declname> |
|---|
| 391 | </param> |
|---|
| 392 | <param> |
|---|
| 393 | <type>unsigned int</type> |
|---|
| 394 | <declname>rows</declname> |
|---|
| 395 | </param> |
|---|
| 396 | <param> |
|---|
| 397 | <type>unsigned int</type> |
|---|
| 398 | <declname>columnsx</declname> |
|---|
| 399 | </param> |
|---|
| 400 | <param> |
|---|
| 401 | <type>unsigned int</type> |
|---|
| 402 | <declname>columns</declname> |
|---|
| 403 | </param> |
|---|
| 404 | <param> |
|---|
| 405 | <type>unsigned int</type> |
|---|
| 406 | <declname>minrowcol</declname> |
|---|
| 407 | </param> |
|---|
| 408 | <briefdescription> |
|---|
| 409 | </briefdescription> |
|---|
| 410 | <detaileddescription> |
|---|
| 411 | </detaileddescription> |
|---|
| 412 | <inbodydescription> |
|---|
| 413 | </inbodydescription> |
|---|
| 414 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="57"/> |
|---|
| 415 | </memberdef> |
|---|
| 416 | <memberdef kind="function" id="matrix_8h_1001bd19384a1c2f9fb3450c4f3476fa4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 417 | <type>void</type> |
|---|
| 418 | <definition>void mmultDr15</definition> |
|---|
| 419 | <argsstring>(int *m1, int *DIAG, int *result, unsigned int rows, unsigned int columnsx, unsigned int columns, unsigned int minrowcol)</argsstring> |
|---|
| 420 | <name>mmultDr15</name> |
|---|
| 421 | <param> |
|---|
| 422 | <type>int *</type> |
|---|
| 423 | <declname>m1</declname> |
|---|
| 424 | </param> |
|---|
| 425 | <param> |
|---|
| 426 | <type>int *</type> |
|---|
| 427 | <declname>DIAG</declname> |
|---|
| 428 | </param> |
|---|
| 429 | <param> |
|---|
| 430 | <type>int *</type> |
|---|
| 431 | <declname>result</declname> |
|---|
| 432 | </param> |
|---|
| 433 | <param> |
|---|
| 434 | <type>unsigned int</type> |
|---|
| 435 | <declname>rows</declname> |
|---|
| 436 | </param> |
|---|
| 437 | <param> |
|---|
| 438 | <type>unsigned int</type> |
|---|
| 439 | <declname>columnsx</declname> |
|---|
| 440 | </param> |
|---|
| 441 | <param> |
|---|
| 442 | <type>unsigned int</type> |
|---|
| 443 | <declname>columns</declname> |
|---|
| 444 | </param> |
|---|
| 445 | <param> |
|---|
| 446 | <type>unsigned int</type> |
|---|
| 447 | <declname>minrowcol</declname> |
|---|
| 448 | </param> |
|---|
| 449 | <briefdescription> |
|---|
| 450 | </briefdescription> |
|---|
| 451 | <detaileddescription> |
|---|
| 452 | </detaileddescription> |
|---|
| 453 | <inbodydescription> |
|---|
| 454 | </inbodydescription> |
|---|
| 455 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="62"/> |
|---|
| 456 | </memberdef> |
|---|
| 457 | <memberdef kind="function" id="matrix_8h_10803daba60892817dd95383f10e2b501" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 458 | <type>void</type> |
|---|
| 459 | <definition>void mtrans</definition> |
|---|
| 460 | <argsstring>(int *m1, int *result, unsigned int rows, unsigned int columns)</argsstring> |
|---|
| 461 | <name>mtrans</name> |
|---|
| 462 | <param> |
|---|
| 463 | <type>int *</type> |
|---|
| 464 | <declname>m1</declname> |
|---|
| 465 | </param> |
|---|
| 466 | <param> |
|---|
| 467 | <type>int *</type> |
|---|
| 468 | <declname>result</declname> |
|---|
| 469 | </param> |
|---|
| 470 | <param> |
|---|
| 471 | <type>unsigned int</type> |
|---|
| 472 | <declname>rows</declname> |
|---|
| 473 | </param> |
|---|
| 474 | <param> |
|---|
| 475 | <type>unsigned int</type> |
|---|
| 476 | <declname>columns</declname> |
|---|
| 477 | </param> |
|---|
| 478 | <briefdescription> |
|---|
| 479 | </briefdescription> |
|---|
| 480 | <detaileddescription> |
|---|
| 481 | </detaileddescription> |
|---|
| 482 | <inbodydescription> |
|---|
| 483 | </inbodydescription> |
|---|
| 484 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="65"/> |
|---|
| 485 | </memberdef> |
|---|
| 486 | <memberdef kind="function" id="matrix_8h_16281b33c494f55a0e1f56cc6ec226728" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 487 | <type>void</type> |
|---|
| 488 | <definition>void minv2</definition> |
|---|
| 489 | <argsstring>(int *matrix, long *result)</argsstring> |
|---|
| 490 | <name>minv2</name> |
|---|
| 491 | <param> |
|---|
| 492 | <type>int *</type> |
|---|
| 493 | <declname>matrix</declname> |
|---|
| 494 | </param> |
|---|
| 495 | <param> |
|---|
| 496 | <type>long *</type> |
|---|
| 497 | <declname>result</declname> |
|---|
| 498 | </param> |
|---|
| 499 | <briefdescription> |
|---|
| 500 | </briefdescription> |
|---|
| 501 | <detaileddescription> |
|---|
| 502 | </detaileddescription> |
|---|
| 503 | <inbodydescription> |
|---|
| 504 | </inbodydescription> |
|---|
| 505 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="68"/> |
|---|
| 506 | </memberdef> |
|---|
| 507 | <memberdef kind="function" id="matrix_8h_14cf0ac2cd86f2dfd9c984ae7599bad65" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 508 | <type>void</type> |
|---|
| 509 | <definition>void choice_P</definition> |
|---|
| 510 | <argsstring>(int *m, int *result, unsigned int columns)</argsstring> |
|---|
| 511 | <name>choice_P</name> |
|---|
| 512 | <param> |
|---|
| 513 | <type>int *</type> |
|---|
| 514 | <declname>m</declname> |
|---|
| 515 | </param> |
|---|
| 516 | <param> |
|---|
| 517 | <type>int *</type> |
|---|
| 518 | <declname>result</declname> |
|---|
| 519 | </param> |
|---|
| 520 | <param> |
|---|
| 521 | <type>unsigned int</type> |
|---|
| 522 | <declname>columns</declname> |
|---|
| 523 | </param> |
|---|
| 524 | <briefdescription> |
|---|
| 525 | </briefdescription> |
|---|
| 526 | <detaileddescription> |
|---|
| 527 | </detaileddescription> |
|---|
| 528 | <inbodydescription> |
|---|
| 529 | </inbodydescription> |
|---|
| 530 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="70"/> |
|---|
| 531 | </memberdef> |
|---|
| 532 | <memberdef kind="function" id="matrix_8h_117f6067daa5a602765f81590b8c69189" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> |
|---|
| 533 | <type>void</type> |
|---|
| 534 | <definition>void choice_x</definition> |
|---|
| 535 | <argsstring>(int *m, int *result)</argsstring> |
|---|
| 536 | <name>choice_x</name> |
|---|
| 537 | <param> |
|---|
| 538 | <type>int *</type> |
|---|
| 539 | <declname>m</declname> |
|---|
| 540 | </param> |
|---|
| 541 | <param> |
|---|
| 542 | <type>int *</type> |
|---|
| 543 | <declname>result</declname> |
|---|
| 544 | </param> |
|---|
| 545 | <briefdescription> |
|---|
| 546 | </briefdescription> |
|---|
| 547 | <detaileddescription> |
|---|
| 548 | </detaileddescription> |
|---|
| 549 | <inbodydescription> |
|---|
| 550 | </inbodydescription> |
|---|
| 551 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h" line="71"/> |
|---|
| 552 | </memberdef> |
|---|
| 553 | </sectiondef> |
|---|
| 554 | <briefdescription> |
|---|
| 555 | </briefdescription> |
|---|
| 556 | <detaileddescription> |
|---|
| 557 | </detaileddescription> |
|---|
| 558 | <programlisting> |
|---|
| 559 | <codeline lineno="1"><highlight class="comment">/************************************</highlight></codeline> |
|---|
| 560 | <codeline lineno="2"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Extended<sp/>Kalman<sp/>Filter</highlight></codeline> |
|---|
| 561 | <codeline lineno="3"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Matrix<sp/>operations</highlight></codeline> |
|---|
| 562 | <codeline lineno="4"><highlight class="comment"></highlight></codeline> |
|---|
| 563 | <codeline lineno="5"><highlight class="comment"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Z.<sp/>Peroutka</highlight></codeline> |
|---|
| 564 | <codeline lineno="6"><highlight class="comment"></highlight></codeline> |
|---|
| 565 | <codeline lineno="7"><highlight class="comment">Rev.<sp/>15.3.2008</highlight></codeline> |
|---|
| 566 | <codeline lineno="8"><highlight class="comment"></highlight></codeline> |
|---|
| 567 | <codeline lineno="9"><highlight class="comment">15.3.<sp/>2008<sp/><sp/><sp/><sp/><sp/><sp/>Kompletni<sp/>kontrola<sp/>vypoctu<sp/>+<sp/>zamena<sp/>q15->int<sp/>a<sp/>q30->long</highlight></codeline> |
|---|
| 568 | <codeline lineno="10"><highlight class="comment"></highlight></codeline> |
|---|
| 569 | <codeline lineno="11"><highlight class="comment">*************************************/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 570 | <codeline lineno="12"><highlight class="normal"></highlight></codeline> |
|---|
| 571 | <codeline lineno="13"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Vsechny<sp/>meze<sp/>se<sp/>udavaji<sp/>ve<sp/>tvaru<sp/>(rozmer_matice<sp/>-<sp/>1),<sp/>abych<sp/>mel<sp/>ve<sp/>FOR<sp/>konstantni<sp/>horni<sp/>mez)<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 572 | <codeline lineno="14"><highlight class="normal"></highlight></codeline> |
|---|
| 573 | <codeline lineno="15"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Matrix<sp/>addition<sp/>in<sp/>q15:<sp/>m1<sp/>+<sp/>m2<sp/>=<sp/>result[rows,<sp/>columns]<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 574 | <codeline lineno="16"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>madd(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>rows,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columns);</highlight></codeline> |
|---|
| 575 | <codeline lineno="17"><highlight class="normal"></highlight></codeline> |
|---|
| 576 | <codeline lineno="18"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>add<sp/>diagonal<sp/>matrix<sp/>m2<sp/>to<sp/>matrix<sp/>m1<sp/>-<sp/>both<sp/>in<sp/>format<sp/>q15,<sp/>minrowcol<sp/>=<sp/>min(rows,<sp/>columns)<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 577 | <codeline lineno="19"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>maddD(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m2,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>minrowcol,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columns);</highlight></codeline> |
|---|
| 578 | <codeline lineno="20"><highlight class="normal"></highlight></codeline> |
|---|
| 579 | <codeline lineno="21"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Matrix<sp/>substraction<sp/>in<sp/>q15:<sp/>m1<sp/>-<sp/>m2<sp/>=<sp/>result[rows,<sp/>columns]<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 580 | <codeline lineno="22"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>msub(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>rows,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columns);</highlight></codeline> |
|---|
| 581 | <codeline lineno="23"><highlight class="normal"></highlight></codeline> |
|---|
| 582 | <codeline lineno="24"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Matrix<sp/>multiply<sp/>in<sp/>q15:<sp/>m1[rows,columnsx]*m2[columnsx,columns]<sp/>=<sp/>result[rows,columns]<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 583 | <codeline lineno="25"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>mmult(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>rows,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columnsx,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 584 | <codeline lineno="26"><highlight class="normal">columns);</highlight></codeline> |
|---|
| 585 | <codeline lineno="27"><highlight class="normal"></highlight></codeline> |
|---|
| 586 | <codeline lineno="28"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Matrix<sp/>multiplication<sp/>in<sp/>q15:<sp/>m1[rows,columnsx]*(m2[columnsx,columns]transpose)<sp/>=<sp/>result[rows,columns]<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 587 | <codeline lineno="29"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>mmultt(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>rows,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columnsx,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 588 | <codeline lineno="30"><highlight class="normal">columns);</highlight></codeline> |
|---|
| 589 | <codeline lineno="31"><highlight class="normal"></highlight></codeline> |
|---|
| 590 | <codeline lineno="32"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>matrix<sp/>multiplication<sp/>in<sp/>q15:<sp/>sum<sp/>is<sp/>in<sp/>q15<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 591 | <codeline lineno="33"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>mmult15(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>rows,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columnsx,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 592 | <codeline lineno="34"><highlight class="normal">columns);</highlight></codeline> |
|---|
| 593 | <codeline lineno="35"><highlight class="normal"></highlight></codeline> |
|---|
| 594 | <codeline lineno="36"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Matrix<sp/>multiplication<sp/>in<sp/>q15<sp/>(sum<sp/>is<sp/>in<sp/>q15):<sp/>m1[rows,columnsx]*(m2[columns,columnsx]transpose)<sp/>=<sp/>result[rows,columns]<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 595 | <codeline lineno="37"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>mmultt15(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>rows,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columnsx,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 596 | <codeline lineno="38"><highlight class="normal">columns);</highlight></codeline> |
|---|
| 597 | <codeline lineno="39"><highlight class="normal"></highlight></codeline> |
|---|
| 598 | <codeline lineno="40"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Matrix<sp/>multiplication<sp/>-<sp/>Q15<sp/>*<sp/>Q30<sp/>format<sp/>-><sp/>RESULT<sp/>in<sp/>Q15<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 599 | <codeline lineno="41"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>mmult1530(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m1,<sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>*m2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>rows,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columnsx,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 600 | <codeline lineno="42"><highlight class="normal">columns);</highlight></codeline> |
|---|
| 601 | <codeline lineno="43"><highlight class="normal"></highlight></codeline> |
|---|
| 602 | <codeline lineno="44"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Left<sp/>matrix<sp/>multiplication<sp/>with<sp/>DIAG<sp/>ones<sp/>matrix<sp/>in<sp/>q15:<sp/>DIAG[rows,columnsx]*m2[columnsx,columns]<sp/>=<sp/>result[rows,columns]</highlight></codeline> |
|---|
| 603 | <codeline lineno="45"><highlight class="comment">minrowcol=minimum(rows,<sp/>columnsx)<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 604 | <codeline lineno="46"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>mmultDl(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>rows,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columnsx,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 605 | <codeline lineno="47"><highlight class="normal">columns,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>minrowcol);</highlight></codeline> |
|---|
| 606 | <codeline lineno="48"><highlight class="normal"></highlight></codeline> |
|---|
| 607 | <codeline lineno="49"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Left<sp/>matrix<sp/>multiplication<sp/>with<sp/>DIAG<sp/>matrix<sp/>in<sp/>q15:<sp/>DIAG[rows,columnsx]*m2[columnsx,columns]<sp/>=<sp/>result[rows,columns]</highlight></codeline> |
|---|
| 608 | <codeline lineno="50"><highlight class="comment">minrowcol=minimum(rows,<sp/>columnsx)<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 609 | <codeline lineno="51"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>mmultDl15(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*DIAG,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>rows,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columnsx,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 610 | <codeline lineno="52"><highlight class="normal">columns,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>minrowcol);</highlight></codeline> |
|---|
| 611 | <codeline lineno="53"><highlight class="normal"></highlight></codeline> |
|---|
| 612 | <codeline lineno="54"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Right<sp/>matrix<sp/>multiplication<sp/>with<sp/>DIAG<sp/>ones<sp/>matrix<sp/>in<sp/>q15:<sp/>m1[rows,columnsx]*DIAG[columnsx,columns]<sp/>=<sp/>result[rows,columns]</highlight></codeline> |
|---|
| 613 | <codeline lineno="55"><highlight class="comment">minrowcol=minimum(columnsx,columns)<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 614 | <codeline lineno="56"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>mmultDr(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>rows,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columnsx,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 615 | <codeline lineno="57"><highlight class="normal">columns,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>minrowcol);</highlight></codeline> |
|---|
| 616 | <codeline lineno="58"><highlight class="normal"></highlight></codeline> |
|---|
| 617 | <codeline lineno="59"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Right<sp/>matrix<sp/>multiplication<sp/>with<sp/>DIAG<sp/>matrix<sp/>in<sp/>q15:<sp/>m1[rows,columnsx]*DIAG[columnsx,columns]<sp/>=<sp/>result[rows,columns]</highlight></codeline> |
|---|
| 618 | <codeline lineno="60"><highlight class="comment">minrowcol=minimum(columnsx,columns)<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 619 | <codeline lineno="61"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>mmultDr15(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*DIAG,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>rows,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columnsx,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 620 | <codeline lineno="62"><highlight class="normal">columns,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>minrowcol);</highlight></codeline> |
|---|
| 621 | <codeline lineno="63"><highlight class="normal"></highlight></codeline> |
|---|
| 622 | <codeline lineno="64"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Matrix<sp/>transposition<sp/>in<sp/>q15:<sp/>m1.'<sp/>=<sp/>result[rows,<sp/>columns]<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 623 | <codeline lineno="65"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>mtrans(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>rows,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columns);</highlight></codeline> |
|---|
| 624 | <codeline lineno="66"><highlight class="normal"></highlight></codeline> |
|---|
| 625 | <codeline lineno="67"><highlight class="normal"></highlight><highlight class="comment">/*<sp/>Matrix<sp/>[2,2]<sp/>inversion<sp/>in<sp/>q15:<sp/>inv(m1)<sp/>=<sp/>result[rows,<sp/>columns]<sp/>*/</highlight><highlight class="normal"></highlight></codeline> |
|---|
| 626 | <codeline lineno="68"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>minv2(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*matrix,<sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>*result);</highlight></codeline> |
|---|
| 627 | <codeline lineno="69"><highlight class="normal"></highlight></codeline> |
|---|
| 628 | <codeline lineno="70"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>choice_P(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>columns);</highlight></codeline> |
|---|
| 629 | <codeline lineno="71"><highlight class="normal"></highlight><highlight class="keyword">extern</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>choice_x(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*m,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*result);</highlight></codeline> |
|---|
| 630 | <codeline lineno="72"><highlight class="normal"></highlight></codeline> |
|---|
| 631 | </programlisting> |
|---|
| 632 | <location file="/home/smidl/work/git/mixpp/pmsm/simulator_zdenek/ekf_example/matrix.h"/> |
|---|
| 633 | </compounddef> |
|---|
| 634 | </doxygen> |
|---|