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 Fri May 17 2024 11:48:25 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.