Definition in file columnify.h.
#include <iostream>
#include <string>
#include <vector>
#include <o2scl/misc.h>
Go to the source code of this file.
Data Structures | |
class | columnify |
Create nicely formatted columns from a table of strings. More... | |
Functions | |
template<class mat_t> | |
int | matrix_out (std::ostream &os, mat_t &A, size_t nrows, size_t ncols) |
A operator for naive matrix output. | |
template<class mat_t> | |
int | matrix_cx_out (std::ostream &os, mat_t &A, size_t nrows, size_t ncols) |
A operator for naive complex matrix output. | |
template<class mat_t> | |
int | array_2d_out (std::ostream &os, mat_t &A, size_t nrows, size_t ncols) |
A operator for naive 2-d array output. |
int array_2d_out | ( | std::ostream & | os, | |
mat_t & | A, | |||
size_t | nrows, | |||
size_t | ncols | |||
) | [inline] |
A operator for naive 2-d array output.
The type mat_t
can be any 2d-array type which allows individual element access using [size_t][size_t]
This outputs all of the matrix elements using output settings specified by os
. The alignment performed by columnify using columnify::align_dp, i.e. the numbers are aligned by their decimal points. If the numbers have no decimal points, then the decimal point is assumed to be to the right of the last character in the string represetation of the number.
Definition at line 306 of file columnify.h.
int matrix_out | ( | std::ostream & | os, | |
mat_t & | A, | |||
size_t | nrows, | |||
size_t | ncols | |||
) | [inline] |
A operator for naive matrix output.
The type mat_t
can be any matrix type which allows individual element access using operator()(size_t,size_t)
.
This outputs all of the matrix elements using output settings specified by os
. The alignment performed by columnify using columnify::align_dp, i.e. the numbers are aligned by their decimal points. If the numbers have no decimal points, then the decimal point is assumed to be to the right of the last character in the string represetation of the number.
Definition at line 233 of file columnify.h.