File: comp_pchirp.cc

package info (click to toggle)
octave-ltfat 2.3.1%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,712 kB
  • sloc: ansic: 30,379; cpp: 8,808; java: 1,499; objc: 345; makefile: 248; xml: 182; python: 124; sh: 18; javascript: 12
file content (19 lines) | stat: -rw-r--r-- 404 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <octave/oct.h>
#include "ltfat.h"

DEFUN_DLD (comp_pchirp, args, ,
           "This function calls the C-library\n\
            c=pchirp(L,n);\n")
{

    const octave_idx_type L = args(0).int_value();
    const octave_idx_type n = args(1).int_value();

    ComplexMatrix g(L, 1);

    ltfat_pchirp_d(L, n, reinterpret_cast<ltfat_complex_d *>(g.fortran_vec()));

    return octave_value (g);

}