|
Revision 617, 342 bytes
(checked in by tapted, 2 years ago)
|
|
Add a test program -- 1.5million coordinates per second - yippee
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
author date id revision url Rev Revision
|
| Line | |
|---|
| 1 | #define RBFNET_READ_ONLY |
|---|
| 2 | #include "../rbn_solve.h" |
|---|
| 3 | |
|---|
| 4 | #include <iostream> |
|---|
| 5 | |
|---|
| 6 | int main() { |
|---|
| 7 | XYInterp net("network.dat"); |
|---|
| 8 | for (int i = 0; i < 1500000; ++i) { |
|---|
| 9 | XYInterp::INVEC in; |
|---|
| 10 | in[0] = in[1] = i%30; |
|---|
| 11 | XYInterp::OUTVEC out; |
|---|
| 12 | net.sub(out, in); |
|---|
| 13 | // std::cerr << out[0] << " " << out[1] << std::endl; |
|---|
| 14 | } |
|---|
| 15 | } |
|---|