36 #include <itpp/itexports.h>
45 ITPP_EXPORT ivec
find(
const bvec &invector);
64 ITPP_EXPORT mat
ones(
int rows,
int cols);
68 ITPP_EXPORT imat
ones_i(
int rows,
int cols);
70 ITPP_EXPORT cmat
ones_c(
int rows,
int cols);
82 ITPP_EXPORT mat
zeros(
int rows,
int cols);
86 ITPP_EXPORT imat
zeros_i(
int rows,
int cols);
88 ITPP_EXPORT cmat
zeros_c(
int rows,
int cols);
104 for (
int i = size - 1; i >= 0; i--)
128 for (
int n = 1; n < points; ++n) {
129 output(n) = output(n-1)+step;
162 ITPP_EXPORT vec
zigzag_space(
double t0,
double t1,
int K = 5);
228 template <
typename Num_T>
231 int n_rows = c.
size();
232 int n_cols = r.
size();
234 for (
int i = 0; i < n_rows; ++i) {
235 int j_limit =
std::min(n_cols, n_rows - i);
236 for (
int j = 0; j < j_limit; ++j) {
237 output(i + j, j) = c(i);
240 for (
int j = 1; j < n_cols; ++j) {
241 int i_limit =
std::min(n_rows, n_cols - j);
242 for (
int i = 0; i < i_limit; ++i) {
243 output(i, i + j) = r(j);
250 template <
typename Num_T>
255 for (
int i = 0; i < s; ++i) {
256 for (
int j = 0; j < s - i; ++j) {
257 output(i + j, j) = c(i);
260 for (
int j = 1; j < s; ++j) {
261 for (
int i = 0; i < s - j; ++i) {
262 output(i, i + j) = c(j);
269 ITPP_EXPORT
const cmat
toeplitz(
const cvec &c);
285 ITPP_EXPORT
void house(
const vec &x, vec &v,
double &beta);
291 ITPP_EXPORT
void givens(
double a,
double b,
double &c,
double &s);
297 ITPP_EXPORT
void givens(
double a,
double b, mat &m);
303 ITPP_EXPORT mat
givens(
double a,
double b);
309 ITPP_EXPORT
void givens_t(
double a,
double b, mat &m);
315 ITPP_EXPORT mat
givens_t(
double a,
double b);
334 Vec<T> vec_2(T v0, T v1)
347 Vec<T> vec_3(T v0, T v1, T v2)
361 Mat<T> mat_1x1(T m00)
373 Mat<T> mat_1x2(T m00, T m01)
386 Mat<T> mat_2x1(T m00,
400 Mat<T> mat_2x2(T m00, T m01,
416 Mat<T> mat_1x3(T m00, T m01, T m02)
430 Mat<T> mat_3x1(T m00,
446 Mat<T> mat_2x3(T m00, T m01, T m02,
464 Mat<T> mat_3x2(T m00, T m01,
483 Mat<T> mat_3x3(T m00, T m01, T m02,
502 #endif // #ifndef SPECMAT_H