32 lines
412 B
C++
32 lines
412 B
C++
//
|
|
// MathIO.h
|
|
// common
|
|
//
|
|
// Created by Timothy Prepscius on 8/4/18.
|
|
// Copyright © 2018 Timothy Prepscius. All rights reserved.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
namespace tjp {
|
|
namespace core {
|
|
namespace math {
|
|
|
|
template<typename V>
|
|
struct RelativeFront
|
|
{
|
|
V *v;
|
|
Real m;
|
|
} ;
|
|
|
|
template<typename V>
|
|
auto relative_front(V &v, Real m)
|
|
{
|
|
return RelativeFront<V> { &v, m };
|
|
}
|
|
|
|
} // namespace
|
|
} // namespace
|
|
} // namespace
|
|
|