Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
matrix.hpp File Reference
#include "shambase/assert.hpp"
#include "shambackends/sycl.hpp"
#include "shammath/matrix_op.hpp"
#include <experimental/mdspan>
#include <array>
+ Include dependency graph for matrix.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  shammath::mat< T, m, n >
 Matrix class based on std::array storage and mdspan. More...
 
class  shammath::vec< T, n >
 Vector class based on std::array storage and mdspan. More...
 
struct  sham::VectorProperties< shammath::mat< T, m, n > >
 

Namespaces

namespace  shammath
 namespace for math utility
 

Typedefs

using f32_3x3 = shammath::mat< f32, 3, 3 >
 Alias for 3x3 float matrix.
 
using f32_4x4 = shammath::mat< f32, 4, 4 >
 Alias for 4x4 float matrix.
 
using f64_3x3 = shammath::mat< f64, 3, 3 >
 Alias for 3x3 double matrix.
 
using f64_4x4 = shammath::mat< f64, 4, 4 >
 Alias for 4x4 double matrix.
 

Functions

template<class T , int n>
constexpr mat< T, n, n > shammath::mat_identity ()
 Returns the identity matrix of size n.
 

Detailed Description

Author
Léodasce Sewanou (leoda.nosp@m.sce..nosp@m.sewan.nosp@m.ou@e.nosp@m.ns-ly.nosp@m.on.f.nosp@m.r)
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)
Yann Bernard (yann..nosp@m.bern.nosp@m.ard@u.nosp@m.niv-.nosp@m.greno.nosp@m.ble-.nosp@m.alpes.nosp@m..fr)

Definition in file matrix.hpp.

Typedef Documentation

◆ f32_3x3

using f32_3x3 = shammath::mat<f32, 3, 3>

Alias for 3x3 float matrix.

Definition at line 154 of file matrix.hpp.

◆ f32_4x4

using f32_4x4 = shammath::mat<f32, 4, 4>

Alias for 4x4 float matrix.

Definition at line 155 of file matrix.hpp.

◆ f64_3x3

using f64_3x3 = shammath::mat<f64, 3, 3>

Alias for 3x3 double matrix.

Definition at line 156 of file matrix.hpp.

◆ f64_4x4

using f64_4x4 = shammath::mat<f64, 4, 4>

Alias for 4x4 double matrix.

Definition at line 157 of file matrix.hpp.