15 F& inverse(F& f) { f = 1.0 / f;
return f; }
18 F inverse(
const F& f) {
return 1.0 / f; }
20 template<
class F, u
int dim>
21 Mapping<F,dim>& inverse(Mapping<F,dim>& m) { m = m.inverse();
return m; }
23 template<
class F, u
int dim>
24 Mapping<F,dim> inverse(
const Mapping<F,dim>& m) {
return m.inverse(); }
26 template<
class F, u
int dim>
27 F determinant(
const Mapping<F,dim>& m) {
return m.determinant(); }
29 template<
class F, u
int dim>
30 Mapping<F,dim>& adjugate(Mapping<F,dim>& m) { m = m.
adjugate();
return m; }
32 template<
class F, u
int dim>
33 Mapping<F,dim> adjugate(
const Mapping<F,dim>& m) {
return m.
adjugate(); }
35 template<
class F,
class G>
36 G& product(
const F& m, G& v) {
40 template<
class F,
class G>
41 G product(
const F& m,
const G& v) {
45 template<
class F, u
int dim>
46 Mapping<F,dim>& prodTranspose(Mapping<F,dim>& m)
49 template<
class F, u
int dim>
50 Mapping<F,dim> prodTranspose(
const Mapping<F,dim>& m)
53 template<
class F, u
int dim>
54 Mapping<F,dim>& transpose(Mapping<F,dim>& m)
57 template<
class F, u
int dim>
58 Mapping<F,dim> transpose(
const Mapping<F,dim>& m)
62 template <
class F,
class G,
class H>
67 H operator()(
const F& x,
const G& y)
const {
return x * y; }
69 virtual std::ostream&
info(std::ostream&
os)
const {
95 inline uint abs(
const uint& v) {
Mapping< F, DimX, DimY > transpose() const
Returns the transpose of the matrix.
Mapping< F, DimY, DimY > prodTranspose() const
Returns the product with the transpose of the matrix.
Mapping< F, DimY, DimX > adjugate() const
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Set< F > makeSet(uint n, const F &first,...)
const concepts::Real norm(const concepts::Real &v)