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