コード例 #1
0
ファイル: grassmann_body.hpp プロジェクト: fordream/Principia
Multivector<double, Frame, 1> Normalize(
    Multivector<Scalar, Frame, 1> const& multivector) {
  return Multivector<double, Frame, 1>(Normalize(multivector.coordinates()));
}
コード例 #2
0
inline bool operator!=(Multivector<Scalar, Frame, rank> const& left,
                       Multivector<Scalar, Frame, rank> const& right) {
  return left.coordinates() != right.coordinates();
}
コード例 #3
0
inline Multivector<Scalar, Frame, rank> operator/(
    Multivector<Scalar, Frame, rank> const& left,
    double const right) {
  return Multivector<Scalar, Frame, rank>(left.coordinates() / right);
}
コード例 #4
0
inline Multivector<Scalar, Frame, rank> operator*(
    double const left,
    Multivector<Scalar, Frame, rank> const& right) {
  return Multivector<Scalar, Frame, rank>(left * right.coordinates());
}
コード例 #5
0
inline Multivector<Scalar, Frame, rank> operator-(
    Multivector<Scalar, Frame, rank> const& left,
    Multivector<Scalar, Frame, rank> const& right) {
  return Multivector<Scalar, Frame, rank>(
      left.coordinates() - right.coordinates());
}
コード例 #6
0
inline Multivector<Scalar, Frame, rank> operator+(
    Multivector<Scalar, Frame, rank> const& right) {
  return Multivector<Scalar, Frame, rank>(+right.coordinates());
}