1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-15 06:17:05 +01:00

Use Grid Integer type

This commit is contained in:
Lanny91
2017-02-22 13:09:32 +00:00
parent 0796696733
commit 95625a7bd1
2 changed files with 7 additions and 7 deletions

View File

@ -72,7 +72,7 @@ namespace Optimization {
inline veci operator()(Integer a){
veci out;
VECTOR_FOR(i, W<int>::r, 1)
VECTOR_FOR(i, W<Integer>::r, 1)
{
out.v[i] = a;
}
@ -220,7 +220,7 @@ namespace Optimization {
inline veci operator()(veci a, veci b){
veci out;
VECTOR_FOR(i, W<int>::r, 1)
VECTOR_FOR(i, W<Integer>::r, 1)
{
out.v[i] = a.v[i] + b.v[i];
}
@ -242,7 +242,7 @@ namespace Optimization {
inline veci operator()(veci a, veci b){
veci out;
VECTOR_FOR(i, W<int>::r, 1)
VECTOR_FOR(i, W<Integer>::r, 1)
{
out.v[i] = a.v[i] - b.v[i];
}
@ -282,7 +282,7 @@ namespace Optimization {
inline veci operator()(veci a, veci b){
veci out;
VECTOR_FOR(i, W<int>::r, 1)
VECTOR_FOR(i, W<Integer>::r, 1)
{
out.v[i] = a.v[i]*b.v[i];
}
@ -304,7 +304,7 @@ namespace Optimization {
inline veci operator()(veci a, veci b){
veci out;
VECTOR_FOR(i, W<int>::r, 1)
VECTOR_FOR(i, W<Integer>::r, 1)
{
out.v[i] = a.v[i]/b.v[i];
}