Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
311 B
C++
Raw Permalink Normal View History

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