Move docs
This commit is contained in:
100
man_pages/man3/utils.cpp.3
Normal file
100
man_pages/man3/utils.cpp.3
Normal file
@@ -0,0 +1,100 @@
|
||||
.TH "src/utils.cpp" 3 "Thu Sep 28 2023" "Penning Trap Simulation" \" -*- nroff -*-
|
||||
.ad l
|
||||
.nh
|
||||
.SH NAME
|
||||
src/utils.cpp \- Implementation of the utils\&.
|
||||
|
||||
.SH SYNOPSIS
|
||||
.br
|
||||
.PP
|
||||
\fC#include 'utils\&.hpp'\fP
|
||||
.br
|
||||
|
||||
.SS "Functions"
|
||||
|
||||
.in +1c
|
||||
.ti -1c
|
||||
.RI "std::string \fBscientific_format\fP (double d, int width, int prec)"
|
||||
.br
|
||||
.RI "Turns a double into a string written in scientific format\&. "
|
||||
.ti -1c
|
||||
.RI "std::string \fBscientific_format\fP (const std::vector< double > &v, int width, int prec)"
|
||||
.br
|
||||
.RI "Turns a vector of doubles into a string written in scientific format\&. "
|
||||
.in -1c
|
||||
.SH "Detailed Description"
|
||||
.PP
|
||||
Implementation of the utils\&.
|
||||
|
||||
|
||||
.PP
|
||||
\fBAuthor\fP
|
||||
.RS 4
|
||||
Cory Alexander Balaton (coryab)
|
||||
.PP
|
||||
Janita Ovidie Sandtrøen Willumsen (janitaws)
|
||||
.RE
|
||||
.PP
|
||||
\fBVersion\fP
|
||||
.RS 4
|
||||
1\&.0
|
||||
.RE
|
||||
.PP
|
||||
.PP
|
||||
\fBBug\fP
|
||||
.RS 4
|
||||
No known bugs
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition in file \fButils\&.cpp\fP\&.
|
||||
.SH "Function Documentation"
|
||||
.PP
|
||||
.SS "std::string scientific_format (const std::vector< double > & v, int width = \fC20\fP, int prec = \fC10\fP)"
|
||||
|
||||
.PP
|
||||
Turns a vector of doubles into a string written in scientific format\&.
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fIv\fP The vector to stringify
|
||||
.br
|
||||
\fIwidth\fP The reserved width of the string
|
||||
.br
|
||||
\fIprec\fP The precision of the stringified number
|
||||
.RE
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
String
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line \fB21\fP of file \fButils\&.cpp\fP\&.
|
||||
.SS "std::string scientific_format (double d, int width = \fC20\fP, int prec = \fC10\fP)"
|
||||
|
||||
.PP
|
||||
Turns a double into a string written in scientific format\&. Code stolen from https://github.com/anderkve/FYS3150 Header: https://github.com/anderkve/FYS3150/blob/master/code_examples/compilation_linking/example_1/include/utils.hpp Source: https://github.com/anderkve/FYS3150/blob/master/code_examples/compilation_linking/example_1/src/utils.cpp
|
||||
.PP
|
||||
\fBParameters\fP
|
||||
.RS 4
|
||||
\fId\fP The number to stringify
|
||||
.br
|
||||
\fIwidth\fP The reserved width of the string
|
||||
.br
|
||||
\fIprec\fP The precision of the stringified number
|
||||
.RE
|
||||
.PP
|
||||
\fBReturns\fP
|
||||
.RS 4
|
||||
String
|
||||
.RE
|
||||
.PP
|
||||
|
||||
.PP
|
||||
Definition at line \fB14\fP of file \fButils\&.cpp\fP\&.
|
||||
.SH "Author"
|
||||
.PP
|
||||
Generated automatically by Doxygen for Penning Trap Simulation from the source code\&.
|
||||
Reference in New Issue
Block a user