12#ifndef ARCANE_UTILS_REAL3X3PROXY_H
13#define ARCANE_UTILS_REAL3X3PROXY_H
17#include "arcane/utils/Real3x3.h"
18#include "arcane/utils/Real3Proxy.h"
60 const Real3x3& operator=(Real3x3 f)
139 return x.isNearlyZero() &&
y.isNearlyZero() &&
z.isNearlyZero();
146 std::istream& assign(std::istream& i);
149 std::ostream& print(std::ostream& o)
const;
152 std::ostream& printXyz(std::ostream& o)
const;
241 const Real3x3& getValue()
const
246 Real3x3& getValueMutable()
248 m_info.setReadOrWrite();
259 static bool _eq(Real a, Real b)
261 return TypeEqualT<Real>::isEqual(a, b);
294 return a == b.getValue();
297operator==(
const Real3x3Proxy& a,
const Real3x3& b)
299 return a.getValue() == b;
304 return a.getValue() == b.getValue();
313 return a != b.getValue();
318 return a.getValue() != b;
323 return a.getValue() != b.getValue();
333 return Real3x3(vec.
x * sca, vec.
y * sca, vec.
z * sca);
343 return Real3x3(vec.
x * sca, vec.
y * sca, vec.
z * sca);
353 return Real3x3(vec.
x / sca, vec.
y / sca, vec.
z / sca);
374 return (v1.
x < v2.
x);
RealProxy x
first component of the triplet
Class managing a 3-dimensional real vector.
std::istream & operator>>(std::istream &i, Real3x3Proxy &t)
Reads the triplet t from the stream o.
Real3x3Proxy & subSame(Real3 b)
Subtracts b from each component of the triplet.
void operator/=(Real b)
Divides each component of the matrix by the real b.
Real3x3Proxy & operator-=(Real3x3 b)
Subtracts b from the triplet.
std::ostream & printXyz(std::ostream &o) const
Writes the triplet to the stream o in the form (x,y,z).
Real3x3Proxy & addSame(Real3 b)
Adds b to each component of the triplet.
Real3x3Proxy & divSame(Real3 b)
Divides each component of the triplet by b.
Real3x3Proxy(const Real3x3Proxy &f)
Constructs a triplet identical to f.
Real3Proxy z
first element of the triplet
Real3x3Proxy & add(Real3x3 b)
Adds b to the triplet.
const Real3x3 & operator=(Real v)
Assigns the triplet (v,v,v) to the instance.
Real3x3Proxy & mulSame(Real3 b)
Multiplies each component of the triplet by b.
Real3x3Proxy & reset()
Resets the triplet using default constructors.
Real3x3Proxy & sub(Real3x3 b)
Subtracts b from the triplet.
Real3x3Proxy(Real3x3 &value, const MemoryAccessInfo &info)
Constructs the triplet (ax,ay,az).
Real3x3 operator+(Real3x3 b) const
Creates a triplet that equals this triplet added to b.
Real3x3Proxy & assign(Real3x3 f)
Copies the triplet f.
Real3Proxy x
first element of the triplet
Real3x3 copy() const
Returns a copy of the triplet.
Real3x3 operator-(Real3x3 b) const
Creates a triplet that equals b subtracted from this triplet.
Real3Proxy y
first element of the triplet
Real3x3 operator-() const
Creates a tensor opposite to the current tensor.
bool isNearlyZero() const
Compares the matrix with the zero matrix.
Real3x3Proxy & assign(Real3 ax, Real3 ay, Real3 az)
Assigns the triplet (ax,ay,az) to the instance.
void operator*=(Real b)
Multiplies each component of the matrix by the real b.
Real3x3Proxy & operator+=(Real3x3 b)
Adds b to the triplet.
Class managing a 3x3 real matrix.
Real3 z
first element of the triplet
Real3 y
first element of the triplet
Real3 x
first element of the triplet
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Real2 operator*(Real sca, const Real2Proxy &vec)
Multiplication by a scalar.
bool operator<(const Item &item1, const Item &item2)
Compare two entities.
double Real
Type representing a real number.
Real2 operator/(const Real2Proxy &vec, Real sca)
Division by a scalar.
std::ostream & operator<<(std::ostream &ostr, eItemKind item_kind)
Output operator for a stream.