Loading...
Searching...
No Matches
aigenlib storage with the planner's signed dimensions and finite predicate.
More...
#include <compat.hpp>
|
| | Matrix (dipla::aigenlib::Matrix value) |
| | Accept an owning kernel result.
|
| int | rows () const noexcept |
| | Signed row count.
|
| int | cols () const noexcept |
| | Signed column count.
|
| int | size () const noexcept |
| | Signed scalar count.
|
| bool | allFinite () const noexcept |
| | Test every scalar.
|
| | Matrix ()=default |
| | Construct an empty matrix.
|
| | Matrix (std::size_t rows, std::size_t columns, double value=0.0) |
| | Allocate initialized storage.
|
| | Matrix (const Matrix &other)=default |
| | Deep copy.
|
| | Matrix (Matrix &&other) noexcept |
| | Transfer storage.
|
| | Matrix ()=default |
| | Construct an empty matrix.
|
| | Matrix (std::size_t rows, std::size_t columns, double value=0.0) |
| | Allocate initialized storage.
|
| | Matrix (const Matrix &other)=default |
| | Deep copy.
|
| Matrix & | operator= (const Matrix &other) |
| | Deep assignment with strong exception guarantee.
|
| | Matrix (Matrix &&other) noexcept |
| | Transfer storage.
|
| Matrix & | operator= (Matrix &&other) noexcept |
| | Transfer storage.
|
| std::size_t | rows () const noexcept |
| | Row count.
|
| std::size_t | cols () const noexcept |
| | Column count.
|
| std::size_t | size () const noexcept |
| | Allocated scalar count.
|
| double & | operator() (std::size_t row, std::size_t column) |
| | Checked access.
|
| double | operator() (std::size_t row, std::size_t column) const |
| | Checked access.
|
| double * | row_data (std::size_t row) |
| | Borrow a row.
|
| const double * | row_data (std::size_t row) const |
| | Borrow a row.
|
| bool | finite () const noexcept |
| | Validate all stored scalars.
|
| double | trace () const |
| | Sum a square matrix's diagonal.
|
|
| static Matrix | Zero (std::size_t rows, std::size_t columns) |
| | Allocate zero storage.
|
aigenlib storage with the planner's signed dimensions and finite predicate.
Public inheritance permits zero-copy calls into aigenlib kernels.
◆ Matrix() [1/5]
Accept an owning kernel result.
- Parameters
-
◆ Matrix() [2/5]
Construct an empty matrix.
◆ Matrix() [3/5]
Allocate initialized storage.
- Parameters
-
| rows | Row count. |
| columns | Column count. |
| value | Initial scalar. |
◆ Matrix() [4/5]
◆ Matrix() [5/5]
Transfer storage.
- Parameters
-
| other | Source, emptied afterwards. |
◆ allFinite()
| bool Aigen::Matrix::allFinite |
( |
| ) |
const |
|
inlinenoexcept |
Test every scalar.
- Returns
- Whether finite.
◆ cols()
| int Aigen::Matrix::cols |
( |
| ) |
const |
|
inlinenoexcept |
Signed column count.
- Returns
- Bounded columns.
◆ rows()
| int Aigen::Matrix::rows |
( |
| ) |
const |
|
inlinenoexcept |
Signed row count.
- Returns
- Bounded rows.
◆ size()
| int Aigen::Matrix::size |
( |
| ) |
const |
|
inlinenoexcept |
Signed scalar count.
- Returns
- Bounded scalar count.
◆ Zero()
| Matrix Aigen::Matrix::Zero |
( |
std::size_t | rows, |
|
|
std::size_t | columns ) |
|
inlinestatic |
Allocate zero storage.
- Parameters
-
| rows | Rows. |
| columns | Columns. |
- Returns
- Zero matrix.
The documentation for this class was generated from the following file: