2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 05:09:55 +02:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 06:30:24 +01:00
|
|
|
|
2014-02-17 11:18:15 +01:00
|
|
|
#include "Common/MathUtil.h"
|
|
|
|
|
2019-01-29 23:05:51 +01:00
|
|
|
#include <numeric>
|
2009-04-19 12:10:45 +02:00
|
|
|
|
2009-06-15 06:30:02 +02:00
|
|
|
// Calculate sum of a float list
|
2009-07-28 09:40:18 +02:00
|
|
|
float MathFloatVectorSum(const std::vector<float>& Vec)
|
2009-06-15 06:30:02 +02:00
|
|
|
{
|
2016-06-24 10:43:46 +02:00
|
|
|
return std::accumulate(Vec.begin(), Vec.end(), 0.0f);
|
2009-06-15 06:30:02 +02:00
|
|
|
}
|