/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/core/detail/math/math.hpp Source File#
10 min read time
Applies to Linux
math.hpp
Go to the documentation of this file.
196 return m[0][0] * (m[1][1] * m[2][2] - m[1][2] * m[2][1]) + m[0][1] * (m[1][2] * m[2][0] - m[1][0] * m[2][2]) +
314 __host__ __device__ void solve_inplace(const Matrix<T, N, N> &lu, const Vector<int, N> &p, Vector<T, N> &b) {
const __host__ __device__ T & operator[](int2 c) const
Returns a constant data reference from the matrix.
Definition: math.hpp:127
__host__ __device__ void store(T *data)
Stores data from the matrix into a 1D array in row-major order.
Definition: math.hpp:165
__host__ __device__ Vector< T, N > & operator[](int i)
Returns a row of a matrix as a vector reference.
Definition: math.hpp:116
const __host__ __device__ Vector< T, N > & operator[](int i) const
Returns a row of a matrix as a constant vector reference.
Definition: math.hpp:105
__host__ __device__ int cols() const
Returns the number of columns in the matrix.
Definition: math.hpp:97
__host__ __device__ void load(const T *data)
Loads a row-major array into the matrix.
Definition: math.hpp:150
__host__ __device__ int rows() const
Returns the number of rows in a matrix.
Definition: math.hpp:90
__host__ __device__ T & operator[](int2 c)
Returns a data reference from the matrix.
Definition: math.hpp:139
__host__ __device__ int size() const
Returns the size of the vector.
Definition: math.hpp:45
__host__ __device__ T & operator[](int i)
Definition: math.hpp:52
const __host__ __device__ T & operator[](int i) const
Definition: math.hpp:47
Definition: math.hpp:27
__host__ __device__ void solve_inplace(const Matrix< T, N, N > &lu, const Vector< int, N > &p, Vector< T, N > &b)
Definition: math.hpp:314
constexpr __host__ __device__ Matrix< T, 3, 3 > inv(const Matrix< T, 3, 3 > &m, const T &d)
Definition: math.hpp:202
__host__ __device__ bool lu_inplace(Matrix< T, N, N > &m, Vector< int, N > &p)
Definition: math.hpp:253
constexpr __host__ __device__ void inv_inplace(Matrix< T, 3, 3 > &m, const T &d)
Definition: math.hpp:218
__host__ __device__ T dot(const Vector< T, N > &a, const Vector< T, N > &b)
Definition: math.hpp:243
constexpr __host__ __device__ T det(const Matrix< T, 0, 0 > &m)
Definition: math.hpp:180
__host__ __device__ Vector< T, N > operator-(const Vector< T, N > &v)
Definition: math.hpp:65