Kstars

gslhelpers.cpp
1/*
2 SPDX-FileCopyrightText: 2022 Sophie Taylor <sophie@spacekitteh.moe>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "gslhelpers.h"
8
9namespace Mathematics
10{
11
12std::shared_ptr<gsl_vector> GSLHelpers::NewGSLVector(size_t n)
13{
14 auto vec = gsl_vector_calloc(n);
15 return std::shared_ptr<gsl_vector>(vec, gsl_vector_free);
16}
17
18} // namespace Mathematics
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.