File: sq.pl

package info (click to toggle)
dmrgpp 6.06-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 113,900 kB
  • sloc: cpp: 80,986; perl: 14,772; ansic: 2,923; makefile: 83; sh: 17
file content (16 lines) | stat: -rwxr-xr-x 264 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl

use strict;
use warnings;
use utf8;
use Fourier;

my ($file, $label) = @ARGV;
defined($label) or die "USAGE: $0 filename label\n";

my @m = Fourier::loadMatrix($file, $label);

my @ft = Fourier::fourierTransform(\@m);

Fourier::printArray(\@ft);