summaryrefslogtreecommitdiff
path: root/include/mat44.h
blob: d8a82090553bae593120ae1d5ab0ca445d67e44c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright 2015 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* Header file for common math functions. */
#ifndef __CROS_EC_MAT_44_H

#define __CROS_EC_MAT_44_H

#include "vec4.h"
#include "util.h"

typedef float mat44_float_t[4][4];
typedef size_t sizev4_t[4];

void mat44_float_decompose_lup(mat44_float_t LU, sizev4_t pivot);

void mat44_float_swap_rows(mat44_float_t A, const size_t i, const size_t j);

void mat44_float_solve(mat44_float_t A, floatv4_t x, const floatv4_t b,
		 const sizev4_t pivot);

#endif  /* __CROS_EC_MAT_44_H */