From 7a7f685a8436b456b246c49baf76bb8af930b214 Mon Sep 17 00:00:00 2001 From: Sandeep Gupta Date: Fri, 7 Jul 2017 00:29:35 +0530 Subject: NORM --- help/en_US/master_help.xml | 142 ++-- help/en_US/scilab_en_US_help/AVRADCSetup.html | 10 +- help/en_US/scilab_en_US_help/AVRDigitalIn.html | 6 +- help/en_US/scilab_en_US_help/AVRDigitalOut.html | 6 +- .../scilab_en_US_help/AVRDigitalPortSetup.html | 6 +- help/en_US/scilab_en_US_help/AVRDigitalSetup.html | 6 +- help/en_US/scilab_en_US_help/AVRGetTimerValue.html | 6 +- help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html | 6 +- help/en_US/scilab_en_US_help/AVRPWM0Setup.html | 6 +- help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html | 6 +- help/en_US/scilab_en_US_help/AVRPWM1Setup.html | 6 +- help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html | 6 +- help/en_US/scilab_en_US_help/AVRPWM2Setup.html | 6 +- help/en_US/scilab_en_US_help/AVRReadADC.html | 6 +- help/en_US/scilab_en_US_help/AVRSleep.html | 6 +- help/en_US/scilab_en_US_help/AVRTimerSetup.html | 6 +- help/en_US/scilab_en_US_help/AVRUARTReceive.html | 6 +- help/en_US/scilab_en_US_help/AVRUARTSetup.html | 6 +- help/en_US/scilab_en_US_help/AVRUARTTransmit.html | 6 +- .../scilab_en_US_help/CV_AdaptiveThreshold.html | 6 +- help/en_US/scilab_en_US_help/CV_Blur.html | 6 +- help/en_US/scilab_en_US_help/CV_Canny.html | 6 +- help/en_US/scilab_en_US_help/CV_CornerHarris.html | 6 +- help/en_US/scilab_en_US_help/CV_CreateImage.html | 6 +- help/en_US/scilab_en_US_help/CV_CvtColor.html | 6 +- help/en_US/scilab_en_US_help/CV_Dilate.html | 6 +- .../scilab_en_US_help/CV_DistanceTransform.html | 6 +- help/en_US/scilab_en_US_help/CV_Erode.html | 6 +- help/en_US/scilab_en_US_help/CV_GaussianBlur.html | 6 +- help/en_US/scilab_en_US_help/CV_GetImgSize.html | 6 +- help/en_US/scilab_en_US_help/CV_LoadImage.html | 6 +- help/en_US/scilab_en_US_help/CV_MedianBlur.html | 6 +- help/en_US/scilab_en_US_help/CV_SaveImage.html | 6 +- help/en_US/scilab_en_US_help/CV_ShowImage.html | 6 +- help/en_US/scilab_en_US_help/CV_Threshold.html | 6 +- help/en_US/scilab_en_US_help/CV_WaitKey.html | 6 +- help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS | Bin 2964 -> 3096 bytes .../scilab_en_US_help/JavaHelpSearch/DOCS.TAB | 5 +- .../en_US/scilab_en_US_help/JavaHelpSearch/OFFSETS | Bin 133 -> 143 bytes .../scilab_en_US_help/JavaHelpSearch/POSITIONS | Bin 13311 -> 13885 bytes help/en_US/scilab_en_US_help/JavaHelpSearch/SCHEMA | 2 +- help/en_US/scilab_en_US_help/JavaHelpSearch/TMAP | Bin 10240 -> 10240 bytes help/en_US/scilab_en_US_help/index.html | 2 +- help/en_US/scilab_en_US_help/jhelpmap.jhm | 2 +- help/en_US/scilab_en_US_help/jhelptoc.xml | 2 +- .../section_35ee3b19a97c75b084122c05ac0777c6.html | 259 +++++++ jar/scilab_en_US_help.jar | Bin 88922 -> 90519 bytes macros/ASTManagement/lib | Bin 1936 -> 1988 bytes macros/CCodeGeneration/lib | Bin 1032 -> 1084 bytes macros/ErrorMessages/lib | Bin 496 -> 548 bytes macros/FunctionAnnotation/lib | Bin 2388 -> 2440 bytes macros/FunctionList/lib | Bin 564 -> 616 bytes macros/GeneralFunctions/lib | Bin 1108 -> 1160 bytes macros/Hardware/AVR/lib | Bin 948 -> 1000 bytes macros/Hardware/RasberryPi/lib | Bin 952 -> 1004 bytes macros/ImageProcessing/core/lib | Bin 500 -> 552 bytes macros/ImageProcessing/highgui/lib | Bin 560 -> 612 bytes macros/ImageProcessing/imgproc/lib | Bin 728 -> 780 bytes macros/Scilab-Arduino/lib | Bin 692 -> 744 bytes macros/SymbolTable/lib | Bin 728 -> 780 bytes macros/ToolInitialization/lib | Bin 780 -> 832 bytes macros/findDeps/lib | Bin 572 -> 624 bytes macros/lib | Bin 512 -> 564 bytes src/c/linearAlgebra/fullrf/dfullrfa.c | 112 +++ src/c/linearAlgebra/givens/dgivensa.c | 76 +++ src/c/linearAlgebra/hess/dhessa.c | 8 +- src/c/linearAlgebra/householder/dhouseholdera.c | 90 +++ src/c/linearAlgebra/includes/fullrf.h | 26 + src/c/linearAlgebra/includes/givens.h | 25 + src/c/linearAlgebra/includes/householder.h | 26 + src/c/linearAlgebra/includes/qr.h | 26 + src/c/linearAlgebra/includes/rowcomp.h | 26 + src/c/linearAlgebra/includes/sqroot.h | 26 + src/c/linearAlgebra/interfaces/int_fullrf.h | 28 + src/c/linearAlgebra/interfaces/int_givens.h | 32 + src/c/linearAlgebra/interfaces/int_householder.h | 28 + src/c/linearAlgebra/interfaces/int_qr.h | 34 + src/c/linearAlgebra/interfaces/int_rowcomp.h | 29 + src/c/linearAlgebra/interfaces/int_sqroot.h | 27 + src/c/linearAlgebra/proj/dproja.c | 73 ++ src/c/linearAlgebra/projspec/dprojspeca.c | 67 ++ src/c/linearAlgebra/qr/dqra.c | 298 ++++++++ src/c/linearAlgebra/rowcomp/drowcompa.c | 79 +++ src/c/linearAlgebra/sqroot/dsqroota.c | 130 ++++ src/c/linearAlgebra/sva/dsvaa.c | 21 +- src/c/linearAlgebra/svd/.1.c.swp | Bin 0 -> 12288 bytes src/c/linearAlgebra/svd/zsvda.c | 33 +- src/c/matrixOperations/includes/norm.h | 2 +- src/c/matrixOperations/includes/spec.h | 56 -- src/c/matrixOperations/interfaces/int_spec.h | 71 -- src/c/matrixOperations/norm/dnorma.c | 12 +- src/c/matrixOperations/spec/Makefile.am | 70 -- src/c/matrixOperations/spec/Makefile.in | 755 -------------------- src/c/matrixOperations/spec/cspeca.c | 34 - src/c/matrixOperations/spec/dspeca.c | 71 -- src/c/matrixOperations/spec/sspeca.c | 34 - src/c/matrixOperations/spec/testDoubleSpec.c | 116 ---- src/c/matrixOperations/spec/testFloatSpec.c | 110 --- .../spec/test_DoubleSpec/testDoubleSpec.vcxproj | 178 ----- .../test_DoubleSpec/testDoubleSpec.vcxproj.filters | 22 - .../spec/test_FloatSpec/testFloatSpec.vcxproj | 178 ----- .../test_FloatSpec/testFloatSpec.vcxproj.filters | 22 - src/c/matrixOperations/spec/zspeca.c | 80 --- src/c/matrixOperations/spec2/Makefile.am | 70 -- src/c/matrixOperations/spec2/Makefile.in | 757 --------------------- src/c/matrixOperations/spec2/cspec2a.c | 36 - src/c/matrixOperations/spec2/dspec2a.c | 113 --- src/c/matrixOperations/spec2/sspec2a.c | 36 - src/c/matrixOperations/spec2/testDoubleSpec2.c | 261 ------- src/c/matrixOperations/spec2/testFloatSpec2.c | 134 ---- .../spec2/test_DoubleSpec2/testDoubleSpec2.vcxproj | 178 ----- .../testDoubleSpec2.vcxproj.filters | 22 - .../spec2/test_FloatSpec2/testFloatSpec2.vcxproj | 178 ----- .../test_FloatSpec2/testFloatSpec2.vcxproj.filters | 22 - src/c/matrixOperations/spec2/zspec2a.c | 96 --- .../testLinearAlgebra/testnorm/testnorm.sci | 6 + 116 files changed, 1756 insertions(+), 3912 deletions(-) create mode 100644 help/en_US/scilab_en_US_help/section_35ee3b19a97c75b084122c05ac0777c6.html create mode 100644 src/c/linearAlgebra/fullrf/dfullrfa.c create mode 100644 src/c/linearAlgebra/givens/dgivensa.c create mode 100644 src/c/linearAlgebra/householder/dhouseholdera.c create mode 100644 src/c/linearAlgebra/includes/fullrf.h create mode 100644 src/c/linearAlgebra/includes/givens.h create mode 100644 src/c/linearAlgebra/includes/householder.h create mode 100644 src/c/linearAlgebra/includes/qr.h create mode 100644 src/c/linearAlgebra/includes/rowcomp.h create mode 100644 src/c/linearAlgebra/includes/sqroot.h create mode 100644 src/c/linearAlgebra/interfaces/int_fullrf.h create mode 100644 src/c/linearAlgebra/interfaces/int_givens.h create mode 100644 src/c/linearAlgebra/interfaces/int_householder.h create mode 100644 src/c/linearAlgebra/interfaces/int_qr.h create mode 100644 src/c/linearAlgebra/interfaces/int_rowcomp.h create mode 100644 src/c/linearAlgebra/interfaces/int_sqroot.h create mode 100644 src/c/linearAlgebra/proj/dproja.c create mode 100644 src/c/linearAlgebra/projspec/dprojspeca.c create mode 100644 src/c/linearAlgebra/qr/dqra.c create mode 100644 src/c/linearAlgebra/rowcomp/drowcompa.c create mode 100644 src/c/linearAlgebra/sqroot/dsqroota.c create mode 100644 src/c/linearAlgebra/svd/.1.c.swp delete mode 100644 src/c/matrixOperations/includes/spec.h delete mode 100644 src/c/matrixOperations/interfaces/int_spec.h delete mode 100644 src/c/matrixOperations/spec/Makefile.am delete mode 100644 src/c/matrixOperations/spec/Makefile.in delete mode 100644 src/c/matrixOperations/spec/cspeca.c delete mode 100644 src/c/matrixOperations/spec/dspeca.c delete mode 100644 src/c/matrixOperations/spec/sspeca.c delete mode 100644 src/c/matrixOperations/spec/testDoubleSpec.c delete mode 100644 src/c/matrixOperations/spec/testFloatSpec.c delete mode 100644 src/c/matrixOperations/spec/test_DoubleSpec/testDoubleSpec.vcxproj delete mode 100644 src/c/matrixOperations/spec/test_DoubleSpec/testDoubleSpec.vcxproj.filters delete mode 100644 src/c/matrixOperations/spec/test_FloatSpec/testFloatSpec.vcxproj delete mode 100644 src/c/matrixOperations/spec/test_FloatSpec/testFloatSpec.vcxproj.filters delete mode 100644 src/c/matrixOperations/spec/zspeca.c delete mode 100644 src/c/matrixOperations/spec2/Makefile.am delete mode 100644 src/c/matrixOperations/spec2/Makefile.in delete mode 100644 src/c/matrixOperations/spec2/cspec2a.c delete mode 100644 src/c/matrixOperations/spec2/dspec2a.c delete mode 100644 src/c/matrixOperations/spec2/sspec2a.c delete mode 100644 src/c/matrixOperations/spec2/testDoubleSpec2.c delete mode 100644 src/c/matrixOperations/spec2/testFloatSpec2.c delete mode 100644 src/c/matrixOperations/spec2/test_DoubleSpec2/testDoubleSpec2.vcxproj delete mode 100644 src/c/matrixOperations/spec2/test_DoubleSpec2/testDoubleSpec2.vcxproj.filters delete mode 100644 src/c/matrixOperations/spec2/test_FloatSpec2/testFloatSpec2.vcxproj delete mode 100644 src/c/matrixOperations/spec2/test_FloatSpec2/testFloatSpec2.vcxproj.filters delete mode 100644 src/c/matrixOperations/spec2/zspec2a.c create mode 100644 tests/unit_tests/testLinearAlgebra/testnorm/testnorm.sci diff --git a/help/en_US/master_help.xml b/help/en_US/master_help.xml index b0fcaa9..510d612 100644 --- a/help/en_US/master_help.xml +++ b/help/en_US/master_help.xml @@ -1,41 +1,41 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]> Scilab 2 C Converter - + Scilab 2 C Converter -&aa4e59f7469f5c11e672d1768d80a313d; -&a1d994fb4d945fae4acb80d6fd8333004; -&add09de2a95b7ed306a35b53e980b3e90; -&a4397b185ae2cdc0c38ee5cba453da0ce; -&a9c63c170d4525ca69b76e029a661bdb5; -&ae7cda6368a6b43939f00b5e4518c86f5; -&a978254b6f95f67857b984f6f47acbeef; -&a12d6e3990c9535a9a7a263a728194c65; -&a00a988928aa4270555daad63bcb690cb; -&a539c26defb9f05463d0ce5459f1c7583; -&a3288ef52e1705d6634e93a5e55a31bf2; -&a3548111a692116d8ee0eae34f799d72d; -&a9a959f18ddee333a1267e4872a779d22; -&aa92c26a5cba43827d64cdc489ae63ca5; -&a66fa288c2ad2c1a24e70cb036732ffff; -&aa505640044f2558f671950211dfbb695; -&aace75f8933c6ccb6a7bd24b19b784e3f; -&a8fc216f2dfd8eee80f14d174785b7bc0; -&a4edea9b44935b3180889f99e5370aee4; -&aff5fbeafa9733aeb2a9b23c1aacb4631; -&a68325bb85314e1d5ec89869069c8445e; -&ad3dd56a5d5a76d73636a583751902602; -&a0f0d979abe457bb6a40d2a542732bf10; -&a9f22418ecd71f71eed44a456b8635ddb; -&a3d8fa68e94f2bf78571ec1c132cbf30d; -&ae280e09f59dc55502a391472a5e3c6a7; -&a34ae20f1c7b1a6aba4cfe28cb8458f4e; -&ae55c9b2aa4e91cd219c5ca2b997898b4; -&ac8a5edd3c9c9a7f196e5dbb50d6a35a2; -&ab2cca98b6ef2f0dc8983fab762ad7764; -&ab1553393fdffa9c613547bc6be1fff3d; -&abf0582be77e4c6c254d484f146797055; -&a709b81dcd97f499cf0d5ea132d4a8316; -&a61a3e5beb0f5d7654a142e2723b448fb; -&abba952c5250821630096b30b2ec5021f; +&a969c4bf3ff76c6dbdd7a6eb15c4cf8b8; +&a61577f2ad2b96f5f6ef31ed4f502adac; +&a93de34cc1bd35ab17a5d2a67508b130d; +&afdaaf1b81defd47586a6a492d35ccdeb; +&a229da4c62bfefaaf208ba0663e379330; +&a4e849b73f086ca69d8463a180c16c992; +&ac9bd044d7605b6d617d256f0668b3afc; +&a090be0c9e8be2cd6b8c57871beb4fc3d; +&af3c35bc95353ca542fd4a677b2663131; +&acbcd013adae46e50d67fee762630204e; +&a53e48ab27782d23a67a7be130ce62259; +&a8f23e3a933460c57e2ab6e01fbd1d667; +&ae3fe5366d006ca6785c7709823c71556; +&ab74ce6c82babbbb40dbe26715cfca5d3; +&aa64990800c28122c482dd319547391aa; +&a2738d2846526a18037cb32e79f8cefdf; +&a34419ca4646ad3a26ff0ca55802e73fd; +&ab5b43d849303dfe36a8379faebcf6bc3; +&ae67ce1d8c6e5201a29c2ad5c54946fa7; +&a98a9e84b7cfa85cb4bc0068372817ccd; +&a86b06e8d5703d43dfd1f6643dce2dfd1; +&a3d175885ebe2342ea05d4a85d182b0e6; +&aa6e0fdfe0b37c2c3a46339e8432c4c79; +&a9f4e63526fad3aa155a1c13a5f5f5d39; +&a9e3c72a9a98ee7102e0f5569f0eb68a8; +&af346b4cabba75a87dd1dff0cb353a010; +&af75fd29bc07899c47a5d4652c5ff90cf; +&afaccd5d59cd1d82aa9b082d5ad7fb3b9; +&af70075199d801146358fac7bc9ed7cc9; +&a7a9f31e1ff3b08649c5eb7745749a048; +&a244f909027976b6a2489e3f5dcb8d649; +&a5c84bba38033623256fd9bc03d73e0a2; +&ad4cc4994a54278801cce7aacbe78634f; +&a36783601e19e66e889596f7e23887358; +&abfdf3313455964ebfe3c896cd65a1e32; diff --git a/help/en_US/scilab_en_US_help/AVRADCSetup.html b/help/en_US/scilab_en_US_help/AVRADCSetup.html index 54d6a64..5fdf9e4 100644 --- a/help/en_US/scilab_en_US_help/AVRADCSetup.html +++ b/help/en_US/scilab_en_US_help/AVRADCSetup.html @@ -12,11 +12,11 @@
- << Scilab 2 C Converter + << Scilab 2 C Converter - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRADCSetup + Scilab 2 C Converter >> Scilab 2 C Converter > AVRADCSetup

AVRADCSetup

@@ -70,11 +70,11 @@
Report an issue
- << Scilab 2 C Converter + << Scilab 2 C Converter - Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRDigitalIn.html b/help/en_US/scilab_en_US_help/AVRDigitalIn.html index a1f6eb0..572108e 100644 --- a/help/en_US/scilab_en_US_help/AVRDigitalIn.html +++ b/help/en_US/scilab_en_US_help/AVRDigitalIn.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalIn + Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalIn

AVRDigitalIn

@@ -74,7 +74,7 @@ for providing support for generating C code for AVR.

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRDigitalOut.html b/help/en_US/scilab_en_US_help/AVRDigitalOut.html index 0219f8c..4b08fa4 100644 --- a/help/en_US/scilab_en_US_help/AVRDigitalOut.html +++ b/help/en_US/scilab_en_US_help/AVRDigitalOut.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalOut + Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalOut

AVRDigitalOut

@@ -77,7 +77,7 @@ for providing support for generating C code for AVR.

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html b/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html index a5b8c2d..226b9b2 100644 --- a/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html +++ b/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalPortSetup + Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalPortSetup

AVRDigitalPortSetup

@@ -75,7 +75,7 @@ for providing support for generating C code for AVR.

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRDigitalSetup.html b/help/en_US/scilab_en_US_help/AVRDigitalSetup.html index b2048ad..74ee114 100644 --- a/help/en_US/scilab_en_US_help/AVRDigitalSetup.html +++ b/help/en_US/scilab_en_US_help/AVRDigitalSetup.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalSetup + Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalSetup

AVRDigitalSetup

@@ -77,7 +77,7 @@ for providing support for generating C code for AVR.

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRGetTimerValue.html b/help/en_US/scilab_en_US_help/AVRGetTimerValue.html index 1ca3642..2144461 100644 --- a/help/en_US/scilab_en_US_help/AVRGetTimerValue.html +++ b/help/en_US/scilab_en_US_help/AVRGetTimerValue.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRGetTimerValue + Scilab 2 C Converter >> Scilab 2 C Converter > AVRGetTimerValue

AVRGetTimerValue

@@ -69,7 +69,7 @@ for providing support for generating C code for AVR.

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html b/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html index 5657473..118fc5b 100644 --- a/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html +++ b/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM0SetDuty + Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM0SetDuty

AVRPWM0SetDuty

@@ -66,7 +66,7 @@ from 0V-5V.In this function by varying the duty cycle, varying voltage can be pr
- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRPWM0Setup.html b/help/en_US/scilab_en_US_help/AVRPWM0Setup.html index 2343202..05a9503 100644 --- a/help/en_US/scilab_en_US_help/AVRPWM0Setup.html +++ b/help/en_US/scilab_en_US_help/AVRPWM0Setup.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM0Setup + Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM0Setup

AVRPWM0Setup

@@ -84,7 +84,7 @@ for providing support for generating C code for AVR.

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html b/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html index 3a5adda..521d615 100644 --- a/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html +++ b/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM1SetDuty + Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM1SetDuty

AVRPWM1SetDuty

@@ -69,7 +69,7 @@ AVRPWM1SetDuty(0,50,40000); //This function will produce PWM signal of 50% duty
- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRPWM1Setup.html b/help/en_US/scilab_en_US_help/AVRPWM1Setup.html index 94e3929..5d5b0dc 100644 --- a/help/en_US/scilab_en_US_help/AVRPWM1Setup.html +++ b/help/en_US/scilab_en_US_help/AVRPWM1Setup.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM1Setup + Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM1Setup

AVRPWM1Setup

@@ -86,7 +86,7 @@ on compare match.Also as defined the output will be produced at
- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html b/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html index ade4fa2..308ae80 100644 --- a/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html +++ b/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM2SetDuty + Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM2SetDuty

AVRPWM2SetDuty

@@ -67,7 +67,7 @@ AVRPWM2SetDuty(0); //Produces 0V at OC2 pin

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRPWM2Setup.html b/help/en_US/scilab_en_US_help/AVRPWM2Setup.html index 139693a..c4fd5f9 100644 --- a/help/en_US/scilab_en_US_help/AVRPWM2Setup.html +++ b/help/en_US/scilab_en_US_help/AVRPWM2Setup.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM2Setup + Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM2Setup

AVRPWM2Setup

@@ -83,7 +83,7 @@ compare match

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRReadADC.html b/help/en_US/scilab_en_US_help/AVRReadADC.html index 47488b0..51e72f1 100644 --- a/help/en_US/scilab_en_US_help/AVRReadADC.html +++ b/help/en_US/scilab_en_US_help/AVRReadADC.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRReadADC + Scilab 2 C Converter >> Scilab 2 C Converter > AVRReadADC

AVRReadADC

@@ -70,7 +70,7 @@ for providing support for generating C code for AVR.

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRSleep.html b/help/en_US/scilab_en_US_help/AVRSleep.html index b491c96..c9c0166 100644 --- a/help/en_US/scilab_en_US_help/AVRSleep.html +++ b/help/en_US/scilab_en_US_help/AVRSleep.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRSleep + Scilab 2 C Converter >> Scilab 2 C Converter > AVRSleep

AVRSleep

@@ -61,7 +61,7 @@ for providing support for generating C code for AVR.

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRTimerSetup.html b/help/en_US/scilab_en_US_help/AVRTimerSetup.html index a815093..1d0c0e4 100644 --- a/help/en_US/scilab_en_US_help/AVRTimerSetup.html +++ b/help/en_US/scilab_en_US_help/AVRTimerSetup.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRTimerSetup + Scilab 2 C Converter >> Scilab 2 C Converter > AVRTimerSetup

AVRTimerSetup

@@ -52,7 +52,7 @@
- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRUARTReceive.html b/help/en_US/scilab_en_US_help/AVRUARTReceive.html index 47e683a..2d9e5f5 100644 --- a/help/en_US/scilab_en_US_help/AVRUARTReceive.html +++ b/help/en_US/scilab_en_US_help/AVRUARTReceive.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTReceive + Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTReceive

AVRUARTReceive

@@ -63,7 +63,7 @@ for providing support for generating C code for AVR.

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRUARTSetup.html b/help/en_US/scilab_en_US_help/AVRUARTSetup.html index c8adca4..a47a045 100644 --- a/help/en_US/scilab_en_US_help/AVRUARTSetup.html +++ b/help/en_US/scilab_en_US_help/AVRUARTSetup.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTSetup + Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTSetup

AVRUARTSetup

@@ -82,7 +82,7 @@ for providing support for generating C code for AVR.

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/AVRUARTTransmit.html b/help/en_US/scilab_en_US_help/AVRUARTTransmit.html index 36ce625..ef0ba96 100644 --- a/help/en_US/scilab_en_US_help/AVRUARTTransmit.html +++ b/help/en_US/scilab_en_US_help/AVRUARTTransmit.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTTransmit + Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTTransmit

AVRUARTTransmit

@@ -63,7 +63,7 @@ for providing support for generating C code for AVR.

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html b/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html index b3e5a63..fa1822a 100644 --- a/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html +++ b/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_AdaptiveThreshold + Scilab 2 C Converter >> Scilab 2 C Converter > CV_AdaptiveThreshold

CV_AdaptiveThreshold

@@ -80,7 +80,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_Blur.html b/help/en_US/scilab_en_US_help/CV_Blur.html index 1dbcc5b..e6a20c1 100644 --- a/help/en_US/scilab_en_US_help/CV_Blur.html +++ b/help/en_US/scilab_en_US_help/CV_Blur.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Blur + Scilab 2 C Converter >> Scilab 2 C Converter > CV_Blur

CV_Blur

@@ -82,7 +82,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_Canny.html b/help/en_US/scilab_en_US_help/CV_Canny.html index dbf3ffc..d0f841a 100644 --- a/help/en_US/scilab_en_US_help/CV_Canny.html +++ b/help/en_US/scilab_en_US_help/CV_Canny.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Canny + Scilab 2 C Converter >> Scilab 2 C Converter > CV_Canny

CV_Canny

@@ -81,7 +81,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_CornerHarris.html b/help/en_US/scilab_en_US_help/CV_CornerHarris.html index 453169f..1868d89 100644 --- a/help/en_US/scilab_en_US_help/CV_CornerHarris.html +++ b/help/en_US/scilab_en_US_help/CV_CornerHarris.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_CornerHarris + Scilab 2 C Converter >> Scilab 2 C Converter > CV_CornerHarris

CV_CornerHarris

@@ -84,7 +84,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_CreateImage.html b/help/en_US/scilab_en_US_help/CV_CreateImage.html index 6e27eeb..e0544bb 100644 --- a/help/en_US/scilab_en_US_help/CV_CreateImage.html +++ b/help/en_US/scilab_en_US_help/CV_CreateImage.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_CreateImage + Scilab 2 C Converter >> Scilab 2 C Converter > CV_CreateImage

CV_CreateImage

@@ -71,7 +71,7 @@
- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_CvtColor.html b/help/en_US/scilab_en_US_help/CV_CvtColor.html index 43c27c9..f655d90 100644 --- a/help/en_US/scilab_en_US_help/CV_CvtColor.html +++ b/help/en_US/scilab_en_US_help/CV_CvtColor.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_CvtColor + Scilab 2 C Converter >> Scilab 2 C Converter > CV_CvtColor

CV_CvtColor

@@ -76,7 +76,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_Dilate.html b/help/en_US/scilab_en_US_help/CV_Dilate.html index f93f7ce..e88bc85 100644 --- a/help/en_US/scilab_en_US_help/CV_Dilate.html +++ b/help/en_US/scilab_en_US_help/CV_Dilate.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Dilate + Scilab 2 C Converter >> Scilab 2 C Converter > CV_Dilate

CV_Dilate

@@ -85,7 +85,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_DistanceTransform.html b/help/en_US/scilab_en_US_help/CV_DistanceTransform.html index 584fe1d..ec27c82 100644 --- a/help/en_US/scilab_en_US_help/CV_DistanceTransform.html +++ b/help/en_US/scilab_en_US_help/CV_DistanceTransform.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_DistanceTransform + Scilab 2 C Converter >> Scilab 2 C Converter > CV_DistanceTransform

CV_DistanceTransform

@@ -73,7 +73,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_Erode.html b/help/en_US/scilab_en_US_help/CV_Erode.html index 921f2f9..bdb9c5a 100644 --- a/help/en_US/scilab_en_US_help/CV_Erode.html +++ b/help/en_US/scilab_en_US_help/CV_Erode.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Erode + Scilab 2 C Converter >> Scilab 2 C Converter > CV_Erode

CV_Erode

@@ -85,7 +85,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_GaussianBlur.html b/help/en_US/scilab_en_US_help/CV_GaussianBlur.html index a5de798..124fc0a 100644 --- a/help/en_US/scilab_en_US_help/CV_GaussianBlur.html +++ b/help/en_US/scilab_en_US_help/CV_GaussianBlur.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_GaussianBlur + Scilab 2 C Converter >> Scilab 2 C Converter > CV_GaussianBlur

CV_GaussianBlur

@@ -84,7 +84,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_GetImgSize.html b/help/en_US/scilab_en_US_help/CV_GetImgSize.html index 4d610c3..f6f67ab 100644 --- a/help/en_US/scilab_en_US_help/CV_GetImgSize.html +++ b/help/en_US/scilab_en_US_help/CV_GetImgSize.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_GetImgSize + Scilab 2 C Converter >> Scilab 2 C Converter > CV_GetImgSize

CV_GetImgSize

@@ -70,7 +70,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_LoadImage.html b/help/en_US/scilab_en_US_help/CV_LoadImage.html index 1d4a81b..55cd33f 100644 --- a/help/en_US/scilab_en_US_help/CV_LoadImage.html +++ b/help/en_US/scilab_en_US_help/CV_LoadImage.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_LoadImage + Scilab 2 C Converter >> Scilab 2 C Converter > CV_LoadImage

CV_LoadImage

@@ -74,7 +74,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_MedianBlur.html b/help/en_US/scilab_en_US_help/CV_MedianBlur.html index 276055b..f335ae9 100644 --- a/help/en_US/scilab_en_US_help/CV_MedianBlur.html +++ b/help/en_US/scilab_en_US_help/CV_MedianBlur.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_MedianBlur + Scilab 2 C Converter >> Scilab 2 C Converter > CV_MedianBlur

CV_MedianBlur

@@ -72,7 +72,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_SaveImage.html b/help/en_US/scilab_en_US_help/CV_SaveImage.html index 02336d2..60ab201 100644 --- a/help/en_US/scilab_en_US_help/CV_SaveImage.html +++ b/help/en_US/scilab_en_US_help/CV_SaveImage.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_SaveImage + Scilab 2 C Converter >> Scilab 2 C Converter > CV_SaveImage

CV_SaveImage

@@ -72,7 +72,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_ShowImage.html b/help/en_US/scilab_en_US_help/CV_ShowImage.html index 3fa3cb9..cb15052 100644 --- a/help/en_US/scilab_en_US_help/CV_ShowImage.html +++ b/help/en_US/scilab_en_US_help/CV_ShowImage.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_ShowImage + Scilab 2 C Converter >> Scilab 2 C Converter > CV_ShowImage

CV_ShowImage

@@ -72,7 +72,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_Threshold.html b/help/en_US/scilab_en_US_help/CV_Threshold.html index ae0ad86..0fcf62f 100644 --- a/help/en_US/scilab_en_US_help/CV_Threshold.html +++ b/help/en_US/scilab_en_US_help/CV_Threshold.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -29,7 +29,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Threshold + Scilab 2 C Converter >> Scilab 2 C Converter > CV_Threshold

CV_Threshold

@@ -76,7 +76,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/CV_WaitKey.html b/help/en_US/scilab_en_US_help/CV_WaitKey.html index 42dc813..e942643 100644 --- a/help/en_US/scilab_en_US_help/CV_WaitKey.html +++ b/help/en_US/scilab_en_US_help/CV_WaitKey.html @@ -16,7 +16,7 @@ - Scilab 2 C Converter + Scilab 2 C Converter @@ -28,7 +28,7 @@ - Scilab 2 C Converter >> Scilab 2 C Converter > CV_WaitKey + Scilab 2 C Converter >> Scilab 2 C Converter > CV_WaitKey

CV_WaitKey

@@ -70,7 +70,7 @@ for providing support for generating C code for OpenCV

- Scilab 2 C Converter + Scilab 2 C Converter diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS index adfdf40..e8043bc 100644 Binary files a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS and b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS differ diff --git a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB index 70fdaa9..e9a4be4 100644 --- a/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB +++ b/help/en_US/scilab_en_US_help/JavaHelpSearch/DOCS.TAB @@ -1,2 +1,3 @@ -eÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÝÿÿÿÿÿÿÿÿÿÿÿÿÿÝÿÝÿÿÿÿÿ÷_ÿý×ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ÷_ÿ÷_ÿÿÿ÷_ÿÿÿüÂÝÿÝÿÿÿÿÿÿÿÝÿÿÿÝÿÿÿÿÝüÒw_ÿý×ÿ}÷_ÿÿÿÿÿÿuÝ]]ÿÿüÒ×ÿuÿÿ0Ÿÿÿÿÿ÷_ÿuÿÿuÿÿÿÿÝÿüÒÿÿÿÿÐ8r¢¨eU†ñt.4t‘V‡Œ(sŠs8HÁ¤HtHhPªÌ(â*‡a!¡(tJ7ÿÿÿñßÿ¿É4–$Rq£|¼ÊíFEц…9«•–ñ‘A‘A±Gª®ŸJ(üj—*³ -5±*7Ê4£ ŒË¨Æ.Ž—rº£•®]åj©vªª×iXdU©w]•¹v\hZ—Ú—iYYZVWW—(ª0ª4º»ê/0³:©Ò™+ÝJª¾ú.ªªªªª0ªª¨ÒŒ(Þ¢¨Â¼ÚŠ2¨ªëªê¾«ó ó ÿÿóK0¿ÿÿó ÿÿüÂÿó ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿó ÿÌ/ÿÿüÂÿÿÿÿÿÿÿÿÿÿ` \ No newline at end of file +eÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿý×ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ÷_ÿÿÿÿÿÿÿÿ4Ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ÷_ÿÿÿÿ0ŸÿÌ'ÿ÷_ÿÿÿÝÿÝÿÿÿ}ÿÿ÷_ÿÿÿÿÿÿ÷]×ÿÿÿÿÿÿý×ÿÌ'ÿÿÿÿÿÿuÿÿÿüÂÿuÿÿuÿ4Ÿÿÿÿ÷_ÿ0Ÿÿÿÿÿ÷]×ÿ÷×ÿÿÿuÿu÷_ÿÿÿÿÿÿÿuóI@Scilab 2 C Converter
    -
  • Scilab 2 C Converter +
  • Scilab 2 C Converter
    • AVRADCSetupFunction to initialise ADC of AVR
    • diff --git a/help/en_US/scilab_en_US_help/jhelpmap.jhm b/help/en_US/scilab_en_US_help/jhelpmap.jhm index 2466fe3..9264e75 100644 --- a/help/en_US/scilab_en_US_help/jhelpmap.jhm +++ b/help/en_US/scilab_en_US_help/jhelpmap.jhm @@ -2,7 +2,7 @@ - + diff --git a/help/en_US/scilab_en_US_help/jhelptoc.xml b/help/en_US/scilab_en_US_help/jhelptoc.xml index 912cae2..abd1f92 100644 --- a/help/en_US/scilab_en_US_help/jhelptoc.xml +++ b/help/en_US/scilab_en_US_help/jhelptoc.xml @@ -2,7 +2,7 @@ - + diff --git a/help/en_US/scilab_en_US_help/section_35ee3b19a97c75b084122c05ac0777c6.html b/help/en_US/scilab_en_US_help/section_35ee3b19a97c75b084122c05ac0777c6.html new file mode 100644 index 0000000..647ce7c --- /dev/null +++ b/help/en_US/scilab_en_US_help/section_35ee3b19a97c75b084122c05ac0777c6.html @@ -0,0 +1,259 @@ + + + + + + +
      + + + + +
      + + + Scilab 2 C Converter + + + +
      +
      +
      + + + + Scilab 2 C Converter >> Scilab 2 C Converter + +

      +

      Scilab 2 C Converter

      +
      • AVRADCSetupFunction to initialise ADC of AVR
      • + + + + + +
      • AVRDigitalInFunction to get state (high\low) of a digital input pin on AVR
      • + + + + + +
      • AVRDigitalOutFunction to change state (high\low) of a digital output pin on AVR
      • + + + + + +
      • AVRDigitalPortSetupFunction to decide direction of port on AVR
      • + + + + + +
      • AVRDigitalSetupFunction to decide direction of a digital pin on AVR
      • + + + + + +
      • AVRGetTimerValueFunction to get timer count
      • + + + + + +
      • AVRPWM0SetDutyFunction to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.
      • + + + + + +
      • AVRPWM0SetupFunction to Setup OC0 pin for required PWM mode
      • + + + + + +
      • AVRPWM1SetDutyFunction to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.
      • + + + + + +
      • AVRPWM1SetupFunction to Setup OC1A or OC1B pin for required PWM mode
      • + + + + + +
      • AVRPWM2SetDutyFunction to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.
      • + + + + + +
      • AVRPWM2SetupFunction to Setup OC2 pin for required PWM mode
      • + + + + + +
      • AVRReadADCFunction to get voltage on analog pin on AVR
      • + + + + + +
      • AVRSleepFunction to pause the execution for the given time.
      • + + + + + +
      • AVRTimerSetupFunction to setup Timers in ATmega16
      • + + + + + +
      • AVRUARTReceiveFunction to Receive Char value send to ATmega16 using UART or USART.
      • + + + + + +
      • AVRUARTSetupFunction to Setup Serial Communication i.e UART or USART in ATmega16.
      • + + + + + +
      • AVRUARTTransmitFunction to Transmit data using UART or USART.
      • + + + + + +
      • CV_AdaptiveThresholdfunction to adaptively threshold input image
      • + + + + + +
      • CV_Blurfunction to blur image using normalised box filter
      • + + + + + +
      • CV_CannyFinds edges in image using Canny algorithm
      • + + + + + +
      • CV_CornerHarrisFinds edges in image using Harris algorithm
      • + + + + + +
      • CV_CreateImagefunction to create an image object of given size and type
      • + + + + + +
      • CV_CvtColorfunction to convert image from one colorspace to other colorspace
      • + + + + + +
      • CV_Dilatedilates an image by using a specific structuring element.
      • + + + + + +
      • CV_DistanceTransformfunction to calculate distance to closest zero pixels for each pixel
      • + + + + + +
      • CV_ErodeErodes an image by using a specific structuring element.
      • + + + + + +
      • CV_GaussianBlurfunction to blur image using gaussian filter
      • + + + + + +
      • CV_GetImgSizefunction to get size of the image (width*height)
      • + + + + + +
      • CV_LoadImagefunction to load an image object from given filename
      • + + + + + +
      • CV_MedianBlurfunction to blur image using median filter
      • + + + + + +
      • CV_SaveImagefunction to save an image object as a given filename
      • + + + + + +
      • CV_ShowImagefunction to show an image
      • + + + + + +
      • CV_Thresholdfunction to threshold input image
      • + + + + + +
      • CV_WaitKeyfunction similar to cvWaitKey
      +
      + +
      + + + + + + +
      Report an issue
      + + + Scilab 2 C Converter + + + +
      +
      +
      + + diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar index d829915..e68463f 100644 Binary files a/jar/scilab_en_US_help.jar and b/jar/scilab_en_US_help.jar differ diff --git a/macros/ASTManagement/lib b/macros/ASTManagement/lib index 2ef9e23..e457047 100644 Binary files a/macros/ASTManagement/lib and b/macros/ASTManagement/lib differ diff --git a/macros/CCodeGeneration/lib b/macros/CCodeGeneration/lib index c5f171d..849f828 100644 Binary files a/macros/CCodeGeneration/lib and b/macros/CCodeGeneration/lib differ diff --git a/macros/ErrorMessages/lib b/macros/ErrorMessages/lib index 6da193f..075fda8 100644 Binary files a/macros/ErrorMessages/lib and b/macros/ErrorMessages/lib differ diff --git a/macros/FunctionAnnotation/lib b/macros/FunctionAnnotation/lib index de2834d..1305602 100644 Binary files a/macros/FunctionAnnotation/lib and b/macros/FunctionAnnotation/lib differ diff --git a/macros/FunctionList/lib b/macros/FunctionList/lib index 1f0f29a..9866fad 100644 Binary files a/macros/FunctionList/lib and b/macros/FunctionList/lib differ diff --git a/macros/GeneralFunctions/lib b/macros/GeneralFunctions/lib index 9f498b2..e0628d0 100644 Binary files a/macros/GeneralFunctions/lib and b/macros/GeneralFunctions/lib differ diff --git a/macros/Hardware/AVR/lib b/macros/Hardware/AVR/lib index f1c7384..341ac21 100644 Binary files a/macros/Hardware/AVR/lib and b/macros/Hardware/AVR/lib differ diff --git a/macros/Hardware/RasberryPi/lib b/macros/Hardware/RasberryPi/lib index cf04536..1ca3515 100644 Binary files a/macros/Hardware/RasberryPi/lib and b/macros/Hardware/RasberryPi/lib differ diff --git a/macros/ImageProcessing/core/lib b/macros/ImageProcessing/core/lib index ab90762..87e2cd9 100644 Binary files a/macros/ImageProcessing/core/lib and b/macros/ImageProcessing/core/lib differ diff --git a/macros/ImageProcessing/highgui/lib b/macros/ImageProcessing/highgui/lib index e9714ae..b2d9dbc 100644 Binary files a/macros/ImageProcessing/highgui/lib and b/macros/ImageProcessing/highgui/lib differ diff --git a/macros/ImageProcessing/imgproc/lib b/macros/ImageProcessing/imgproc/lib index 3c25bd7..f56b4e6 100644 Binary files a/macros/ImageProcessing/imgproc/lib and b/macros/ImageProcessing/imgproc/lib differ diff --git a/macros/Scilab-Arduino/lib b/macros/Scilab-Arduino/lib index 7cae55d..b84761e 100644 Binary files a/macros/Scilab-Arduino/lib and b/macros/Scilab-Arduino/lib differ diff --git a/macros/SymbolTable/lib b/macros/SymbolTable/lib index 4d1b4bb..07204b5 100644 Binary files a/macros/SymbolTable/lib and b/macros/SymbolTable/lib differ diff --git a/macros/ToolInitialization/lib b/macros/ToolInitialization/lib index dbcbfcc..f25c4d9 100644 Binary files a/macros/ToolInitialization/lib and b/macros/ToolInitialization/lib differ diff --git a/macros/findDeps/lib b/macros/findDeps/lib index f3b117d..c925b2f 100644 Binary files a/macros/findDeps/lib and b/macros/findDeps/lib differ diff --git a/macros/lib b/macros/lib index 8bbdc40..fe083dc 100644 Binary files a/macros/lib and b/macros/lib differ diff --git a/src/c/linearAlgebra/fullrf/dfullrfa.c b/src/c/linearAlgebra/fullrf/dfullrfa.c new file mode 100644 index 0000000..a409ae3 --- /dev/null +++ b/src/c/linearAlgebra/fullrf/dfullrfa.c @@ -0,0 +1,112 @@ +/* Copyright (C) 2017 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Sandeep Gupta + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ + +/* FULL Rank factorization function in scilab */ + +/* + //[Q,M,rk]=fullrf(A) + //Full rank factorization : A=Q.M + //with range(Q)=range(A) and ker(M)=ker(A), + //Q full column rank , M full row rank + // rk = rank(A) = #columns(Q) = #rows(M) + //F.D. +*/ + +#include "fullrf.h" +#include +#include +#include "svd.h" +#include +#include "norm.h" +#include "matrixTranspose.h" +#include "matrixMultiplication.h" + +double dfullrfa(int ninp,double *inp1,int row,int col,double tol,double *out1,double *out2){ + + int i,j; + /* norm inp1 - norm(inp1,1)*/ + double na1; + na1 = dnorma(inp1,row,col,1); + + if(ninp == 1){ + tol = sqrt(pow(2,-52)); + } + + if(na1 < pow(1,-10)){ + out1 = NULL; + out2 = NULL; + return 0; + } + + double tol1; + tol1 = tol*na1; + + double *U,*S,*V; + U = (double *)malloc(row*row*sizeof(double)); + S = (double *)malloc(row*col*sizeof(double)); + V = (double *)malloc(col*col*sizeof(double)); + + double rk; + rk = dsvda(tol1,inp1,row,col,0,4,U,S,V); + + /* sq = sqrt(s) */ + for(i=0;i +#include +#include "norm.h" + +/* All variable names are according to scilab code */ + +void dgivensa(int ninp,double *inp1,int row,int col,double *inp2,int row1,int col1,int nout,double *out1,double *out2){ + double *x; + double r; + x = (double *)malloc((double)2*sizeof(double)); + if(ninp == 2){ + if(row != 1 || col != 1 || row1 != 1 || col1 != 1){ + printf("Wrong size for input argument: A column vector expected.\n"); + return; + } + *(x) = *(inp1); + *(x+1) = *(inp2); + } + else{ + //printf("(%d %d)",row,col); + if(row != 2 || col != 1){ + printf("Wrong size for input argument: A column vector expected.\n"); + return; + } + //printf("(%lf %lf)",inp1[0],inp1[1]); + x[0] = inp1[0]; + x[1] = inp1[1]; + } + if(*(x+1) != 0){ + //printf("(%lf %lf)",x[0],x[1]); + /*Norm of type 2 - find the maximum singular value*/ + r = dnorma(x,2,1,2); + //printf("%lf \n",r); + *(out1) = (*(x))/r; + *(out1+1) = -(*(x+1))/r; + *(out1+2) = (*(x+1))/r; + *(out1+3) = (*(x))/r; + if(nout == 2){ + *(out2) = r; + *(out2+1) = 0; + } + + } + else{ + *(out1) = 1; + *(out1+1) = 0; + *(out1+2) = 1; + *(out1+3) = 0; + if(nout == 2){ + *(out2) = *(x); + *(out2+1) = *(x+1); + } + } +} diff --git a/src/c/linearAlgebra/hess/dhessa.c b/src/c/linearAlgebra/hess/dhessa.c index 57f81b3..e1f2e2d 100644 --- a/src/c/linearAlgebra/hess/dhessa.c +++ b/src/c/linearAlgebra/hess/dhessa.c @@ -20,11 +20,13 @@ #include "matrixTranspose.h" #include "matrixMultiplication.h" +/* Lapack subroutines - which are used*/ extern int dgehrd_(int *, int *,int *,double *,int *,double *,double *,int *,int *); extern int dorghr_(int *, int *,int *,double *,int *,double *,double *,int *,int *); - +/* All the vairbale names are given exactly the same name as scilab source code */ void dhessa(double *in1,int size,int nout,double *out1, double *out2){ +/* Variables names are done through, Lapack library. */ int i,j,k; int N = size; int ILO=1; @@ -41,11 +43,11 @@ void dhessa(double *in1,int size,int nout,double *out1, double *out2){ WORK = (double *)malloc((double)LWORK*sizeof(double)); dgehrd_(&N,&ILO,&IHI,A,&LDA,TAU,WORK,&N,&INFO); - for(i=0;i +#include +#include "householder.h" +#include "eye.h" +#include "matrixTranspose.h" +#include "matrixMultiplication.h" +#include +#include "norm.h" + +void dhouseholdera(int ninp,double *inp1,int row,double *inp2,double *out1){ + + int i,j; + double *x; + x = (double *)malloc(row*sizeof(double)); + + for(i=0;i +#include +#include "proj.h" +#include "eye.h" +#include "matrixTranspose.h" +#include "matrixMultiplication.h" +#include +#include "norm.h" + + +double dproja(double *x1,int l,int k,double *x2,int m2,int n2,double *y){ + int i,j; + double *w; + w = (double *)malloc(l*l*sizeof(double)); + double rk; + rk = drowcompa(1,x1,l,k,NULL,0,w); + + double *w1; + w1 = (double *)malloc(rk*l*sizeof(double)); + + for(i=0;i +#include +#include +#include "norm.h" +#include "eye.h" + +#define eps pow(2,-52) + +double dprojspeca(double *inp1,int row,int col,double *out1,double *out2,double *out3){ + double tol = pow(10,-6); + int i,j,index; + /*norm(A,1)*/ + double nor; + nor = dnorma(inp1,row,col,1); + + /* P=eye(A),D=A,S=0*P;index=1; */ + if(nor < eps*row*row){ + memcpy(out2,inp1,row*col*sizeof(double)); + deyea(out2,row,col); + memcpy(out3,inp1,row*col*sizeof(double)); + for(i=0;i tol){ + dinverma(inp1,out1,row); + for(i=0;i +#include +#include +#include "qr.h" +#include "lapack.h" +#include "string.h" +#include "matrixTranspose.h" + +/*For reference check Scilab source code & lapack library websites +Names of variable are almost same for convience. +*/ +/* +int min(int M,int N){ + if(M > N) return N; + return M; +} + +int max(int M,int N){ + if(M > N) return N; + return N; +}*/ + +/* External Function used of lapack library */ +extern double dgeqrf_(int *,int *,double *,int *,double *,double *,int *,int *); +extern double dlacpy_(char *,int *,int *,double *,int *,double *,int *); +extern double dgeqpf_(int *,int *,double *,int *,int *,double *,double *,int *); +extern double dorgqr_(int *,int *,int *,double *,int *,double *,double *,int *,int *); +extern void dlaset_(char *,int *,int *,double *,double *,double *,int *); + +/* function for finding qr */ +double dqra(int ninp,int nout,double *inp1,int M,int N,double tol,double *out1,double *out2,double *out3){ + int i,j; + char choice; + double alpha=0.0,beta=0.0; + int minMN = min(M,N); + + double *A; + A = (double *)malloc(M*N*sizeof(double)); + memcpy(A,inp1,M*N*sizeof(double)); + + if(M <= 0 || N <= 0){ + out1 = NULL; + out2 = NULL; + return 0; + } + /* doldqr */ + if(nout == 4){ /* [Q,R,rk,E]=qr(X [,tol]) */ + if(ninp == 1){ + tol = -1; + } + + int INFO,rk; + + int *JPVT; + JPVT = ( int *)malloc(N*sizeof(int)); + + double *TAU; + TAU = (double *)malloc(minMN*sizeof(double)); + + int LWORK = 3*N; + + double *WORK; + WORK = (double *)malloc(LWORK*sizeof(double)); + + for(i=1;i<=M;i++){ + JPVT[i-1]=0.0; + } + dgeqpf_(&M,&N,A,&M,JPVT,TAU,WORK,&INFO); + + choice = 'U'; + dlacpy_(&choice,&M,&N,A,&M,out2,&M); + + if(M > N){ + for(j=1;j<=N;j++){ + for(i=j+1;i<=M;i++){ + out2[i-1+(j-1)*M] = 0.0; + } + } + } + else{ + for(j=1;j<=M-1;j++){ + for(i=j+1;i<=M;i++){ + out2[i-1+(j-1)*M] = 0.0; + } + } + } + + if(M > N){ + choice = 'F'; + dlacpy_(&choice,&M,&N,A,&M,out1,&M); + for(j=N+1;j<=M;j++){ + for(i=1;i<=M;i++){ + out1[i-1+(j-1)*M] = 0.0; + } + } + } + else{ + choice = 'F'; + dlacpy_(&choice,&M,&M,A,&M,out1,&M); + } + + dorgqr_(&M,&M,&minMN,out1,&M,TAU,WORK,&LWORK,&INFO); + + choice = 'F'; + dlaset_(&choice,&N,&N,&alpha,&beta,out3,&N); + + for(j=1;j<=N;j++){ + i = JPVT[j-1]; + out3[i-1+(j-1)*N] = 1.0; + } + + double tt = abs(out2[0]); + + if(tol == -1){ + tol = (double)max(M,N)*pow(2,-52)*tt; + } + double ch; + //printf("%lf ",tol); + for(j=1;j<=minMN;j++){ + //printf("%e ",out2[(j-1)+(j-1)*M]); + if(out2[(j-1)+(j-1)*M] < 0){ + ch = -out2[(j-1)+(j-1)*M]; + } + else{ + ch = out2[(j-1)+(j-1)*M]; + } + if(ch > tol){ + rk = j; + } + else{ + break; + } + } + //printf("\n"); + return rk; + } + else if(ninp == 1){ + /* (intdgeqpf3) + [Q,R]=qr(A) + [Q,R,E]=qr(A) + */ + int LDA = M; + + double *TAU; + TAU = (double *)malloc(min(M,N)*sizeof(double)); + + int LWORK; + if(nout <= 2) + LWORK = N; + else + LWORK = 3*N; + + double *WORK; + WORK = (double *)malloc((LWORK+1)*sizeof(double)); + + int INFO; + + int *JPVT; + JPVT = (int *)malloc(N*sizeof(int)); + + if(nout <= 2){ + dgeqrf_(&M,&N,A,&M,TAU,WORK,&LWORK,&INFO); + } + else{ + for(i=0;i N){ + for(j=1;j<=N;j++){ + for(i=j+1;i<=M;i++){ + out2[i-1+(j-1)*M] = 0.0; + } + } + } + else{ + for(j=1;j<=M-1;j++){ + for(i=j+1;i<=M;i++){ + out2[i-1+(j-1)*M] = 0.0; + } + } + } + /* lQ - out1 */ + if(M > N){ + choice = 'F'; + dlacpy_(&choice,&M,&N,A,&M,out1,&M); + /*for(i=0;i 2){ + choice = 'F'; + dlaset_(&choice,&N,&N,&alpha,&beta,out3,&N); + for(j=1;j<=N;j++){ + i = *(JPVT+j-1); + //printf("%d ",i-1+(j-1)*N); + *(out3+i-1+(j-1)*N) = 1.0; + } + //printf("\n"); + } + } + else{/* + [[Q,R]=qr(A,'e') + [Q,R,E]=qr(A,'e') ] */ + int *JPVT; + JPVT = (int *)malloc(N*sizeof(int)); + + double *TAU; + TAU = (double *)malloc(min(M,N)*sizeof(double)); + int LWORK; + if(nout <= 2){ + LWORK = N; + } + else{ + LWORK = 3*N; + } + + double *WORK; + WORK = (double *)malloc(LWORK*sizeof(double)); + + int INFO; + if(nout <= 2) + dgeqrf_(&M,&N,A,&M,TAU,WORK,&LWORK,&INFO); + else{ + for(i=1;i<=N;i++){ + JPVT[i-1]=0.0; + } + dgeqpf_(&M,&N,A,&M,JPVT,TAU,WORK,&INFO); + } + choice = 'U'; + + dlacpy_(&choice,&minMN,&N,A,&M,out2,&minMN); + + if(N >= 2){ + for(j=1;j<=N-1;j++){ + if(j+1 <= minMN){ + for(i=j+1;i<=minMN;i++){ + out2[i-1+(j-1)*minMN] = 0.0; + } + } + } + } + choice = 'F'; + dlacpy_(&choice,&M,&minMN,A,&M,out1,&M); + dorgqr_(&M,&minMN,&minMN,out1,&M,TAU,WORK,&LWORK,&INFO); + + if(nout > 2){ + choice = 'F'; + dlaset_(&choice,&N,&N,&alpha,&beta,out3,&N); + for(j=1;j<=N;j++){ + i = JPVT[j-1]; + out3[i-1+(j-1)*N] = 1.0; + } + } + } + return 0; +} diff --git a/src/c/linearAlgebra/rowcomp/drowcompa.c b/src/c/linearAlgebra/rowcomp/drowcompa.c new file mode 100644 index 0000000..3161a2d --- /dev/null +++ b/src/c/linearAlgebra/rowcomp/drowcompa.c @@ -0,0 +1,79 @@ +/* Copyright (C) 2017 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Sandeep Gupta + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ + +/* This function is used to find row compression, range */ + +#include "rowcomp.h" +#include +#include +#include +#include "svd.h" +#include "norm.h" +#include "eye.h" +#include "matrixTranspose.h" +#include "qr.h" + +/* All variable names, are in consideration of scilab documentation. for reference please check the scilab code.*/ + +double drowcompa(int ninp,double *A,int row,int col,char *flag,double tol,double *w){ + double rk; + double *U; + double *S; + double *V; + double *q,*r,*e; + if(row == 0 || col == 0){ + w = NULL; + return 0; + } + + double nA1 = dnorma(A,row,col,1); + if(nA1 < sqrt(pow(2,-52))/10){ + deyea(w,row,col); + return 0; + } + if(ninp == 1){ + flag = "svd"; + tol = sqrt(pow(2,-52))*nA1; + } + else if(ninp == 2){ + tol = sqrt(pow(2,-52))*nA1; + } + else{ + if(tol < 0){ /* if tolerance is negative */ + printf(" Wrong values for input argument #: Non-negative scalar expected"); + } + } + int M = row,N=col; + int minMN = min(M,N); + char check[3]="qr"; + //printf(" %s ",flag); + if(strcmp(check,flag) == 0){ + /* calling qr function*/ + //printf(" * "); + q = (double *)malloc(M*min(M,N)*sizeof(double)); + r = (double *)malloc(minMN*N*sizeof(double)); + e = (double *)malloc(N*N*sizeof(double)); + rk = dqra(2,4,A,M,N,tol,q,r,e); + memcpy(w,q,row*col*sizeof(double)); + dtransposea(q,row,row,w); + return rk; + } + else{ + /* svd function type */ + U = (double *)malloc(row*row*sizeof(double)); + S = (double *)malloc(row*col*sizeof(double)); + V = (double *)malloc(col*col*sizeof(double)); + rk = dsvda(tol,A,row,col,0,4,U,S,V); + dtransposea(U,row,row,w); + return rk; + } +} diff --git a/src/c/linearAlgebra/sqroot/dsqroota.c b/src/c/linearAlgebra/sqroot/dsqroota.c new file mode 100644 index 0000000..a9062e6 --- /dev/null +++ b/src/c/linearAlgebra/sqroot/dsqroota.c @@ -0,0 +1,130 @@ +/* Copyright (C) 2017 - IIT Bombay - FOSSEE + + This file must be used under the terms of the CeCILL. + This source file is licensed as described in the file COPYING, which + you should have received as part of this distribution. The terms + are also available at + http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + Author: Sandeep Gupta + Organization: FOSSEE, IIT Bombay + Email: toolbox@scilab.in + */ + +/* Function - sqroot of scilab, W*W' hermitian factorization */ + +#include +#include "stdlib.h" +#include "string.h" +#include +#include "matrixTranspose.h" +#include "svd.h" +#include "matrixMultiplication.h" + +#define eps 2.22044604925e-16 + +/*It would be good, if you are doing conversoins for only valid inputs before + running the program, check all the conditions before hand. +*/ + +void dsqroota(double *inp,int row,int col, double *out){ + if(row != col){ + printf("Enter valid inputs only - matrix should be symetric\n"); + return; + } + int i,j; + double *U,*S,*V; + double *A,*B; + int rk; + + U = (double *)malloc((double)row*row*sizeof(double)); + S = (double *)malloc((double)Min(row,col)*Min(row,col)*sizeof(double)); + V = (double *)malloc((double)col*col*sizeof(double)); + A = (double *)malloc(rk*rk*sizeof(double)); + B = (double *)malloc(rk*row*sizeof(double)); + + double *Q1; + Q1 = (double *)malloc(row*col*sizeof(double)); + + dtransposea(inp,row,col,Q1); + + double *Q2; + Q2 = (double *)malloc(col*row*sizeof(double)); + + /* Q2 = (inp+inp1')/2; */ + for(i=0;i 100*%eps then */ + if(maxi > 100*eps){ + printf("Warning: Wrong size for input argument and Symmetric expected\n"); + } + maxi = 0; + for(i=0;i tol){ @@ -52,7 +53,7 @@ void dsvaa(int ninp,double *in1,int row,int col,double in2,double *out1, \ tol = in2; if(tol > 1){ rk = tol; - if(rk > min(row,col)){ + if(rk > Min(row,col)){ printf("ERROR: Wrong value for input argument !"); out1 = NULL; out2 = NULL; @@ -70,21 +71,21 @@ void dsvaa(int ninp,double *in1,int row,int col,double in2,double *out1, \ } } arow = M; - acol = min(M,N); + acol = Min(M,N); /* Copying, the output in required format */ for(i=0;i N){ @@ -156,18 +165,18 @@ void zsvda(doubleComplex *in1,int row,int col,int in2,int nout, doubleComplex *o for(j=0;j +#include +#include double dnorma (double *in, int row, int col, int norm) { double res = 0, sum = 0; int col_count, row_count; - + double *S; + S = (double *)malloc(min(row,col)*sizeof(double)); switch (norm) { case 1: /*largest column sum*/ @@ -37,6 +43,8 @@ double dnorma (double *in, int row, int col, int norm) break; case 2: /*Largest singular value of the matrix*/ + dsvda(0,in,row,col,0,1,S,NULL,NULL); + res = S[0]; break; case 3: /*inf: largest row sum*/ @@ -69,4 +77,4 @@ double dnorma (double *in, int row, int col, int norm) return res; -} \ No newline at end of file +} diff --git a/src/c/matrixOperations/spec/Makefile.am b/src/c/matrixOperations/spec/Makefile.am deleted file mode 100644 index 90dbd0a..0000000 --- a/src/c/matrixOperations/spec/Makefile.am +++ /dev/null @@ -1,70 +0,0 @@ -## -## Scilab ( http://www.scilab.org/ ) - This file is part of Scilab -## Copyright (C) 2006-2008 - INRIA - Bruno JOFRET -## -## This file must be used under the terms of the CeCILL. -## This source file is licensed as described in the file COPYING, which -## you should have received as part of this distribution. The terms -## are also available at -## http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt -## -## - -libSpec_la_CFLAGS = -I $(top_builddir)/src/c/type \ - -I $(top_builddir)/src/c/matrixOperations/includes \ - -I $(top_builddir)/src/c/operations/includes \ - -I $(top_builddir)/src/c/elementaryFunctions/includes\ - -I $(top_builddir)/src/c/auxiliaryFunctions/includes - - -instdir = $(top_builddir)/lib - -pkglib_LTLIBRARIES = libSpec.la - -HEAD = ../includes/spec.h - -libSpec_la_SOURCES = $(HEAD) \ - sspeca.c \ - dspeca.c \ - cspeca.c \ - zspeca.c - - -############ -## CHECK -############ - - -check_PROGRAMS = testDoubleSpec testFloatSpec - -check_LDADD = $(top_builddir)/src/c/type/libDoubleComplex.la \ - $(top_builddir)/src/c/type/libFloatComplex.la \ - $(top_builddir)/src/c/elementaryFunctions/sqrt/libSqrt.la \ - $(top_builddir)/src/fortran/lapack/libscilapack.la \ - $(top_builddir)/src/fortran/blas/libsciblas.la \ - $(top_builddir)/src/c/auxiliaryFunctions/abs/libAbs.la \ - $(top_builddir)/src/c/auxiliaryFunctions/conj/libConj.la \ - $(top_builddir)/src/c/auxiliaryFunctions/sign/libSign.la \ - $(top_builddir)/src/c/auxiliaryFunctions/pythag/libPythag.la \ - $(top_builddir)/src/c/operations/addition/libAddition.la \ - $(top_builddir)/src/c/operations/multiplication/libMultiplication.la \ - $(top_builddir)/src/c/matrixOperations/inversion/libMatrixInversion.la\ - $(top_builddir)/src/c/matrixOperations/zeros/libMatrixZeros.la\ - libSpec.la - -check_INCLUDES = -I $(top_builddir)/src/c/type \ - -I $(top_builddir)/src/c/matrixOperations/includes \ - -I $(top_builddir)/src/c/operations/includes \ - -I $(top_builddir)/src/c/elementaryFunctions/includes\ - -I $(top_builddir)/src/c/auxiliaryFunctions/includes - -testDoubleSpec_SOURCES = testDoubleSpec.c -testDoubleSpec_LDADD = $(check_LDADD) -testDoubleSpec_CFLAGS = $(check_INCLUDES) - -testFloatSpec_SOURCES = testFloatSpec.c -testFloatSpec_LDADD = $(check_LDADD) -testFloatSpec_CFLAGS = $(check_INCLUDES) - -TESTS = testDoubleSpec testFloatSpec - diff --git a/src/c/matrixOperations/spec/Makefile.in b/src/c/matrixOperations/spec/Makefile.in deleted file mode 100644 index 9c34c9e..0000000 --- a/src/c/matrixOperations/spec/Makefile.in +++ /dev/null @@ -1,755 +0,0 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkglibexecdir = $(libexecdir)/@PACKAGE@ -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -check_PROGRAMS = testDoubleSpec$(EXEEXT) testFloatSpec$(EXEEXT) -TESTS = testDoubleSpec$(EXEEXT) testFloatSpec$(EXEEXT) -subdir = src/c/matrixOperations/spec -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/includes/machine.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__installdirs = "$(DESTDIR)$(pkglibdir)" -LTLIBRARIES = $(pkglib_LTLIBRARIES) -libSpec_la_LIBADD = -am__objects_1 = -am_libSpec_la_OBJECTS = $(am__objects_1) libSpec_la-sspeca.lo \ - libSpec_la-dspeca.lo libSpec_la-cspeca.lo libSpec_la-zspeca.lo -libSpec_la_OBJECTS = $(am_libSpec_la_OBJECTS) -libSpec_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libSpec_la_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -am_testDoubleSpec_OBJECTS = testDoubleSpec-testDoubleSpec.$(OBJEXT) -testDoubleSpec_OBJECTS = $(am_testDoubleSpec_OBJECTS) -testDoubleSpec_DEPENDENCIES = $(check_LDADD) -testDoubleSpec_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(testDoubleSpec_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -am_testFloatSpec_OBJECTS = testFloatSpec-testFloatSpec.$(OBJEXT) -testFloatSpec_OBJECTS = $(am_testFloatSpec_OBJECTS) -testFloatSpec_DEPENDENCIES = $(check_LDADD) -testFloatSpec_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(testFloatSpec_CFLAGS) \ - $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/includes -depcomp = $(SHELL) $(top_srcdir)/config/depcomp -am__depfiles_maybe = depfiles -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ -SOURCES = $(libSpec_la_SOURCES) $(testDoubleSpec_SOURCES) \ - $(testFloatSpec_SOURCES) -DIST_SOURCES = $(libSpec_la_SOURCES) $(testDoubleSpec_SOURCES) \ - $(testFloatSpec_SOURCES) -ETAGS = etags -CTAGS = ctags -am__tty_colors = \ -red=; grn=; lgn=; blu=; std= -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CXX = @CXX@ -CXXCPP = @CXXCPP@ -CXXDEPMODE = @CXXDEPMODE@ -CXXFLAGS = @CXXFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ -FGREP = @FGREP@ -GREP = @GREP@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBMATH = @LIBMATH@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MKDIR_P = @MKDIR_P@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_CXX = @ac_ct_CXX@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_F77 = @ac_ct_F77@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -htmldir = @htmldir@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -localedir = @localedir@ -localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -libSpec_la_CFLAGS = -I $(top_builddir)/src/c/type \ - -I $(top_builddir)/src/c/matrixOperations/includes \ - -I $(top_builddir)/src/c/operations/includes \ - -I $(top_builddir)/src/c/elementaryFunctions/includes\ - -I $(top_builddir)/src/c/auxiliaryFunctions/includes - -instdir = $(top_builddir)/lib -pkglib_LTLIBRARIES = libSpec.la -HEAD = ../includes/spec.h -libSpec_la_SOURCES = $(HEAD) \ - sspeca.c \ - dspeca.c \ - cspeca.c \ - zspeca.c - -check_LDADD = $(top_builddir)/src/c/type/libDoubleComplex.la \ - $(top_builddir)/src/c/type/libFloatComplex.la \ - $(top_builddir)/src/c/elementaryFunctions/sqrt/libSqrt.la \ - $(top_builddir)/src/fortran/lapack/libscilapack.la \ - $(top_builddir)/src/fortran/blas/libsciblas.la \ - $(top_builddir)/src/c/auxiliaryFunctions/abs/libAbs.la \ - $(top_builddir)/src/c/auxiliaryFunctions/conj/libConj.la \ - $(top_builddir)/src/c/auxiliaryFunctions/sign/libSign.la \ - $(top_builddir)/src/c/auxiliaryFunctions/pythag/libPythag.la \ - $(top_builddir)/src/c/operations/addition/libAddition.la \ - $(top_builddir)/src/c/operations/multiplication/libMultiplication.la \ - $(top_builddir)/src/c/matrixOperations/inversion/libMatrixInversion.la\ - $(top_builddir)/src/c/matrixOperations/zeros/libMatrixZeros.la\ - libSpec.la - -check_INCLUDES = -I $(top_builddir)/src/c/type \ - -I $(top_builddir)/src/c/matrixOperations/includes \ - -I $(top_builddir)/src/c/operations/includes \ - -I $(top_builddir)/src/c/elementaryFunctions/includes\ - -I $(top_builddir)/src/c/auxiliaryFunctions/includes - -testDoubleSpec_SOURCES = testDoubleSpec.c -testDoubleSpec_LDADD = $(check_LDADD) -testDoubleSpec_CFLAGS = $(check_INCLUDES) -testFloatSpec_SOURCES = testFloatSpec.c -testFloatSpec_LDADD = $(check_LDADD) -testFloatSpec_CFLAGS = $(check_INCLUDES) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/c/matrixOperations/spec/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign src/c/matrixOperations/spec/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" - @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ - list2=; for p in $$list; do \ - if test -f $$p; then \ - list2="$$list2 $$p"; \ - else :; fi; \ - done; \ - test -z "$$list2" || { \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \ - } - -uninstall-pkglibLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(pkglib_LTLIBRARIES)'; test -n "$(pkglibdir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$f"; \ - done - -clean-pkglibLTLIBRARIES: - -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES) - @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -libSpec.la: $(libSpec_la_OBJECTS) $(libSpec_la_DEPENDENCIES) - $(libSpec_la_LINK) -rpath $(pkglibdir) $(libSpec_la_OBJECTS) $(libSpec_la_LIBADD) $(LIBS) - -clean-checkPROGRAMS: - @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list -testDoubleSpec$(EXEEXT): $(testDoubleSpec_OBJECTS) $(testDoubleSpec_DEPENDENCIES) - @rm -f testDoubleSpec$(EXEEXT) - $(testDoubleSpec_LINK) $(testDoubleSpec_OBJECTS) $(testDoubleSpec_LDADD) $(LIBS) -testFloatSpec$(EXEEXT): $(testFloatSpec_OBJECTS) $(testFloatSpec_DEPENDENCIES) - @rm -f testFloatSpec$(EXEEXT) - $(testFloatSpec_LINK) $(testFloatSpec_OBJECTS) $(testFloatSpec_LDADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libSpec_la-cspeca.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libSpec_la-dspeca.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libSpec_la-sspeca.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libSpec_la-zspeca.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testDoubleSpec-testDoubleSpec.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testFloatSpec-testFloatSpec.Po@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -libSpec_la-sspeca.lo: sspeca.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libSpec_la_CFLAGS) $(CFLAGS) -MT libSpec_la-sspeca.lo -MD -MP -MF $(DEPDIR)/libSpec_la-sspeca.Tpo -c -o libSpec_la-sspeca.lo `test -f 'sspeca.c' || echo '$(srcdir)/'`sspeca.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libSpec_la-sspeca.Tpo $(DEPDIR)/libSpec_la-sspeca.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sspeca.c' object='libSpec_la-sspeca.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libSpec_la_CFLAGS) $(CFLAGS) -c -o libSpec_la-sspeca.lo `test -f 'sspeca.c' || echo '$(srcdir)/'`sspeca.c - -libSpec_la-dspeca.lo: dspeca.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libSpec_la_CFLAGS) $(CFLAGS) -MT libSpec_la-dspeca.lo -MD -MP -MF $(DEPDIR)/libSpec_la-dspeca.Tpo -c -o libSpec_la-dspeca.lo `test -f 'dspeca.c' || echo '$(srcdir)/'`dspeca.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libSpec_la-dspeca.Tpo $(DEPDIR)/libSpec_la-dspeca.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dspeca.c' object='libSpec_la-dspeca.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libSpec_la_CFLAGS) $(CFLAGS) -c -o libSpec_la-dspeca.lo `test -f 'dspeca.c' || echo '$(srcdir)/'`dspeca.c - -libSpec_la-cspeca.lo: cspeca.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libSpec_la_CFLAGS) $(CFLAGS) -MT libSpec_la-cspeca.lo -MD -MP -MF $(DEPDIR)/libSpec_la-cspeca.Tpo -c -o libSpec_la-cspeca.lo `test -f 'cspeca.c' || echo '$(srcdir)/'`cspeca.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libSpec_la-cspeca.Tpo $(DEPDIR)/libSpec_la-cspeca.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='cspeca.c' object='libSpec_la-cspeca.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libSpec_la_CFLAGS) $(CFLAGS) -c -o libSpec_la-cspeca.lo `test -f 'cspeca.c' || echo '$(srcdir)/'`cspeca.c - -libSpec_la-zspeca.lo: zspeca.c -@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libSpec_la_CFLAGS) $(CFLAGS) -MT libSpec_la-zspeca.lo -MD -MP -MF $(DEPDIR)/libSpec_la-zspeca.Tpo -c -o libSpec_la-zspeca.lo `test -f 'zspeca.c' || echo '$(srcdir)/'`zspeca.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libSpec_la-zspeca.Tpo $(DEPDIR)/libSpec_la-zspeca.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='zspeca.c' object='libSpec_la-zspeca.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libSpec_la_CFLAGS) $(CFLAGS) -c -o libSpec_la-zspeca.lo `test -f 'zspeca.c' || echo '$(srcdir)/'`zspeca.c - -testDoubleSpec-testDoubleSpec.o: testDoubleSpec.c -@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testDoubleSpec_CFLAGS) $(CFLAGS) -MT testDoubleSpec-testDoubleSpec.o -MD -MP -MF $(DEPDIR)/testDoubleSpec-testDoubleSpec.Tpo -c -o testDoubleSpec-testDoubleSpec.o `test -f 'testDoubleSpec.c' || echo '$(srcdir)/'`testDoubleSpec.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/testDoubleSpec-testDoubleSpec.Tpo $(DEPDIR)/testDoubleSpec-testDoubleSpec.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testDoubleSpec.c' object='testDoubleSpec-testDoubleSpec.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testDoubleSpec_CFLAGS) $(CFLAGS) -c -o testDoubleSpec-testDoubleSpec.o `test -f 'testDoubleSpec.c' || echo '$(srcdir)/'`testDoubleSpec.c - -testDoubleSpec-testDoubleSpec.obj: testDoubleSpec.c -@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testDoubleSpec_CFLAGS) $(CFLAGS) -MT testDoubleSpec-testDoubleSpec.obj -MD -MP -MF $(DEPDIR)/testDoubleSpec-testDoubleSpec.Tpo -c -o testDoubleSpec-testDoubleSpec.obj `if test -f 'testDoubleSpec.c'; then $(CYGPATH_W) 'testDoubleSpec.c'; else $(CYGPATH_W) '$(srcdir)/testDoubleSpec.c'; fi` -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/testDoubleSpec-testDoubleSpec.Tpo $(DEPDIR)/testDoubleSpec-testDoubleSpec.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testDoubleSpec.c' object='testDoubleSpec-testDoubleSpec.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testDoubleSpec_CFLAGS) $(CFLAGS) -c -o testDoubleSpec-testDoubleSpec.obj `if test -f 'testDoubleSpec.c'; then $(CYGPATH_W) 'testDoubleSpec.c'; else $(CYGPATH_W) '$(srcdir)/testDoubleSpec.c'; fi` - -testFloatSpec-testFloatSpec.o: testFloatSpec.c -@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testFloatSpec_CFLAGS) $(CFLAGS) -MT testFloatSpec-testFloatSpec.o -MD -MP -MF $(DEPDIR)/testFloatSpec-testFloatSpec.Tpo -c -o testFloatSpec-testFloatSpec.o `test -f 'testFloatSpec.c' || echo '$(srcdir)/'`testFloatSpec.c -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/testFloatSpec-testFloatSpec.Tpo $(DEPDIR)/testFloatSpec-testFloatSpec.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testFloatSpec.c' object='testFloatSpec-testFloatSpec.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testFloatSpec_CFLAGS) $(CFLAGS) -c -o testFloatSpec-testFloatSpec.o `test -f 'testFloatSpec.c' || echo '$(srcdir)/'`testFloatSpec.c - -testFloatSpec-testFloatSpec.obj: testFloatSpec.c -@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testFloatSpec_CFLAGS) $(CFLAGS) -MT testFloatSpec-testFloatSpec.obj -MD -MP -MF $(DEPDIR)/testFloatSpec-testFloatSpec.Tpo -c -o testFloatSpec-testFloatSpec.obj `if test -f 'testFloatSpec.c'; then $(CYGPATH_W) 'testFloatSpec.c'; else $(CYGPATH_W) '$(srcdir)/testFloatSpec.c'; fi` -@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/testFloatSpec-testFloatSpec.Tpo $(DEPDIR)/testFloatSpec-testFloatSpec.Po -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='testFloatSpec.c' object='testFloatSpec-testFloatSpec.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(testFloatSpec_CFLAGS) $(CFLAGS) -c -o testFloatSpec-testFloatSpec.obj `if test -f 'testFloatSpec.c'; then $(CYGPATH_W) 'testFloatSpec.c'; else $(CYGPATH_W) '$(srcdir)/testFloatSpec.c'; fi` - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - set x; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - shift; \ - if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - if test $$# -gt 0; then \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - "$$@" $$unique; \ - else \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$unique; \ - fi; \ - fi -ctags: CTAGS -CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ - END { if (nonempty) { for (i in files) print i; }; }'`; \ - test -z "$(CTAGS_ARGS)$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && $(am__cd) $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) "$$here" - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; skip=0; \ - srcdir=$(srcdir); export srcdir; \ - list=' $(TESTS) '; \ - $(am__tty_colors); \ - if test -n "$$list"; then \ - for tst in $$list; do \ - if test -f ./$$tst; then dir=./; \ - elif test -f $$tst; then dir=; \ - else dir="$(srcdir)/"; fi; \ - if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *[\ \ ]$$tst[\ \ ]*) \ - xpass=`expr $$xpass + 1`; \ - failed=`expr $$failed + 1`; \ - col=$$red; res=XPASS; \ - ;; \ - *) \ - col=$$grn; res=PASS; \ - ;; \ - esac; \ - elif test $$? -ne 77; then \ - all=`expr $$all + 1`; \ - case " $(XFAIL_TESTS) " in \ - *[\ \ ]$$tst[\ \ ]*) \ - xfail=`expr $$xfail + 1`; \ - col=$$lgn; res=XFAIL; \ - ;; \ - *) \ - failed=`expr $$failed + 1`; \ - col=$$red; res=FAIL; \ - ;; \ - esac; \ - else \ - skip=`expr $$skip + 1`; \ - col=$$blu; res=SKIP; \ - fi; \ - echo "$${col}$$res$${std}: $$tst"; \ - done; \ - if test "$$all" -eq 1; then \ - tests="test"; \ - All=""; \ - else \ - tests="tests"; \ - All="All "; \ - fi; \ - if test "$$failed" -eq 0; then \ - if test "$$xfail" -eq 0; then \ - banner="$$All$$all $$tests passed"; \ - else \ - if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ - banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ - fi; \ - else \ - if test "$$xpass" -eq 0; then \ - banner="$$failed of $$all $$tests failed"; \ - else \ - if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ - banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ - fi; \ - fi; \ - dashes="$$banner"; \ - skipped=""; \ - if test "$$skip" -ne 0; then \ - if test "$$skip" -eq 1; then \ - skipped="($$skip test was not run)"; \ - else \ - skipped="($$skip tests were not run)"; \ - fi; \ - test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$skipped"; \ - fi; \ - report=""; \ - if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ - report="Please report to $(PACKAGE_BUGREPORT)"; \ - test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ - dashes="$$report"; \ - fi; \ - dashes=`echo "$$dashes" | sed s/./=/g`; \ - if test "$$failed" -eq 0; then \ - echo "$$grn$$dashes"; \ - else \ - echo "$$red$$dashes"; \ - fi; \ - echo "$$banner"; \ - test -z "$$skipped" || echo "$$skipped"; \ - test -z "$$report" || echo "$$report"; \ - echo "$$dashes$$std"; \ - test "$$failed" -eq 0; \ - else :; fi - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am - $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) - $(MAKE) $(AM_MAKEFLAGS) check-TESTS -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: - for dir in "$(DESTDIR)$(pkglibdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-checkPROGRAMS clean-generic clean-libtool \ - clean-pkglibLTLIBRARIES mostlyclean-am - -distclean: distclean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-pkglibLTLIBRARIES - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-pkglibLTLIBRARIES - -.MAKE: check-am install-am install-strip - -.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ - clean-checkPROGRAMS clean-generic clean-libtool \ - clean-pkglibLTLIBRARIES ctags distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man install-pdf \ - install-pdf-am install-pkglibLTLIBRARIES install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-pkglibLTLIBRARIES - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/src/c/matrixOperations/spec/cspeca.c b/src/c/matrixOperations/spec/cspeca.c deleted file mode 100644 index a2b6548..0000000 --- a/src/c/matrixOperations/spec/cspeca.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#include -#include "spec.h" - - - -void cspeca(floatComplex* in, int rows, floatComplex* out){ - /* As we use Lapack to find the eigenvalues, we must cast the floatComplex input into doubleComplex - and the doubleComplex output of dspeca into floatComplex*/ - - int i; - doubleComplex* dblin; - doubleComplex* dblout; - - dblin=(doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex)); - dblout=(doubleComplex*)malloc((unsigned int)rows*sizeof(doubleComplex)); - - for (i=0;i -#include "spec.h" -#include "lapack.h" -#include "zeros.h" -#include "max.h" - -void dspeca(double* in, int rows,double* out){ - int i=0, j=0; - int symmetric=0; - int INFO=0; - int iWorkSize = 0; - double* pdblWork; - double* outReal; - double* outImag; - double* pdblLeftvectors; - double* pdblRightvectors; - double* inCopy; - - inCopy = (double*)malloc((unsigned int)(rows*rows) * sizeof(double)); - outReal = (double*)malloc((unsigned int)rows * sizeof(double)); - outImag = (double*)malloc((unsigned int)rows * sizeof(double)); - pdblLeftvectors=NULL; - pdblRightvectors=NULL; - - - iWorkSize = 3*rows; - pdblWork = (double*)malloc((unsigned int)iWorkSize * sizeof(double)); - - for(i=0;i -#include "spec.h" - - - -void sspeca(float* in, int rows, float* out){ - /* As we use Lapack to find the eigenvalues, we must cast the float input into double - and the doubleComplex output of dspeca into floatComplex*/ - - int i; - double* dblin; - double* dblout; - - dblin=(double*)malloc((unsigned int)(rows*rows)*sizeof(double)); - dblout=(double*)malloc((unsigned int)rows*sizeof(double)); - - for (i=0;i -#include "spec.h" -#include "stdio.h" -#include "assert.h" -#include "math.h" - -static void dspecaTest(void){ - double in[4]={1,1,1,3}; - double resultR[2]={0.5857864376269050765700,3.4142135623730949234300}; - - - double *out; - - int i; - - out=(double*)malloc((unsigned int)2*sizeof(double)); - - dspeca(in,2,out); - for(i=0;i<2;i++){ - if (out[i]>1e-16) assert( fabs(out[i]-resultR[i]) / fabs(out[i]) <3e-16); - else assert(1); - } - -} - - - - -static void zspecaTest(void){ - double inR[4]={1,1,1,3}; - double inI[4]={0,0,0,0}; - double resultR[2]={0.5857864376269050765700,3.4142135623730949234300}; - double resultI[2]={0,0}; - - double in2R[4]={1,1,-2,3}; - double in2I[4]={0,0,0,0}; - double result2R[2]={1.9999999999999997779554,1.9999999999999997779554}; - double result2I[2]={0.9999999999999997779554,-0.9999999999999997779554}; - - double in3R[16]={0.0603054538369178771973,0.631347181741148233414 ,0.0241030259057879447937,0.1527438252232968807221, - 0.9481177683919668197632,0.2744265575893223285675,0.4794727200642228126526,0.485576837789267301559, - 0.676400367170572280884,0.8321249918080866336823,0.0125875836238265037537,0.5453779897652566432953, - 0.8426716942340135574341,0.9029165101237595081329,0.4409482078626751899719,0.8332359003834426403046 }; - double in3I[16]={0.7233976423740386962891,0.4377150186337530612946,0.3080607382580637931824,0.8749813153408467769623, - 0.5355882328003644943237 ,0.3085998897440731525421,0.3354632416740059852600,0.2342486302368342876434, - 0.2589411698281764984131,0.8521509231068193912506,0.4821739485487341880798,0.6095217890106141567230, - 0.9872822705656290054321,0.9811426815576851367950,0.3303113700821995735169,0.3589145573787391185761}; - double result3R[4]={1.9486046375762748894545,0.2315060459861970343365,- 0.7694743345806510648188,- 0.2300808535483104266817}; - double result3I[4]={2.1242015857341254303492,- 0.4115101262891645017561,- 0.1980716835789462781925,0.3584662621795701720195}; - - doubleComplex *in,*in2,*in3,out[2],out2[4]; - - int i; - - in=DoubleComplexMatrix(inR,inI,4); - in2=DoubleComplexMatrix(in2R,in2I,4); - in3=DoubleComplexMatrix(in3R,in3I,16); - - zspeca(in,2,out); - for(i=0;i<2;i++){ - if (zreals(out[i])>1e-16) assert( fabs(zreals(out[i])-resultR[i]) / fabs(zreals(out[i])) <3e-16); - else assert(1); - if (zimags(out[i])>1e-16) assert( fabs(zimags(out[i])-resultI[i]) / fabs(zimags(out[i])) <1e-16); - else assert(1); - } - - - zspeca(in2,2,out); - for(i=0;i<2;i++){ - if (zreals(out[i])>1e-16) assert( fabs(zreals(out[i])-result2R[i]) / fabs(zreals(out[i])) <3e-16); - else assert(1); - if (zimags(out[i])>1e-16) assert( fabs(zimags(out[i])-result2I[i]) / fabs(zimags(out[i])) <3e-15); - else assert(1); - } - - - zspeca(in3,4,out2); - for(i=0;i<4;i++){ - if (zreals(out2[i])>1e-16) assert( fabs(zreals(out2[i])-result3R[i]) / fabs(zreals(out2[i])) <3e-15); - else assert(1); - if (zimags(out2[i])>1e-16) assert( fabs(zimags(out2[i])-result3I[i]) / fabs(zimags(out2[i])) <3e-15); - else assert(1); - } - - -} - - -static int testSpec(void){ - printf(">>> Double Spec Tests <<<\n"); - printf(">>> Double <<<\n"); - dspecaTest(); - printf(">>> DoubleComplex <<<\n"); - zspecaTest(); - return 0; -} - - -int main(void){ - assert (testSpec()==0); - - - return 0; -} diff --git a/src/c/matrixOperations/spec/testFloatSpec.c b/src/c/matrixOperations/spec/testFloatSpec.c deleted file mode 100644 index 9bd46ad..0000000 --- a/src/c/matrixOperations/spec/testFloatSpec.c +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#include -#include "spec.h" -#include "stdio.h" -#include "assert.h" -#include "math.h" - -static void sspecaTest(void){ - float in[4]={1.0f,1.0f,1.0f,3.0f}; - float resultR[2]={0.5857864376269050765700f,3.4142135623730949234300f}; - - float in1[4]={0.0f,4.0f,1.0f,0.0f}; - float result[2]={2.0f,-2.0f}; - - float in2[4]={1.0f,1.0f,-2.0f,3.0f}; - - float *out; - - int i; - - out=(float *)malloc((unsigned int)2*sizeof(float)); - - sspeca(in,2,out); - for (i=0;i<2;i++) printf("%f\n",out[i]); - for(i=0;i<2;i++){ - if (out[i]>1e-16) assert( fabs(out[i]-resultR[i]) / fabs(out[i]) <1e-16); - else assert(1); - } - - - sspeca(in1,2,out); - for (i=0;i<2;i++) printf("%f\n",out[i]); - for(i=0;i<2;i++){ - if (out[i]>1e-16) assert( fabs(out[i]-result[i]) / fabs(out[i]) <1e-16); - else assert(1); - } - - sspeca(in2,2,out); - for (i=0;i<2;i++) printf("%f\n",out[i]); - -} - - -static void cspecaTest(void){ - float inR[4]={1.0f,1.0f,1.0f,3.0f}; - float inI[4]={0.0f,0.0f,0.0f,0.0f}; - float resultR[2]={0.5857864376269050765700f,3.4142135623730949234300f}; - float resultI[2]={0,0}; - - float in2R[4]={1.0f,1.0f,-2.0f,3.0f}; - float in2I[4]={0.0f,0.0f,0.0f,0.0f}; - float result2R[2]={1.9999999999999997779554f,1.9999999999999997779554f}; - float result2I[2]={0.9999999999999997779554f,-0.9999999999999997779554f}; - - floatComplex *in,*in2,out[4]; - - int i; - - in=FloatComplexMatrix(inR,inI,4); - in2=FloatComplexMatrix(in2R,in2I,4); - - cspeca(in,2,out); - for(i=0;i<2;i++){ - if (creals(out[i])>1e-16) assert( fabs(creals(out[i])-resultR[i]) / fabs(creals(out[i])) <1e-15); - else assert(1); - if (cimags(out[i])>1e-16) assert( fabs(cimags(out[i])-resultI[i]) / fabs(cimags(out[i])) <1e-16); - else assert(1); - } - - - cspeca(in2,2,out); - for(i=0;i<2;i++){ - if (creals(out[i])>1e-16) assert( fabs(creals(out[i])-result2R[i]) / fabs(creals(out[i])) <1e-15); - else assert(1); - if (cimags(out[i])>1e-16) assert( fabs(cimags(out[i])-result2I[i]) / fabs(cimags(out[i])) <1e-15); - else assert(1); - } - -} - - - - -static int testSpec(void){ - printf(">>> Float Spec Tests <<<\n"); - printf(">>> Float <<<\n"); - sspecaTest(); - printf(">>> FloatComplex <<<\n"); - cspecaTest(); - return 0; -} - - -int main(void){ - assert (testSpec()==0); - - - return 0; -} diff --git a/src/c/matrixOperations/spec/test_DoubleSpec/testDoubleSpec.vcxproj b/src/c/matrixOperations/spec/test_DoubleSpec/testDoubleSpec.vcxproj deleted file mode 100644 index f696bff..0000000 --- a/src/c/matrixOperations/spec/test_DoubleSpec/testDoubleSpec.vcxproj +++ /dev/null @@ -1,178 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {651B0E61-1047-4575-BE31-D9CB28062CBA} - testDoubleSpec - Win32Proj - - - - Application - Unicode - true - - - Application - Unicode - true - - - Application - Unicode - - - Application - Unicode - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)bin\ - $(SolutionDir)bin\ - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - true - true - $(SolutionDir)bin\ - $(SolutionDir)bin\ - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - false - false - - - - Disabled - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - - - Level3 - EditAndContinue - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - MachineX86 - - - - - Disabled - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - - - Level3 - ProgramDatabase - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - - - - - MaxSpeed - true - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreadedDLL - true - - - Level3 - ProgramDatabase - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - true - true - MachineX86 - - - - - MaxSpeed - true - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreadedDLL - true - - - Level3 - ProgramDatabase - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - true - true - - - - - CompileAsCpp - CompileAsCpp - CompileAsCpp - CompileAsCpp - - - - - {9b1bd750-1fef-4d6b-9422-782d16181cee} - false - - - {fd335544-52bf-4736-a34e-77f591d158d5} - false - - - - - - \ No newline at end of file diff --git a/src/c/matrixOperations/spec/test_DoubleSpec/testDoubleSpec.vcxproj.filters b/src/c/matrixOperations/spec/test_DoubleSpec/testDoubleSpec.vcxproj.filters deleted file mode 100644 index dcdaea5..0000000 --- a/src/c/matrixOperations/spec/test_DoubleSpec/testDoubleSpec.vcxproj.filters +++ /dev/null @@ -1,22 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Source Files - - - \ No newline at end of file diff --git a/src/c/matrixOperations/spec/test_FloatSpec/testFloatSpec.vcxproj b/src/c/matrixOperations/spec/test_FloatSpec/testFloatSpec.vcxproj deleted file mode 100644 index 0631bb4..0000000 --- a/src/c/matrixOperations/spec/test_FloatSpec/testFloatSpec.vcxproj +++ /dev/null @@ -1,178 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {B7BEF8A2-3E42-4FA3-94A7-22618594057D} - testFloatSpec - Win32Proj - - - - Application - Unicode - true - - - Application - Unicode - true - - - Application - Unicode - - - Application - Unicode - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)bin\ - $(SolutionDir)bin\ - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - true - true - $(SolutionDir)bin\ - $(SolutionDir)bin\ - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - false - false - - - - Disabled - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - - - Level3 - EditAndContinue - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - MachineX86 - - - - - Disabled - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - - - Level3 - ProgramDatabase - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - - - - - MaxSpeed - true - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreadedDLL - true - - - Level3 - ProgramDatabase - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - true - true - MachineX86 - - - - - MaxSpeed - true - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreadedDLL - true - - - Level3 - ProgramDatabase - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - true - true - - - - - CompileAsCpp - CompileAsCpp - CompileAsCpp - CompileAsCpp - - - - - {9b1bd750-1fef-4d6b-9422-782d16181cee} - false - - - {fd335544-52bf-4736-a34e-77f591d158d5} - false - - - - - - \ No newline at end of file diff --git a/src/c/matrixOperations/spec/test_FloatSpec/testFloatSpec.vcxproj.filters b/src/c/matrixOperations/spec/test_FloatSpec/testFloatSpec.vcxproj.filters deleted file mode 100644 index 2ba2e59..0000000 --- a/src/c/matrixOperations/spec/test_FloatSpec/testFloatSpec.vcxproj.filters +++ /dev/null @@ -1,22 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Source Files - - - \ No newline at end of file diff --git a/src/c/matrixOperations/spec/zspeca.c b/src/c/matrixOperations/spec/zspeca.c deleted file mode 100644 index a2b1c25..0000000 --- a/src/c/matrixOperations/spec/zspeca.c +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#include -#include "spec.h" -#include "lapack.h" -#include "zeros.h" -#include "conj.h" - -void zspeca(doubleComplex* in, int rows,doubleComplex* out){ - int i = 0, j = 0; - int hermitian = 0; - int INFO = 0; - int iWorkSize = 0; - doubleComplex* pdblWork; - doubleComplex* pdblLeftvectors; - doubleComplex* pdblRightvectors; - doubleComplex* pdblRWork; - double* outReal; - double* outImag; - doubleComplex* inCopy; - - inCopy = (doubleComplex*)malloc((unsigned int)(rows*rows) * sizeof(doubleComplex)); - outReal = (double*)malloc((unsigned int)rows * sizeof(double)); - outImag = (double*)malloc((unsigned int)rows * sizeof(double)); - pdblLeftvectors=NULL; - pdblRightvectors=NULL; - - iWorkSize = 2*rows; - pdblWork = (doubleComplex*)malloc((unsigned int)iWorkSize * sizeof(doubleComplex)); - pdblRWork = (doubleComplex*)malloc((unsigned int)(3*rows) * sizeof(doubleComplex)); - - for(i=0;i -#include "spec.h" - - - -void cspec2a(floatComplex* in, int rows, floatComplex* eigenvalues,floatComplex* eigenvectors){ - /* As we use Lapack to find the eigenvalues, we must cast the floatComplex input into doubleComplex - and the doubleComplex outputs of dspeca into floatComplex*/ - - int i; - doubleComplex* dblin; - doubleComplex* dbleigenvalues,*dbleigenvectors; - - dblin=(doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex)); - dbleigenvalues=(doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex)); - dbleigenvectors=(doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex)); - - for (i=0;i -#include "spec.h" -#include "lapack.h" -#include "zeros.h" -#include "max.h" - -void dspec2a(double* in, int rows,double* eigenvalues,double* eigenvectors){ - int i=0, j=0, ij=0, ij1=0; - int symmetric=0; - int INFO=0; - int iWorkSize = 0; - double* pdblWork; - double* outReal; - double* outImag; - double* pdblLeftvectors; - double* pdblRightvectors; - double* inCopy; - - /* FIXME : malloc here */ - inCopy = (double*)malloc((unsigned int)(rows*rows) * sizeof(double)); - outReal = (double*)malloc((unsigned int)rows * sizeof(double)); - outImag = NULL; - pdblLeftvectors=NULL; - pdblRightvectors=NULL; - - - iWorkSize = 4*rows; - pdblWork = (double*)malloc((unsigned int)iWorkSize * sizeof(double)); - - for(i=0;i -#include "spec.h" - - - -void sspec2a(float* in, int rows, float* eigenvalues,float* eigenvectors){ - /* As we use Lapack to find the eigenvalues, we must cast the float input into double - and the doubleComplex outputs of dspec2a into floatComplex*/ - - int i; - double* dblin; - double *dbleigenvalues,*dbleigenvectors; - - dblin=(double*)malloc((unsigned int)(rows*rows)*sizeof(double)); - dbleigenvalues = (double*)malloc((unsigned int)(rows*rows)*sizeof(double)); - dbleigenvectors = (double*)malloc((unsigned int)(rows*rows)*sizeof(double)); - - for (i=0;i1e-16) assert( fabs(out3[i]-resultValues3R[i]) / fabs(out3[i]) <3e-16); - else assert(1); - } - for(i=0;i<9;i++){ - if (out4[i]>1e-16) assert( fabs(out4[i]-resultVectors3R[i]) / fabs(out4[i]) <3e-16); - else assert(1); - } - - - dspec2a(in,2,out1,out2); - for(i=0;i<4;i++) printf("%f\n",out1[i]); - for(i=0;i<4;i++){ - if (out1[i]>1e-16) assert( fabs(out1[i]-resultValuesR[i]) / fabs(out1[i]) <3e-16); - else assert(1); - } - for(i=0;i<4;i++){ - if (out2[i]>1e-16) assert( fabs(out2[i]-resultVectorsR[i]) / fabs(out2[i]) <3e-16); - else assert(1); - } - - - dspec2a(in2,2,out1,out2); - - for(i=0;i<4;i++){ - if (out1[i]>1e-16) assert( fabs(out1[i]-resultValues2R[i]) / fabs(out1[i]) <1e-16); - else assert(1); - } - for(i=0;i<4;i++){ - if (out2[i]>1e-16) assert( fabs(out2[i]-resultVectors2R[i]) / fabs(out2[i]) <3e-16); - else assert(1); - } - -} - - - - -static void zspec2aTest(void){ - double inR[4]={1,1,1,3}; - double inI[4]={0,0,0,0}; - double resultValuesR[4]={0.5857864376269050765700,0,0,3.4142135623730949234300}; - double resultValuesI[4]={0,0,0,0}; - double resultVectorsR[4]={- 0.9238795325112867384831,0.3826834323650897817792, - 0.3826834323650897817792,0.9238795325112867384831}; - double resultVectorsI[4]={0,0,0,0}; - - double in2R[4]={1,1,-2,3}; - double in2I[4]={0,0,0,0}; - double resultValues2R[4]={1.9999999999999997779554,0,0,1.9999999999999997779554}; - double resultValues2I[4]={0.9999999999999997779554,0,0,-0.9999999999999997779554}; - double resultVectors2R[4]={0.8164965809277261454824,- 0.4082482904638631282523, - 0.8164965809277261454824,- 0.4082482904638631282523}; - double resultVectors2I[4]={0,- 0.4082482904638629062077,0,0.4082482904638629062077}; - - - double in3R[16]={ 0.4685934986919164657593, 0.4262020816095173358917, 0.4217656338587403297424, 0.1034853602759540081024 , - 0.4279759414494037628174, 0.7860729382373392581940, 0.8568082069978117942810, 0.1993437460623681545258 , - 0.7131301630288362503052, 0.5208952468819916248322, 0.9311723159626126289368, 0.4143836158327758312225, - 0.5980196148157119750977, 0.5549105503596365451813, 0.8552952585741877555847, 0.3097750707529485225678}; - double in3I[16]={0.9446128141134977340698, 0.2442680452950298786163, 0.8760446915403008460999, 0.4874215493910014629364, - 0.3844018988311290740967, 0.0922345430590212345123, 0.0705418726429343223572, 0.7338807261548936367035, - 0.7792180571705102920532, 0.7827638057060539722443, 0.2161567779257893562317, 0.3420197847299277782440, - 0.430093832314014434814 , 0.6261752569116652011871, 0.9554250938817858695984, 0.45415506651625037193 }; - double resultValues3R[16]={2.0556597713281337114211 , 0. , 0. , 0. , - 0. , - 0.3025728286579054682193 , 0. , 0. , - 0. , 0. , 0.1432776981289703988054 , 0. , - 0. , 0. , 0. , 0.59924918284561956571821}; - double resultValues3I[16]={2.0772175543447914947137 , 0. , 0. , 0. , - 0. , - 0.5223086999196728807959 , 0. , 0. , - 0. , 0. , 0.3871735516160564882782 , 0. , - 0. , 0. , 0. , - 0.2349232044266161556489 }; - double resultVectors3R[16]={ 0.5762578366606958546470 , 0.4529873647084416976583 , 0.5438116534400605495137 , 0.3599855200589946457868 , - - 0.3285074902800487195442, - 0.0923654569732548225147, 0.6473744750124794666846, - 0.1812302216765642182139 , - 0.7395301236826927748780, - 0.4588526195219964631811, 0.0997916953568371567496, - 0.3603263850824164338249 , - 0.0717862182160008133192, 0.6967198304315765922112, - 0.1153149977500917411355 , - 0.3232658081022470875077 }; - double resultVectors3I[16]={ 0. , - 0.1082260232744242933745, - 0.1403164362264210929254 , 0.0775054168635924967123 , - 0.0347047096401541868560, - 0.4780157518240965019984, 0. , 0.4493438228998393735303, - 0. , - 0.0484367977162360741072 , 0.0664282497469102783949 , - 0.3098340648435350952461 , - 0.1768623397230159322024, 0. , - 0.4621680558325051979551 , 0.3830799998945915163517}; - - - double in4R[49]={0.0292230211198329925537, 0.1069206790998578071594, 9.7463708464056253433228, 7.7042609406635165214539 , 6.3966313377022743225098, 9.5358861843124032020569, 4.1484833415597677230835, - 4.6615396952256560325623, 2.2384551353752613067627, 3.4569733263924717903137, 2.3406236339360475540161, 6.6193414805456995964050,2.6911795139312744140625,9.8302489006891846656799 , - 7.3933512251824140548706, 2.9021358629688620567322 , 3.9959496073424816131592 , 9.792278115637600421906 , 0.0755135808140039443970, 7.0210226578637957572937 , 8.9075061306357383728027 , - 6.5269742021337151527405 , 4.136228552088141441345 , 8.5816909139975905418396 , 2.3960896767675876617432 , 4.8200417729094624519348, 9.848585547879338264465 , 4.4697216479107737541199, - 2.3298137634992599487305, 2.2345139319077134132385, 8.0025654565542936325073, 7.7507343282923102378845, 4.8250066302716732025146, 7.8448831336572766304016 , 1.5346793178468942642212 , - 7.7228771103546023368835 , 8.9520217850804328918457, 9.4673257926478981971741, 6.9818257447332143783569, 9.5591608202084898948669, 0.4840173013508319854736, 5.3235206427052617073059, - 2.9468670953065156936646, 6.9771366892382502555847 , 9.3762038648128509521484 , 1.0755608463659882545471 , 7.7634243946522474288940, 6.3734178384765982627869 , 0.6630615703761577606201 }; - double in4I[49]={8.1694598542526364326477, 3.5473910067230463027954, 5.860544512979686260223, 3.4610254690051078796387, 4.4247510144487023353577, 8.8226650562137365341187, 7.6436930662021040916443 , - 7.764139864593744277954, 2.8076809318736195564270, 6.9086006004363298416138, 7.1747286943718791007996, 3.7201813608407974243164 , 9.3254965776577591896057, 2.2566775511950254440308, - 7.5211019208654761314392 , 3.0747506581246852874756 , 5.9793261485174298286438, 1.9238903466612100601196, 2.3870888305827975273132 , 7.4708331003785133361816, 9.7131536761298775672913, - 4.3703553732484579086304, 6.2248750543221831321716, 3.2913279719650745391846, 3.2963873865082859992981, 2.7686371374875307083130 , 4.8729835031554102897644, 7.7320465445518493652344 , - 9.0775218093767762184143, 5.0122931879013776779175, 5.1595458528026938438416, 5.79267887398600578308 , 1.5463936375454068183899 , 7.6111377868801355361938, 6.9079177780076861381531 , - 2.8732293471693992614746, 9.64253133628517389297 , 5.6607243325561285018921, 5.7821379369124770164490, 2.6634209789335727691650 , 4.7470985027030110359192, 6.0735465306788682937622, - 0.4097307054325938224793, 5.0125684589147567749023 , 5.2959309751167893409729, 6.2594583164900541305542, 2.2193526616320013999939 , 3.467419948428869247437, 3.9511676924303174018860 }; - double resultValues4R[49]={39.018457752476393807228 ,0,0,0,0,0,0, - 0,2.2455352415739073812517,0,0,0,0,0, - 0,0,- 8.4848591657394489828903,0,0,0,0, - 0,0,0,- 9.617033196016185669919,0,0,0, - 0,0,0,0,- 3.7815852014367528077798,0,0, - 0,0,0,0,0,- 4.44858427601393291440,0, - 0,0,0,0,0,0,- 0.3001282122401837670900}; - double resultValues4I[49]={36.525725390582877594170,0,0,0,0,0,0, - 0,- 5.9058762755733944516123,0,0,0,0,0, - 0,0,- 3.5959527108686115681735,0,0,0,0, - 0,0,0,1.8928051444081777088257,0,0,0, - 0,0,0,0,- 3.1889864758923365251064,0,0, - 0,0,0,0,0,3.2418188738592150777151,0, - 0,0,0,0,0,0,1.5279802073147508156836}; - - double resultVectors4R[49]={ 0.3499995148567048852684, 0.3131141942665225941234, 0.4518966551544936205431, 0.3429358568207974133912, 0.3073919828504245721490, 0.4236868694783915145763, 0.3928739146959387973368 , - 0.2654822689469810148566 , - 0.3607918093136298631762, 0.0473515544359270068586 , 0.5097969509656486986060 , -0.3771134435310480315096 , 0.2011534205484152293408, - 0.4415200724898113993078, - 0.5454886553461798515130, - 0.2173248800239625522224, - 0.2171708216301463378883 , - 0.2460117034233289534662 , -0.3694743444265859433351 , 0.3601018742104445391483, 0.1530612374027510713681, - 0.6385835932752577104310, - 0.0013906755423099548263, - 0.3368505708673739662551 , 0.1394203608831885433 , -0.2292783363046769218308 , -0.2740379414191142504187, 0.1926279946047058377889 , - - 0.6106238336849327819067, 0.0128604884735820379493, 0.2248434453925002574071, - 0.0955950290268089419854 , 0.6322383898844411431739 , - 0.1362122761803175874373, - 0.0030545591332723984190, - 0.5431360047322275619308, 0.1304324282476526930541, - 0.3713242513274904177401, - 0.2693820083406764376299 , - 0.1431429883314006001882 , 0.0533021313694299267438, 0.0071247423818797811501 , - - 0.156705245229635081738, 0.0034676864415526253982 , - 0.3351413975178426096768 , 0.2927797449896782921996 , 0.5714932440406852443005 , 0.0738366305178744797288, - 0.4509415569247051669422 }; - double resultVectors4I[49]={ 0.0720991445669864616796 , 0.0844739028302603361942 , 0. , 0.0173431366502564965337, -0.0428710162141596462515, 0.0695226101295536302871, 0.0999385617869267273150, - 0.2510960793336660668018 , - 0.1123901435582568414384, 0.0091069807153507792430, 0. , - 0.2545493692188907641771, 0.1149714203529902251111, 0.0762796210842419941667, - 0. , 0.0611827470444509316505, 0.2295643426501567385678, - 0.2950878328821502361024, 0.198556748820033573955, 0.0646801132828138114483, - 0.2660572521172601678785, - 0. , 0.2688905463703794573860, 0.2230635356255223633593 , - 0.2013432448241845862391, - 0.0386922946770884290668, 0.0358963301038670995480, - 0.3593711366897305303780 , - - 0.1386717901043315326337, 0.0600994116374372472356, - 0.1167558596038882207102 , 0.317965599565130263571, 0. , -0.0642522754144960878131, - 0.0853665514099945371695, - 0. , 0.2715431731544318272320, - 0.1184277560110737481658 , 0.3655618467608299226868, - 0.4598766797780974302512 , 0.0188698345957667955319, - 0.1446429340244405892246, - 0.346095581161616094867 , 0.0750882555805542639682, - 0.2494867985551498246188, - 0.2328934592128872882455, 0. , -0.0047307828167728396829, - 0.0078254955461786041004}; - - - - - doubleComplex *in,*in2,*in3,*in4,out1[4],out2[4],out3[16],out4[16],out5[49],out6[49]; - - int i; - - in=DoubleComplexMatrix(inR,inI,4); - in2=DoubleComplexMatrix(in2R,in2I,4); - in3=DoubleComplexMatrix(in3R,in3I,16); - in4=DoubleComplexMatrix(in4R,in4I,49); - zspec2a(in,2,out1,out2); - - - for(i=0;i<4;i++){ - if (zreals(out1[i])>1e-16) assert( fabs(zreals(out1[i])-resultValuesR[i]) / fabs(zreals(out1[i])) <3e-16); - else assert(1); - if (zimags(out1[i])>1e-16) assert( fabs(zimags(out1[i])-resultValuesI[i]) / fabs(zimags(out1[i])) <1e-16); - else assert(1); - } - - for(i=0;i<4;i++){ - if (zreals(out2[i])>1e-16) assert( fabs(zreals(out2[i])-resultVectorsR[i]) / fabs(zreals(out2[i])) <3e-16); - else assert(1); - if (zimags(out2[i])>1e-16) assert( fabs(zimags(out2[i])-resultVectorsI[i]) / fabs(zimags(out2[i])) <1e-16); - else assert(1); - } - - - zspec2a(in2,2,out1,out2); - for(i=0;i<4;i++){ - if (zreals(out1[i])>1e-16) assert( fabs(zreals(out1[i])-resultValues2R[i]) / fabs(zreals(out1[i])) <3e-16); - else assert(1); - if (zimags(out1[i])>1e-16) assert( fabs(zimags(out1[i])-resultValues2I[i]) / fabs(zimags(out1[i])) <3e-15); - else assert(1); - } - - for(i=0;i<4;i++){ - if (zreals(out2[i])>1e-16) assert( fabs(zreals(out2[i])-resultVectors2R[i]) / fabs(zreals(out2[i])) <3e-16); - else assert(1); - if (zimags(out2[i])>1e-16) assert( fabs(zimags(out2[i])-resultVectors2I[i]) / fabs(zimags(out2[i])) <3e-15); - else assert(1); - } - - - - zspec2a(in3,4,out3,out4); - for(i=0;i<16;i++){ - if (zreals(out3[i])>1e-16) assert( fabs(zreals(out3[i])-resultValues3R[i]) / fabs(zreals(out3[i])) <3e-15); - else assert(1); - if (zimags(out3[i])>1e-16) assert( fabs(zimags(out3[i])-resultValues3I[i]) / fabs(zimags(out3[i])) <3e-15); - else assert(1); - } - for(i=0;i<16;i++){ - if (zreals(out4[i])>1e-16) assert( fabs(zreals(out4[i])-resultVectors3R[i]) / fabs(zreals(out4[i])) <3e-15); - else assert(1); - if (zimags(out4[i])>1e-16) assert( fabs(zimags(out4[i])-resultVectors3I[i]) / fabs(zimags(out4[i])) <3e-14); - else assert(1); - } - - /* FIXME : assert : 3e-16 maybe du to little values like 0.001... */ - zspec2a(in4,7,out5,out6); - - for(i=0;i<49;i++){ - if (zreals(out5[i])>1e-16) assert( fabs(zreals(out5[i])-resultValues4R[i]) / fabs(zreals(out5[i])) <3e-15); - else assert(1); - if (zimags(out5[i])>1e-16) assert( fabs(zimags(out5[i])-resultValues4I[i]) / fabs(zimags(out5[i])) <3e-14); - else assert(1); - } - for(i=0;i<49;i++){ - if (zreals(out6[i])>1e-16) assert( fabs(zreals(out6[i])-resultVectors4R[i]) / fabs(zreals(out6[i])) <3e-14); - else assert(1); - if (zimags(out6[i])>1e-16) assert( fabs(zimags(out6[i])-resultVectors4I[i]) / fabs(zimags(out6[i])) <3e-13); - else assert(1); - } - - - -} - - -static int testSpec2(void){ - printf(">>> Double Spec2 Tests <<<\n"); - printf(">>> Double <<<\n"); - dspec2aTest(); - printf(">>> DoubleComplex <<<\n"); - zspec2aTest(); - return 0; -} - - -int main(void){ - assert (testSpec2()==0); - - - return 0; -} diff --git a/src/c/matrixOperations/spec2/testFloatSpec2.c b/src/c/matrixOperations/spec2/testFloatSpec2.c deleted file mode 100644 index fb2bc25..0000000 --- a/src/c/matrixOperations/spec2/testFloatSpec2.c +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - - -#include "spec.h" -#include "stdio.h" -#include "assert.h" -#include "math.h" - -static void sspec2aTest(void){ - float in[4]={1.0f,1.0f,1.0f,3.0f}; - float resultValuesR[4]={0.5857864376269050765700f,0,0,3.4142135623730949234300f}; - float resultVectorsR[4]={- 0.9238795325112867384831f,0.3826834323650897817792f, - 0.3826834323650897817792f,0.9238795325112867384831f}; - - float in2[4]={1.0f,1.0f,-2.0f,3.0f}; - float resultValues2R[4]={1.9999999999999997779554f,0,0,1.9999999999999997779554f}; - float resultVectors2R[4]={0.8164965809277261454824f,- 0.4082482904638631282523f, - 0.8164965809277261454824f,- 0.4082482904638631282523f}; - float eigenvalues[4],eigenvectors[4]; - - int i; - - sspec2a(in,2,eigenvalues,eigenvectors); - - for(i=0;i<4;i++){ - if (eigenvalues[i]>1e-6) assert( fabs(eigenvalues[i]-resultValuesR[i]) / fabs(eigenvalues[i]) <1e-16); - else assert(1); - } - for(i=0;i<4;i++){ - if (eigenvectors[i]>1e-6) assert( fabs(eigenvectors[i]-resultVectorsR[i]) / fabs(eigenvectors[i]) <1e-16); - else assert(1); - } - - - sspec2a(in2,2,eigenvalues,eigenvectors); - - - - for(i=0;i<4;i++){ - if (eigenvalues[i]>1e-6) assert( fabs(eigenvalues[i]-resultValues2R[i]) / fabs(eigenvalues[i]) <1e-16); - else assert(1); - } - for(i=0;i<4;i++){ - if (eigenvectors[i]>1e-6) assert( fabs(eigenvectors[i]-resultVectors2R[i]) / fabs(eigenvectors[i]) <1e-16); - else assert(1); - } -} - - - - -static void cspec2aTest(void){ - float inR[4]={1.0f,1.0f,1.0f,3.0f}; - float inI[4]={0.0f,0.0f,0.0f,0.0f}; - float resultValuesR[4]={0.5857864376269050765700f,0,0,3.4142135623730949234300f}; - float resultValuesI[4]={0,0,0,0}; - float resultVectorsR[4]={- 0.9238795325112867384831f,0.3826834323650897817792f, - 0.3826834323650897817792f,0.9238795325112867384831f}; - float resultVectorsI[4]={0,0,0,0}; - - float in2R[4]={1.0f,1.0f,-2.0f,3.0f}; - float in2I[4]={0.0f,0.0f,0.0f,0.0f}; - float resultValues2R[4]={1.9999999999999997779554f,0,0,1.9999999999999997779554f}; - float resultValues2I[4]={0.9999999999999997779554f,0,0,-0.9999999999999997779554f}; - float resultVectors2R[4]={0.8164965809277261454824f,- 0.4082482904638631282523f, - 0.8164965809277261454824f,- 0.4082482904638631282523f}; - float resultVectors2I[4]={0,- 0.4082482904638629062077f,0,0.4082482904638629062077f}; - - floatComplex *in,*in2,out1[4],out2[4]; - - int i; - - in=FloatComplexMatrix(inR,inI,4); - in2=FloatComplexMatrix(in2R,in2I,4); - - cspec2a(in,2,out1,out2); - for(i=0;i<4;i++){ - if (creals(out1[i])>1e-16) assert( fabs(creals(out1[i])-resultValuesR[i]) / fabs(creals(out1[i])) <1e-15); - else assert(1); - if (cimags(out1[i])>1e-16) assert( fabs(cimags(out1[i])-resultValuesI[i]) / fabs(cimags(out1[i])) <1e-16); - else assert(1); - } - for(i=0;i<4;i++){ - if (creals(out2[i])>1e-16) assert( fabs(creals(out2[i])-resultVectorsR[i]) / fabs(creals(out2[i])) <1e-15); - else assert(1); - if (cimags(out2[i])>1e-16) assert( fabs(cimags(out2[i])-resultVectorsI[i]) / fabs(cimags(out2[i])) <1e-16); - else assert(1); - } - - - cspec2a(in2,2,out1,out2); - for(i=0;i<4;i++){ - if (creals(out1[i])>1e-16) assert( fabs(creals(out1[i])-resultValues2R[i]) / fabs(creals(out1[i])) <1e-15); - else assert(1); - if (cimags(out1[i])>1e-16) assert( fabs(cimags(out1[i])-resultValues2I[i]) / fabs(cimags(out1[i])) <1e-15); - else assert(1); - } - for(i=0;i<4;i++){ - if (creals(out2[i])>1e-16) assert( fabs(creals(out2[i])-resultVectors2R[i]) / fabs(creals(out2[i])) <1e-15); - else assert(1); - if (cimags(out2[i])>1e-16) assert( fabs(cimags(out2[i])-resultVectors2I[i]) / fabs(cimags(out2[i])) <1e-16); - else assert(1); - } -} - - - - -static int testSpec2(void){ - printf(">>> Float Spec2 Tests <<<\n"); - printf(">>> Float <<<\n"); - sspec2aTest(); - printf(">>> FloatComplex <<<\n"); - cspec2aTest(); - return 0; -} - - -int main(void){ - assert (testSpec2()==0); - - - return 0; -} diff --git a/src/c/matrixOperations/spec2/test_DoubleSpec2/testDoubleSpec2.vcxproj b/src/c/matrixOperations/spec2/test_DoubleSpec2/testDoubleSpec2.vcxproj deleted file mode 100644 index 7c36943..0000000 --- a/src/c/matrixOperations/spec2/test_DoubleSpec2/testDoubleSpec2.vcxproj +++ /dev/null @@ -1,178 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {FD0A4495-C372-41EF-B8EF-0A0939DA6C1E} - testDoubleSpec2 - Win32Proj - - - - Application - Unicode - true - - - Application - Unicode - true - - - Application - Unicode - - - Application - Unicode - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)bin\ - $(SolutionDir)bin\ - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - true - true - $(SolutionDir)bin\ - $(SolutionDir)bin\ - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - false - false - - - - Disabled - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - - - Level3 - EditAndContinue - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - MachineX86 - - - - - Disabled - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - - - Level3 - ProgramDatabase - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - - - - - MaxSpeed - true - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreadedDLL - true - - - Level3 - ProgramDatabase - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - true - true - MachineX86 - - - - - MaxSpeed - true - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreadedDLL - true - - - Level3 - ProgramDatabase - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - true - true - - - - - CompileAsCpp - CompileAsCpp - CompileAsCpp - CompileAsCpp - - - - - {9b1bd750-1fef-4d6b-9422-782d16181cee} - false - - - {fd335544-52bf-4736-a34e-77f591d158d5} - false - - - - - - \ No newline at end of file diff --git a/src/c/matrixOperations/spec2/test_DoubleSpec2/testDoubleSpec2.vcxproj.filters b/src/c/matrixOperations/spec2/test_DoubleSpec2/testDoubleSpec2.vcxproj.filters deleted file mode 100644 index 04f409d..0000000 --- a/src/c/matrixOperations/spec2/test_DoubleSpec2/testDoubleSpec2.vcxproj.filters +++ /dev/null @@ -1,22 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Source Files - - - \ No newline at end of file diff --git a/src/c/matrixOperations/spec2/test_FloatSpec2/testFloatSpec2.vcxproj b/src/c/matrixOperations/spec2/test_FloatSpec2/testFloatSpec2.vcxproj deleted file mode 100644 index f4154eb..0000000 --- a/src/c/matrixOperations/spec2/test_FloatSpec2/testFloatSpec2.vcxproj +++ /dev/null @@ -1,178 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {E20D0BC2-B28A-412C-9715-5B93B319A4A3} - testFloatSpec2 - Win32Proj - - - - Application - Unicode - true - - - Application - Unicode - true - - - Application - Unicode - - - Application - Unicode - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>10.0.40219.1 - $(SolutionDir)bin\ - $(SolutionDir)bin\ - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - true - true - $(SolutionDir)bin\ - $(SolutionDir)bin\ - $(ProjectDir)$(Configuration)\ - $(ProjectDir)$(Configuration)\ - false - false - - - - Disabled - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - EnableFastChecks - MultiThreadedDebugDLL - - - Level3 - EditAndContinue - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - MachineX86 - - - - - Disabled - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - - - Level3 - ProgramDatabase - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - - - - - MaxSpeed - true - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreadedDLL - true - - - Level3 - ProgramDatabase - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - true - true - MachineX86 - - - - - MaxSpeed - true - ../../../includes;../../../type;../../includes;../../../operations/includes;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreadedDLL - true - - - Level3 - ProgramDatabase - - - $(SolutionDir)bin\$(ProjectName).exe - true - Console - true - true - - - - - CompileAsCpp - CompileAsCpp - CompileAsCpp - CompileAsCpp - - - - - {9b1bd750-1fef-4d6b-9422-782d16181cee} - false - - - {fd335544-52bf-4736-a34e-77f591d158d5} - false - - - - - - \ No newline at end of file diff --git a/src/c/matrixOperations/spec2/test_FloatSpec2/testFloatSpec2.vcxproj.filters b/src/c/matrixOperations/spec2/test_FloatSpec2/testFloatSpec2.vcxproj.filters deleted file mode 100644 index 0c38d2f..0000000 --- a/src/c/matrixOperations/spec2/test_FloatSpec2/testFloatSpec2.vcxproj.filters +++ /dev/null @@ -1,22 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hpp;hxx;hm;inl;inc;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav - - - - - Source Files - - - \ No newline at end of file diff --git a/src/c/matrixOperations/spec2/zspec2a.c b/src/c/matrixOperations/spec2/zspec2a.c deleted file mode 100644 index e33ed89..0000000 --- a/src/c/matrixOperations/spec2/zspec2a.c +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - -#include -#include "spec.h" -#include "lapack.h" -#include "zeros.h" -#include "stdio.h" -#include "conj.h" - -void zspec2a(doubleComplex* in, int rows,doubleComplex* eigenvalues, doubleComplex* eigenvectors){ - int i = 0, j = 0; - int hermitian = 0; - int INFO = 0; - int iWorkSize = 0; - doubleComplex* pdblWork; - doubleComplex* pdblLeftvectors; - doubleComplex* pdblRightvectors; - doubleComplex* pdblRWork; - double* pdblRWork2; - double* outReal; - double* outImag; - doubleComplex* inCopy; - - inCopy = (doubleComplex*)malloc((unsigned int)(rows*rows) * sizeof(doubleComplex)); - outReal = (double*)malloc((unsigned int)rows * sizeof(double)); - outImag = (double*)malloc((unsigned int)rows * sizeof(double)); - pdblLeftvectors=NULL; - pdblRightvectors=NULL; - - iWorkSize = 2*rows; - pdblWork = (doubleComplex*)malloc((unsigned int)iWorkSize * sizeof(doubleComplex)); - pdblRWork = NULL; - pdblRWork2 = NULL; - - for(i=0;i 90519 bytes .../ToolInitialization/INIT_FillSCI2LibCDirs.sci | 353 ++++++++++++++++++++- macros/findDeps/getAllHeaders.sci | 16 +- macros/findDeps/getAllInterfaces.sci | 12 +- macros/findDeps/getAllSources.sci | 24 +- .../testLinearAlgebra/testsvd/testsvd.sci | 6 + .../testLinearAlgebra/testsvd/testsvdeconomy.sci | 11 + .../testLinearAlgebra/testsvd/testsvdim.sci | 6 + .../testLinearAlgebra/testsvd/testsvdrank.sci | 13 + .../testLinearAlgebra/testsvd/testsvdreal.sci | 11 + 12 files changed, 454 insertions(+), 28 deletions(-) create mode 100644 tests/unit_tests/testLinearAlgebra/testsvd/testsvd.sci create mode 100644 tests/unit_tests/testLinearAlgebra/testsvd/testsvdeconomy.sci create mode 100644 tests/unit_tests/testLinearAlgebra/testsvd/testsvdim.sci create mode 100644 tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci create mode 100644 tests/unit_tests/testLinearAlgebra/testsvd/testsvdreal.sci diff --git a/includes/lapack.h b/includes/lapack.h index 5f12bc2..d3f6cb3 100644 --- a/includes/lapack.h +++ b/includes/lapack.h @@ -195,6 +195,13 @@ extern doubleComplex zgesvd_( char* , char* , int* , int* ,doubleComplex *,\ int* , double* ,doubleComplex* , int* ,doubleComplex* , int* ,\ doubleComplex* , int* , double* , int* ); +/*USed in QR decompsition*/ +extern double dgeqrf_(int *,int *,double *,int *,double *,double *,int *,int *); +extern double dgeqpf_(int *,int *,double *,int *,int *,double *,double *,int *); +extern double dorgqr_(int *,int *,int *,double *,int *,double *,double *,int *,int *); +extern void dlaset_(char *,int *,int *,double *,double *,double *,int *); + + #ifdef __cplusplus } /* extern "C" */ #endif diff --git a/includes/sci2clib.h b/includes/sci2clib.h index 1a8b557..1a66273 100644 --- a/includes/sci2clib.h +++ b/includes/sci2clib.h @@ -660,8 +660,27 @@ extern "C" { #include "hess.h" /* Linear Algebra - Hess function */ #include "int_hess.h" -#include "sva.h" -#include "int_sva.h" /*Linear Algebra - SVA function */ +#include "sva.h" /* Linear Algebra - SVA function */ +#include "int_sva.h" + +#include "sqroot.h" /* Linear Algebra - Sqroot function */ +#include "int_sqroot.h" + +#include "givens.h" /* Linear Algebra - Givens Function */ +#include "int_givens.h" + +#include "householder.h" /* Linear Algebra - Householder function */ +#include "int_householder.h" + +#include "fullrf.h" /* Linear Algebra - Full rank factoziation */ +#include "int_fullrf.h" + +#include "rowcomp.h" /* Linear Algebra - row compression, range */ +#include "int_rowcomp.h" + + +#include "qr.h" /* Linear Algebra - QR decomposition */ +#include "int_qr.h" /*Functions related to opencv*/ /*#include "cvcore.hpp" diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar index e68463f..665fdd3 100644 Binary files a/jar/scilab_en_US_help.jar and b/jar/scilab_en_US_help.jar differ diff --git a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci index 325f4d5..8387bb1 100644 --- a/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci +++ b/macros/ToolInitialization/INIT_FillSCI2LibCDirs.sci @@ -7756,6 +7756,315 @@ PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file', INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + + +//------------------------------------ +//---- Class SQROOT --------------------- +//------------------------------------ +ClassName = 'SQROOT'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); + +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); + +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('d2'+ArgSeparator+'d2',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'sqroot'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + + + +//------------------------------------ +//---- Class GIVENS --------------------- +//------------------------------------ +ClassName = 'GIVENS'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); + +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''2''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''2''',ClassFileName,'file','y'); + +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 2',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''2''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''2''',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= ''2''',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= ''1''',ClassFileName,'file','y'); + + +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''2''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''2''',ClassFileName,'file','y'); + +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 2',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= ''2''',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''2''',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= ''2''',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= ''1''',ClassFileName,'file','y'); + + +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('d2'+ArgSeparator+'d2',ClassFileName,'file','y'); +PrintStringInfo('d2'+ArgSeparator+'d2d2',ClassFileName,'file','y'); +PrintStringInfo('d0d0'+ArgSeparator+'d2',ClassFileName,'file','y'); +PrintStringInfo('d0d0'+ArgSeparator+'d2d2',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'givens'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + + + +//------------------------------------ +//---- Class HOUSEHOLDER--------------------- +//------------------------------------ +ClassName = 'HOUSEHOLDER'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); + +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 1',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= ''1''',ClassFileName,'file','y'); + +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('d2'+ArgSeparator+'d2',ClassFileName,'file','y'); +PrintStringInfo('d2d2'+ArgSeparator+'d2',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'householder'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + + +//------------------------------------ +//---- Class FULLRF--------------------- +//------------------------------------ +ClassName = 'FULLRF'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); + +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 3',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(2)= ''1''',ClassFileName,'file','y'); + + +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 3',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); + + +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('d2'+ArgSeparator+'d2d2d0',ClassFileName,'file','y'); +PrintStringInfo('d2d0'+ArgSeparator+'d2d2d0',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'fullrf'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + + +//------------------------------------ +//---- Class ROWCOMP --------------------- +//------------------------------------ +ClassName = 'ROWCOMP'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); + +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 2',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= ''1''',ClassFileName,'file','y'); + +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 2',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= ''1''',ClassFileName,'file','y'); + +PrintStringInfo('NIN= 3',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 2',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= ''1''',ClassFileName,'file','y'); + +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('d2'+ArgSeparator+'d2d0',ClassFileName,'file','y'); +PrintStringInfo('d2g2'+ArgSeparator+'d2d0',ClassFileName,'file','y'); +PrintStringInfo('d2g2d0'+ArgSeparator+'d2d0',ClassFileName,'file','y'); + +// --- Annotation Function And Function List Function. --- +FunctionName = 'rowcomp'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + + +//------------------------------------ +//---- Class QR--------------------- +//------------------------------------ +ClassName = 'QR'; + +// --- Class Annotation. --- +PrintStringInfo(' Adding Class: '+ClassName+'.',GeneralReport,'file','y'); +ClassFileName = fullfile(SCI2CLibCAnnClsDir,ClassName+ExtensionCAnnCls); + +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 2',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); + +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 3',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(1)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); + +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 2',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); + +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 3',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y');; +PrintStringInfo('OUT(3).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(1)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); + +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 4',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y');; +PrintStringInfo('OUT(3).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(2)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(4).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(4).SZ(1)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(4).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); + +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 4',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y');; +PrintStringInfo('OUT(3).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(2)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(4).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(4).SZ(1)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(4).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); + + +ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); +PrintStringInfo('d2'+ArgSeparator+'d2d2',ClassFileName,'file','y'); +PrintStringInfo('d2'+ArgSeparator+'d2d2d2',ClassFileName,'file','y'); +PrintStringInfo('d2g2'+ArgSeparator+'d2d2',ClassFileName,'file','y'); +PrintStringInfo('d2g2'+ArgSeparator+'d2d2d2',ClassFileName,'file','y'); +PrintStringInfo('d2d0'+ArgSeparator+'d2d2d0d2',ClassFileName,'file','y'); +PrintStringInfo('d2'+ArgSeparator+'d2d2d0d2',ClassFileName,'file','y'); + + + +// --- Annotation Function And Function List Function. --- +FunctionName = 'qr'; +PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file','y'); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); +INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + + + //------------------------------------ //---- Class svd --------------------- //------------------------------------ @@ -7789,8 +8098,8 @@ PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(1)',ClassFileName,'file','y'); PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); -PrintStringInfo('OUT(2).SZ(1)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); -PrintStringInfo('OUT(2).SZ(2)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); PrintStringInfo('OUT(3).TP= IN(1).TP',ClassFileName,'file','y'); PrintStringInfo('OUT(3).SZ(1)= IN(1).SZ(2)',ClassFileName,'file','y'); PrintStringInfo('OUT(3).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); @@ -7819,12 +8128,42 @@ PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(1)',ClassFileName,'file','y'); PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); -PrintStringInfo('OUT(2).SZ(1)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); -PrintStringInfo('OUT(2).SZ(2)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); PrintStringInfo('OUT(3).TP= IN(1).TP',ClassFileName,'file','y'); PrintStringInfo('OUT(3).SZ(1)= IN(1).SZ(2)',ClassFileName,'file','y'); PrintStringInfo('OUT(3).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('NIN= 1',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 4',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(1)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(4).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(4).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(4).SZ(2)= ''1''',ClassFileName,'file','y'); + +PrintStringInfo('NIN= 2',ClassFileName,'file','y'); +PrintStringInfo('NOUT= 4',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); +PrintStringInfo('OUT(2).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).TP= IN(1).TP',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(1)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(3).SZ(2)= IN(1).SZ(2)',ClassFileName,'file','y'); +PrintStringInfo('OUT(4).TP= ''d''',ClassFileName,'file','y'); +PrintStringInfo('OUT(4).SZ(1)= ''1''',ClassFileName,'file','y'); +PrintStringInfo('OUT(4).SZ(2)= ''1''',ClassFileName,'file','y'); + ClassFileName = fullfile(SCI2CLibCFLClsDir,ClassName+ExtensionCFuncListCls); PrintStringInfo('d2'+ArgSeparator+'d2',ClassFileName,'file','y'); PrintStringInfo('d2g2'+ArgSeparator+'d2d2d2',ClassFileName,'file','y'); @@ -7832,6 +8171,8 @@ PrintStringInfo('d2'+ArgSeparator+'d2d2d2',ClassFileName,'file','y'); PrintStringInfo('z2'+ArgSeparator+'z2',ClassFileName,'file','y'); PrintStringInfo('z2g2'+ArgSeparator+'z2z2z2',ClassFileName,'file','y'); PrintStringInfo('z2'+ArgSeparator+'z2z2z2',ClassFileName,'file','y'); +PrintStringInfo('d2'+ArgSeparator+'d2d2d2d0',ClassFileName,'file','y'); +PrintStringInfo('d2d0'+ArgSeparator+'d2d2d2d0',ClassFileName,'file','y'); // --- Annotation Function And Function List Function. --- FunctionName = 'svd'; @@ -7875,7 +8216,6 @@ INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,E INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); - //------------------------------------ //---- Class SVA --------------------- //------------------------------------ @@ -7901,7 +8241,7 @@ PrintStringInfo('NIN= 2',ClassFileName,'file','y'); PrintStringInfo('NOUT= 3',ClassFileName,'file','y'); PrintStringInfo('OUT(1).TP= IN(1).TP',ClassFileName,'file','y'); PrintStringInfo('OUT(1).SZ(1)= IN(1).SZ(1)',ClassFileName,'file','y'); -PrintStringInfo('OUT(1).SZ(2)= FA_SZ_U_SVA(IN(1),IN(2).VAL)',ClassFileName,'file','y'); +PrintStringInfo('OUT(1).SZ(2)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); PrintStringInfo('OUT(2).TP= IN(1).TP',ClassFileName,'file','y'); PrintStringInfo('OUT(2).SZ(1)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); PrintStringInfo('OUT(2).SZ(2)= FA_MIN(IN(1).SZ(1),IN(1).SZ(2))',ClassFileName,'file','y'); @@ -7919,6 +8259,7 @@ PrintStringInfo(' Adding Function: '+FunctionName+'.',GeneralReport,'file', INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCAnnFunDir,ClassName,GeneralReport,ExtensionCAnnFun); INIT_GenAnnFLFunctions(FunctionName,SCI2CLibCFLFunDir,ClassName,GeneralReport,ExtensionCFuncListFun); + //------------------------------------ //---- Class balanc ------------------ //------------------------------------ diff --git a/macros/findDeps/getAllHeaders.sci b/macros/findDeps/getAllHeaders.sci index 0435976..a09c0b3 100644 --- a/macros/findDeps/getAllHeaders.sci +++ b/macros/findDeps/getAllHeaders.sci @@ -60,7 +60,6 @@ function allHeaders = getAllHeaders(SharedInfo) "src/c/matrixOperations/includes/logm.h" "src/c/matrixOperations/includes/ones.h" "src/c/matrixOperations/includes/matrixSquaredMagnitude.h" - "src/c/linearAlgebra/includes/spec.h" "src/c/matrixOperations/includes/matrixTranspose.h" "src/c/matrixOperations/includes/determ.h" "src/c/matrixOperations/includes/matrixMultiplication.h" @@ -220,14 +219,19 @@ function allHeaders = getAllHeaders(SharedInfo) "src/c/CACSD/includes/lqr.h" "src/c/CACSD/includes/lqe.h" "src/c/CACSD/includes/obscont.h" - "src/c/linearAlgebra/includes/sva.h" - "src/c/linearAlgebra/includes/svd.h" "src/c/linearAlgebra/includes/schur.h" "src/c/linearAlgebra/includes/balanc.h" "src/c/linearAlgebra/includes/svd.h" - "src/c/linearAlgebra/includes/hess.h" - "src/c/linearAlgebra/includes/sva.h" - "src/c/linearAlgebra/includes/rcond.h"]; + "src/c/linearAlgebra/includes/hess.h" + "src/c/linearAlgebra/includes/sva.h" + "src/c/linearAlgebra/includes/sqroot.h" + "src/c/linearAlgebra/includes/givens.h" + "src/c/linearAlgebra/includes/householder.h" + "src/c/linearAlgebra/includes/fullrf.h" + "src/c/linearAlgebra/includes/rowcomp.h" + "src/c/linearAlgebra/includes/rcond.h" + "src/c/linearAlgebra/includes/qr.h" + "src/c/linearAlgebra/includes/spec.h"]; //Header files required for "Arduino" output diff --git a/macros/findDeps/getAllInterfaces.sci b/macros/findDeps/getAllInterfaces.sci index e629779..6020822 100644 --- a/macros/findDeps/getAllInterfaces.sci +++ b/macros/findDeps/getAllInterfaces.sci @@ -32,7 +32,6 @@ function allInterfaces = getAllInterfaces(SharedInfo) "src/c/type/int_real.h" "src/c/matrixOperations/interfaces/int_vmagn.h" "src/c/matrixOperations/interfaces/int_ones.h" - "src/c/linearAlgebra/interfaces/int_spec.h" "src/c/matrixOperations/interfaces/int_cat.h" "src/c/matrixOperations/interfaces/int_zeros.h" "src/c/matrixOperations/interfaces/int_OpBackSlash.h" @@ -215,13 +214,18 @@ function allInterfaces = getAllInterfaces(SharedInfo) "src/c/CACSD/interfaces/int_lqr.h" "src/c/CACSD/interfaces/int_lqe.h" "src/c/CACSD/interfaces/int_obscont.h" - "src/c/linearAlgebra/interfaces/int_sva.h" - "src/c/linearAlgebra/interfaces/int_svd.h" + "src/c/linearAlgebra/interfaces/int_spec.h" "src/c/linearAlgebra/interfaces/int_schur.h" "src/c/linearAlgebra/interfaces/int_balanc.h" "src/c/linearAlgebra/interfaces/int_svd.h" + "src/c/linearAlgebra/interfaces/int_sqroot.h" "src/c/linearAlgebra/interfaces/int_hess.h" - "src/c/linearAlgebra/interfaces/int_sva.h" + "src/c/linearAlgebra/interfaces/int_sva.h" + "src/c/linearAlgebra/interfaces/int_givens.h" + "src/c/linearAlgebra/interfaces/int_householder.h" + "src/c/linearAlgebra/interfaces/int_fullrf.h" + "src/c/linearAlgebra/interfaces/int_rowcomp.h" + "src/c/linearAlgebra/interfaces/int_qr.h"; "src/c/linearAlgebra/interfaces/int_rcond.h"]; diff --git a/macros/findDeps/getAllSources.sci b/macros/findDeps/getAllSources.sci index 0891aef..502c599 100644 --- a/macros/findDeps/getAllSources.sci +++ b/macros/findDeps/getAllSources.sci @@ -155,18 +155,10 @@ function allSources = getAllSources(SharedInfo) "src/c/matrixOperations/powm/spowma.c" "src/c/matrixOperations/powm/zpowma.c" "src/c/matrixOperations/powm/cpowma.c" - "src/c/linearAlgebra/spec/cspeca.c" - "src/c/linearAlgebra/spec/dspeca.c" - "src/c/linearAlgebra/spec/sspeca.c" - "src/c/linearAlgebra/spec/zspeca.c" "src/c/matrixOperations/transpose/ztransposea.c" "src/c/matrixOperations/transpose/stransposea.c" "src/c/matrixOperations/transpose/ctransposea.c" "src/c/matrixOperations/transpose/dtransposea.c" - "src/c/linearAlgebra/spec2/zspec2a.c" - "src/c/linearAlgebra/spec2/sspec2a.c" - "src/c/linearAlgebra/spec2/dspec2a.c" - "src/c/linearAlgebra/spec2/cspec2a.c" "src/c/matrixOperations/trace/stracea.c" "src/c/matrixOperations/trace/dtracea.c" "src/c/matrixOperations/trace/ctracea.c" @@ -1263,16 +1255,28 @@ function allSources = getAllSources(SharedInfo) "src/c/CACSD/lqr/dlqra.c" "src/c/CACSD/lqe/dlqea.c" "src/c/CACSD/obscont/dobsconta.c" - "src/c/linearAlgebra/sva/dsvaa.c" - "src/c/linearAlgebra/svd/dsvda.c" + "src/c/linearAlgebra/spec2/zspec2a.c" + "src/c/linearAlgebra/spec2/sspec2a.c" + "src/c/linearAlgebra/spec2/dspec2a.c" + "src/c/linearAlgebra/spec2/cspec2a.c" + "src/c/linearAlgebra/spec/cspeca.c" + "src/c/linearAlgebra/spec/dspeca.c" + "src/c/linearAlgebra/spec/sspeca.c" + "src/c/linearAlgebra/spec/zspeca.c" "src/c/linearAlgebra/schur/dschura.c" "src/c/linearAlgebra/schur/dgschura.c" "src/c/linearAlgebra/balanc/dbalanca.c" "src/c/linearAlgebra/svd/dsvda.c" "src/c/linearAlgebra/svd/zsvda.c" + "src/c/linearAlgebra/sqroot/dsqroota.c" "src/c/linearAlgebra/hess/dhessa.c" + "src/c/linearAlgebra/givens/dgivensa.c" + "src/c/linearAlgebra/householder/dhouseholdera.c" "src/c/linearAlgebra/sva/dsvaa.c" "src/c/linearAlgebra/spec/dspec1a.c" + "src/c/linearAlgebra/fullrf/dfullrfa.c" + "src/c/linearAlgebra/rowcomp/drowcompa.c" + "src/c/linearAlgebra/qr/dqra.c" "src/c/linearAlgebra/rcond/drconda.c"]; //Files to be inserted only if output format selected is 'Arduino'. diff --git a/tests/unit_tests/testLinearAlgebra/testsvd/testsvd.sci b/tests/unit_tests/testLinearAlgebra/testsvd/testsvd.sci new file mode 100644 index 0000000..9a3a50a --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testsvd/testsvd.sci @@ -0,0 +1,6 @@ +function testsvd() + disp(" ** SVD Function (Singular Value Decomposition)** ") + A = [1,2,3,11;4,5,6,12;7,8,9,13] // Matrix - A + [s = svd(A) // Calling Function Sequence + disp(s) +endfunction diff --git a/tests/unit_tests/testLinearAlgebra/testsvd/testsvdeconomy.sci b/tests/unit_tests/testLinearAlgebra/testsvd/testsvdeconomy.sci new file mode 100644 index 0000000..0459c79 --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testsvd/testsvdeconomy.sci @@ -0,0 +1,11 @@ +function testsvdeconomy() + disp(" ** SVD Function (Singular Value Decomposition)** ") + A = [1,2,3,11;4,5,6,12;7,8,9,13] // Matrix - A + [u,s,vt] = svd(A,'e') // Calling Function Sequence + disp("U Matrix") + disp(u) // A = U*sigma*Vt + disp("Sigma Matrix") + disp(s) + disp(" V transpose ") + disp(vt) +endfunction diff --git a/tests/unit_tests/testLinearAlgebra/testsvd/testsvdim.sci b/tests/unit_tests/testLinearAlgebra/testsvd/testsvdim.sci new file mode 100644 index 0000000..16633cc --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testsvd/testsvdim.sci @@ -0,0 +1,6 @@ +// Function double_complex - test data. +function svdim() + b = [ (5.91+5.69*%i),(3.15-4.08*%i),(4.89+4.20*%i),(7.09+2.72*%i);(1.89+3.27*%i),(4.10+6.70*%i),(7.78+4.06*%i),(4.57+2.07*%i);(3.28+3.84*%i),(-0.79+7.21*%i),(3.88+3.30*%i),(3.84+1.19*%i)] + s = svd(b) + disp(s) +endfunction diff --git a/tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci b/tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci new file mode 100644 index 0000000..108acde --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testsvd/testsvdrank.sci @@ -0,0 +1,13 @@ +function testsvdrank() + disp(" ** SVD Function (Singular Value Decomposition)** ") + A = [1,2,3,11;4,5,6,12;7,8,9,13] // Matrix - A + [u,s,vt,rk] = svd(A) // Calling Function Sequence + disp("U Matrix") + disp(u) // A = U*sigma*Vt + disp("Sigma Matrix") + disp(s) + disp(" V transpose ") + disp(vt) + disp("Rank") + disp(rk) +endfunction diff --git a/tests/unit_tests/testLinearAlgebra/testsvd/testsvdreal.sci b/tests/unit_tests/testLinearAlgebra/testsvd/testsvdreal.sci new file mode 100644 index 0000000..0e68e00 --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testsvd/testsvdreal.sci @@ -0,0 +1,11 @@ +function testsvdreal() + disp(" ** SVD Function (Singular Value Decomposition)** ") + A = [1,2,3,11;4,5,6,12;7,8,9,13] // Matrix - A + [u,s,vt] = svd(A) // Calling Function Sequence + disp("U Matrix") + disp(u) // A = U*sigma*Vt + disp("Sigma Matrix") + disp(s) + disp(" V transpose ") + disp(vt) +endfunction -- cgit From eecd667c2f6ad705cb56fa0c8718b4ab37ac92d5 Mon Sep 17 00:00:00 2001 From: Sandeep Gupta Date: Fri, 7 Jul 2017 01:57:31 +0530 Subject: SVA Function --- jar/scilab_en_US_help.jar | Bin 90519 -> 90519 bytes src/c/linearAlgebra/svd/zsvda.c | 1 + .../testLinearAlgebra/testsva/testsva.sci | 7 +++++++ .../testLinearAlgebra/testsva/testsvatol.sci | 9 +++++++++ 4 files changed, 17 insertions(+) create mode 100644 tests/unit_tests/testLinearAlgebra/testsva/testsva.sci create mode 100644 tests/unit_tests/testLinearAlgebra/testsva/testsvatol.sci diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar index 665fdd3..da5ed42 100644 Binary files a/jar/scilab_en_US_help.jar and b/jar/scilab_en_US_help.jar differ diff --git a/src/c/linearAlgebra/svd/zsvda.c b/src/c/linearAlgebra/svd/zsvda.c index 12a07aa..c75cc50 100644 --- a/src/c/linearAlgebra/svd/zsvda.c +++ b/src/c/linearAlgebra/svd/zsvda.c @@ -19,6 +19,7 @@ #include "matrixTranspose.h" #include "conj.h" +/* Lapack functions used . */ extern doubleComplex zgesvd_( char* , char* , int* , int* ,doubleComplex *,\ int* , double* ,doubleComplex* , int* ,doubleComplex* , int* ,\ doubleComplex* , int* , double* , int* ); diff --git a/tests/unit_tests/testLinearAlgebra/testsva/testsva.sci b/tests/unit_tests/testLinearAlgebra/testsva/testsva.sci new file mode 100644 index 0000000..c710723 --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testsva/testsva.sci @@ -0,0 +1,7 @@ +function testsva() + a = [1,2,3,4;5,6,7,8;9,10,11,12] + [u,s,v] = sva(a) + disp(u) + disp(s) + disp(v) +endfunction diff --git a/tests/unit_tests/testLinearAlgebra/testsva/testsvatol.sci b/tests/unit_tests/testLinearAlgebra/testsva/testsvatol.sci new file mode 100644 index 0000000..b199ec3 --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testsva/testsvatol.sci @@ -0,0 +1,9 @@ +// function Singular Value Approx. + +function testsvatol() + a = [1,2,3,4;5,6,7,8;9,10,11,12] + [u,s,v] = sva(a,1) + disp(u) + disp(s) + disp(v) +endfunction -- cgit From eaa5580ddae3d9d85720dce53796c4035793c2a6 Mon Sep 17 00:00:00 2001 From: Sandeep Gupta Date: Fri, 7 Jul 2017 02:14:24 +0530 Subject: HESS --- jar/scilab_en_US_help.jar | Bin 90519 -> 90519 bytes .../testLinearAlgebra/testhess/testhess.sci | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 tests/unit_tests/testLinearAlgebra/testhess/testhess.sci diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar index da5ed42..cf4ab6a 100644 Binary files a/jar/scilab_en_US_help.jar and b/jar/scilab_en_US_help.jar differ diff --git a/tests/unit_tests/testLinearAlgebra/testhess/testhess.sci b/tests/unit_tests/testLinearAlgebra/testhess/testhess.sci new file mode 100644 index 0000000..f991ae9 --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testhess/testhess.sci @@ -0,0 +1,5 @@ +function testhess() + a = [0,0,0,0;0,6,7,8;9,10,11,12;13,14,15,16]; + h = hess(a) + disp(h) +endfunction -- cgit From 3afee83ada15920249b2ff15fc7c5ee8970bb1cb Mon Sep 17 00:00:00 2001 From: Sandeep Gupta Date: Fri, 7 Jul 2017 02:30:25 +0530 Subject: SPEC Function --- jar/scilab_en_US_help.jar | Bin 90519 -> 90519 bytes src/c/string/disp/zdispa.c | 2 +- src/c/string/disp/zdisps.c | 2 +- .../testLinearAlgebra/testspec/testspec.sci | 9 +++++++++ 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 tests/unit_tests/testLinearAlgebra/testspec/testspec.sci diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar index cf4ab6a..459cfbb 100644 Binary files a/jar/scilab_en_US_help.jar and b/jar/scilab_en_US_help.jar differ diff --git a/src/c/string/disp/zdispa.c b/src/c/string/disp/zdispa.c index bc71de4..94b24e9 100644 --- a/src/c/string/disp/zdispa.c +++ b/src/c/string/disp/zdispa.c @@ -16,7 +16,7 @@ double zdispa (doubleComplex* in, int rows, int columns){ int i = 0,j = 0; for (i = 0; i < rows; ++i) { - for (j=0;j 90519 bytes src/c/linearAlgebra/sqroot/dsqroota.c | 2 +- .../testLinearAlgebra/testsqroot/testsqroot.sci | 5 +++++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar index 459cfbb..cef95e2 100644 Binary files a/jar/scilab_en_US_help.jar and b/jar/scilab_en_US_help.jar differ diff --git a/src/c/linearAlgebra/sqroot/dsqroota.c b/src/c/linearAlgebra/sqroot/dsqroota.c index a9062e6..1ba9726 100644 --- a/src/c/linearAlgebra/sqroot/dsqroota.c +++ b/src/c/linearAlgebra/sqroot/dsqroota.c @@ -99,7 +99,7 @@ void dsqroota(double *inp,int row,int col, double *out){ printf("\n"); }*/ /*sqrt of S*/ - printf("%d ",rk); + //printf("%d ",rk); for(i=0;i 90519 bytes .../testLinearAlgebra/testfullrf/testfullrf.sci | 7 +++++++ .../testLinearAlgebra/testgivens/testgivens.sci | 7 +++++++ .../testhouseholder/testhouseholder.sci | 6 ++++++ .../unit_tests/testLinearAlgebra/testqr/testQR.sci | 8 ++++++++ .../testLinearAlgebra/testrowcomp/testrcomp.sci | 6 ++++++ 6 files changed, 34 insertions(+) create mode 100644 tests/unit_tests/testLinearAlgebra/testfullrf/testfullrf.sci create mode 100644 tests/unit_tests/testLinearAlgebra/testgivens/testgivens.sci create mode 100644 tests/unit_tests/testLinearAlgebra/testhouseholder/testhouseholder.sci create mode 100644 tests/unit_tests/testLinearAlgebra/testqr/testQR.sci create mode 100644 tests/unit_tests/testLinearAlgebra/testrowcomp/testrcomp.sci diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar index cef95e2..19dfea3 100644 Binary files a/jar/scilab_en_US_help.jar and b/jar/scilab_en_US_help.jar differ diff --git a/tests/unit_tests/testLinearAlgebra/testfullrf/testfullrf.sci b/tests/unit_tests/testLinearAlgebra/testfullrf/testfullrf.sci new file mode 100644 index 0000000..49d3c7a --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testfullrf/testfullrf.sci @@ -0,0 +1,7 @@ +function testfullrf() + A = [1,2,3;4,5,6;7,8,9] + [Q,M,rk] = fullrf(A) + disp(Q) + disp(M) + disp(rk) +endfunction diff --git a/tests/unit_tests/testLinearAlgebra/testgivens/testgivens.sci b/tests/unit_tests/testLinearAlgebra/testgivens/testgivens.sci new file mode 100644 index 0000000..3ef0d28 --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testgivens/testgivens.sci @@ -0,0 +1,7 @@ +function testgivens() + a = [1] + b = [2] + [u,c] = givens(a,b) + disp(u) + disp(c) +endfunction diff --git a/tests/unit_tests/testLinearAlgebra/testhouseholder/testhouseholder.sci b/tests/unit_tests/testLinearAlgebra/testhouseholder/testhouseholder.sci new file mode 100644 index 0000000..30b4c20 --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testhouseholder/testhouseholder.sci @@ -0,0 +1,6 @@ +function testhouseholder() + A = [1;2;3;4;5] + B = [6;7;8;9;10] + u = householder(A,B) + disp(u) +endfunction diff --git a/tests/unit_tests/testLinearAlgebra/testqr/testQR.sci b/tests/unit_tests/testLinearAlgebra/testqr/testQR.sci new file mode 100644 index 0000000..292e1cb --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testqr/testQR.sci @@ -0,0 +1,8 @@ +function testQR() + A = [1,2,3;4,5,6] + [u,a,rk,e] = qr(A); + disp(u) + disp(a) + disp(rk) + disp(e) +endfunction diff --git a/tests/unit_tests/testLinearAlgebra/testrowcomp/testrcomp.sci b/tests/unit_tests/testLinearAlgebra/testrowcomp/testrcomp.sci new file mode 100644 index 0000000..f8da948 --- /dev/null +++ b/tests/unit_tests/testLinearAlgebra/testrowcomp/testrcomp.sci @@ -0,0 +1,6 @@ +function testrcomp() + A = [1,2,3;4,5,6] + [u,rk] = rowcomp(A,"qr") + disp(u) + disp(rk) +endfunction -- cgit From 45bb4c81ba70d5f711d8a5ea207ac18b141d0cb2 Mon Sep 17 00:00:00 2001 From: Sandeep Gupta Date: Fri, 7 Jul 2017 11:21:16 +0530 Subject: Removed HTML and XML files --- Visual-Studio-settings/f2c.xml | 127 ---------- demos/SVD.dem.sce | 20 ++ help/en_US/AVRADCSetup.xml | 83 ------- help/en_US/AVRDigitalIn.xml | 79 ------- help/en_US/AVRDigitalOut.xml | 82 ------- help/en_US/AVRDigitalPortSetup.xml | 81 ------- help/en_US/AVRDigitalSetup.xml | 83 ------- help/en_US/AVRGetTimerValue.xml | 73 ------ help/en_US/AVRPWM0SetDuty.xml | 66 ------ help/en_US/AVRPWM0Setup.xml | 92 -------- help/en_US/AVRPWM1SetDuty.xml | 66 ------ help/en_US/AVRPWM1Setup.xml | 91 -------- help/en_US/AVRPWM2SetDuty.xml | 65 ------ help/en_US/AVRPWM2Setup.xml | 88 ------- help/en_US/AVRReadADC.xml | 71 ------ help/en_US/AVRSleep.xml | 56 ----- help/en_US/AVRTimerSetup.xml | 37 --- help/en_US/AVRUARTReceive.xml | 59 ----- help/en_US/AVRUARTSetup.xml | 90 ------- help/en_US/AVRUARTTransmit.xml | 59 ----- help/en_US/CV_AdaptiveThreshold.xml | 86 ------- help/en_US/CV_Blur.xml | 92 -------- help/en_US/CV_Canny.xml | 88 ------- help/en_US/CV_CornerHarris.xml | 93 -------- help/en_US/CV_CreateImage.xml | 76 ------ help/en_US/CV_CvtColor.xml | 81 ------- help/en_US/CV_Dilate.xml | 93 -------- help/en_US/CV_DistanceTransform.xml | 78 ------- help/en_US/CV_Erode.xml | 93 -------- help/en_US/CV_GaussianBlur.xml | 95 -------- help/en_US/CV_GetImgSize.xml | 75 ------ help/en_US/CV_LoadImage.xml | 83 ------- help/en_US/CV_MedianBlur.xml | 77 ------ help/en_US/CV_SaveImage.xml | 77 ------ help/en_US/CV_ShowImage.xml | 77 ------ help/en_US/CV_Threshold.xml | 81 ------- help/en_US/CV_WaitKey.xml | 76 ------ help/en_US/master_help.xml | 91 -------- help/en_US/scilab_en_US_help/AVRADCSetup.html | 88 ------- help/en_US/scilab_en_US_help/AVRDigitalIn.html | 88 ------- help/en_US/scilab_en_US_help/AVRDigitalOut.html | 91 -------- .../scilab_en_US_help/AVRDigitalPortSetup.html | 89 ------- help/en_US/scilab_en_US_help/AVRDigitalSetup.html | 91 -------- help/en_US/scilab_en_US_help/AVRGetTimerValue.html | 83 ------- help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html | 80 ------- help/en_US/scilab_en_US_help/AVRPWM0Setup.html | 98 -------- help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html | 83 ------- help/en_US/scilab_en_US_help/AVRPWM1Setup.html | 100 -------- help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html | 81 ------- help/en_US/scilab_en_US_help/AVRPWM2Setup.html | 97 -------- help/en_US/scilab_en_US_help/AVRReadADC.html | 84 ------- help/en_US/scilab_en_US_help/AVRSleep.html | 75 ------ help/en_US/scilab_en_US_help/AVRTimerSetup.html | 66 ------ help/en_US/scilab_en_US_help/AVRUARTReceive.html | 77 ------ help/en_US/scilab_en_US_help/AVRUARTSetup.html | 96 -------- help/en_US/scilab_en_US_help/AVRUARTTransmit.html | 77 ------ .../scilab_en_US_help/CV_AdaptiveThreshold.html | 94 -------- help/en_US/scilab_en_US_help/CV_Blur.html | 96 -------- help/en_US/scilab_en_US_help/CV_Canny.html | 95 -------- help/en_US/scilab_en_US_help/CV_CornerHarris.html | 98 -------- help/en_US/scilab_en_US_help/CV_CreateImage.html | 85 ------- help/en_US/scilab_en_US_help/CV_CvtColor.html | 90 ------- help/en_US/scilab_en_US_help/CV_Dilate.html | 99 -------- .../scilab_en_US_help/CV_DistanceTransform.html | 87 ------- help/en_US/scilab_en_US_help/CV_Erode.html | 99 -------- help/en_US/scilab_en_US_help/CV_GaussianBlur.html | 98 -------- help/en_US/scilab_en_US_help/CV_GetImgSize.html | 84 ------- help/en_US/scilab_en_US_help/CV_LoadImage.html | 88 ------- help/en_US/scilab_en_US_help/CV_MedianBlur.html | 86 ------- help/en_US/scilab_en_US_help/CV_SaveImage.html | 86 ------- help/en_US/scilab_en_US_help/CV_ShowImage.html | 86 ------- help/en_US/scilab_en_US_help/CV_Threshold.html | 90 ------- help/en_US/scilab_en_US_help/CV_WaitKey.html | 83 ------- help/en_US/scilab_en_US_help/index.html | 259 --------------------- help/en_US/scilab_en_US_help/jhelpidx.xml | 3 - help/en_US/scilab_en_US_help/jhelptoc.xml | 43 ---- .../section_0da8c7f3adca54f0475553087384b7a7.html | 259 --------------------- .../section_35ee3b19a97c75b084122c05ac0777c6.html | 259 --------------------- .../section_473a2b9e79723ff76a7f243f85d2b6b8.html | 259 --------------------- .../section_4d177ceb9ae128b1850140a7901a140a.html | 259 --------------------- .../section_c4a64b600f61b91c1ebf30f1b892cb10.html | 259 --------------------- jar/scilab_en_US_help.jar | Bin 90519 -> 90519 bytes 82 files changed, 20 insertions(+), 7648 deletions(-) delete mode 100644 Visual-Studio-settings/f2c.xml create mode 100644 demos/SVD.dem.sce delete mode 100644 help/en_US/AVRADCSetup.xml delete mode 100644 help/en_US/AVRDigitalIn.xml delete mode 100644 help/en_US/AVRDigitalOut.xml delete mode 100644 help/en_US/AVRDigitalPortSetup.xml delete mode 100644 help/en_US/AVRDigitalSetup.xml delete mode 100644 help/en_US/AVRGetTimerValue.xml delete mode 100644 help/en_US/AVRPWM0SetDuty.xml delete mode 100644 help/en_US/AVRPWM0Setup.xml delete mode 100644 help/en_US/AVRPWM1SetDuty.xml delete mode 100644 help/en_US/AVRPWM1Setup.xml delete mode 100644 help/en_US/AVRPWM2SetDuty.xml delete mode 100644 help/en_US/AVRPWM2Setup.xml delete mode 100644 help/en_US/AVRReadADC.xml delete mode 100644 help/en_US/AVRSleep.xml delete mode 100644 help/en_US/AVRTimerSetup.xml delete mode 100644 help/en_US/AVRUARTReceive.xml delete mode 100644 help/en_US/AVRUARTSetup.xml delete mode 100644 help/en_US/AVRUARTTransmit.xml delete mode 100644 help/en_US/CV_AdaptiveThreshold.xml delete mode 100644 help/en_US/CV_Blur.xml delete mode 100644 help/en_US/CV_Canny.xml delete mode 100644 help/en_US/CV_CornerHarris.xml delete mode 100644 help/en_US/CV_CreateImage.xml delete mode 100644 help/en_US/CV_CvtColor.xml delete mode 100644 help/en_US/CV_Dilate.xml delete mode 100644 help/en_US/CV_DistanceTransform.xml delete mode 100644 help/en_US/CV_Erode.xml delete mode 100644 help/en_US/CV_GaussianBlur.xml delete mode 100644 help/en_US/CV_GetImgSize.xml delete mode 100644 help/en_US/CV_LoadImage.xml delete mode 100644 help/en_US/CV_MedianBlur.xml delete mode 100644 help/en_US/CV_SaveImage.xml delete mode 100644 help/en_US/CV_ShowImage.xml delete mode 100644 help/en_US/CV_Threshold.xml delete mode 100644 help/en_US/CV_WaitKey.xml delete mode 100644 help/en_US/master_help.xml delete mode 100644 help/en_US/scilab_en_US_help/AVRADCSetup.html delete mode 100644 help/en_US/scilab_en_US_help/AVRDigitalIn.html delete mode 100644 help/en_US/scilab_en_US_help/AVRDigitalOut.html delete mode 100644 help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html delete mode 100644 help/en_US/scilab_en_US_help/AVRDigitalSetup.html delete mode 100644 help/en_US/scilab_en_US_help/AVRGetTimerValue.html delete mode 100644 help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html delete mode 100644 help/en_US/scilab_en_US_help/AVRPWM0Setup.html delete mode 100644 help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html delete mode 100644 help/en_US/scilab_en_US_help/AVRPWM1Setup.html delete mode 100644 help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html delete mode 100644 help/en_US/scilab_en_US_help/AVRPWM2Setup.html delete mode 100644 help/en_US/scilab_en_US_help/AVRReadADC.html delete mode 100644 help/en_US/scilab_en_US_help/AVRSleep.html delete mode 100644 help/en_US/scilab_en_US_help/AVRTimerSetup.html delete mode 100644 help/en_US/scilab_en_US_help/AVRUARTReceive.html delete mode 100644 help/en_US/scilab_en_US_help/AVRUARTSetup.html delete mode 100644 help/en_US/scilab_en_US_help/AVRUARTTransmit.html delete mode 100644 help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html delete mode 100644 help/en_US/scilab_en_US_help/CV_Blur.html delete mode 100644 help/en_US/scilab_en_US_help/CV_Canny.html delete mode 100644 help/en_US/scilab_en_US_help/CV_CornerHarris.html delete mode 100644 help/en_US/scilab_en_US_help/CV_CreateImage.html delete mode 100644 help/en_US/scilab_en_US_help/CV_CvtColor.html delete mode 100644 help/en_US/scilab_en_US_help/CV_Dilate.html delete mode 100644 help/en_US/scilab_en_US_help/CV_DistanceTransform.html delete mode 100644 help/en_US/scilab_en_US_help/CV_Erode.html delete mode 100644 help/en_US/scilab_en_US_help/CV_GaussianBlur.html delete mode 100644 help/en_US/scilab_en_US_help/CV_GetImgSize.html delete mode 100644 help/en_US/scilab_en_US_help/CV_LoadImage.html delete mode 100644 help/en_US/scilab_en_US_help/CV_MedianBlur.html delete mode 100644 help/en_US/scilab_en_US_help/CV_SaveImage.html delete mode 100644 help/en_US/scilab_en_US_help/CV_ShowImage.html delete mode 100644 help/en_US/scilab_en_US_help/CV_Threshold.html delete mode 100644 help/en_US/scilab_en_US_help/CV_WaitKey.html delete mode 100644 help/en_US/scilab_en_US_help/index.html delete mode 100644 help/en_US/scilab_en_US_help/jhelpidx.xml delete mode 100644 help/en_US/scilab_en_US_help/jhelptoc.xml delete mode 100644 help/en_US/scilab_en_US_help/section_0da8c7f3adca54f0475553087384b7a7.html delete mode 100644 help/en_US/scilab_en_US_help/section_35ee3b19a97c75b084122c05ac0777c6.html delete mode 100644 help/en_US/scilab_en_US_help/section_473a2b9e79723ff76a7f243f85d2b6b8.html delete mode 100644 help/en_US/scilab_en_US_help/section_4d177ceb9ae128b1850140a7901a140a.html delete mode 100644 help/en_US/scilab_en_US_help/section_c4a64b600f61b91c1ebf30f1b892cb10.html diff --git a/Visual-Studio-settings/f2c.xml b/Visual-Studio-settings/f2c.xml deleted file mode 100644 index b4df883..0000000 --- a/Visual-Studio-settings/f2c.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - - - - General - - - - - Command Line - - - - - - - - - - - - Execute Before - - - Specifies the targets for the build customization to run before. - - - - - - - - - - - Execute After - - - Specifies the targets for the build customization to run after. - - - - - - - - - - - - - - Additional Options - - - Additional Options - - - - - - - \ No newline at end of file diff --git a/demos/SVD.dem.sce b/demos/SVD.dem.sce new file mode 100644 index 0000000..d466964 --- /dev/null +++ b/demos/SVD.dem.sce @@ -0,0 +1,20 @@ +// Copyright (C) 2017 - IIT Bombay - FOSSEE +// This file must be used under the terms of the CeCILL. +// This source file is licensed as described in the file COPYING, which +// you should have received as part of this distribution. The terms +// are also available at +// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt +// Author: Sandeep Gupta +// Organization: FOSSEE, IIT Bombay +// Email: toolbox@scilab.in + + +lines(0); + +global SCI2CHOME + +scilab2c(SCI2CHOME+"tests/unit_tests/testLinearAlgebra/testsvd/testsvd.sci", TMPDIR); + +editor(TMPDIR+"/main.c"); + + diff --git a/help/en_US/AVRADCSetup.xml b/help/en_US/AVRADCSetup.xml deleted file mode 100644 index a0abf03..0000000 --- a/help/en_US/AVRADCSetup.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - AVRADCSetup - Function to initialise ADC of AVR - - - - - Calling Sequence - - AVRADCSetup(uint8 prescaler, uint8 adc_ref) - - - - - - Parameters - - prescaler: - prescaler to be used for generating ADC clock (0-7) - adc_ref : - reference voltage to be used for ADC conversion - - - - - Description - -This function initialises ADc of AVR with given parameters. 'prescaler' is needed for deciding ADC clock. ADC clock should be between 50KHz and 200KHz and it given as (MCU clock/2^prescaler). Select appropriate prescaler depending on MCU clock. 'adc_ref' selects one of the available reference voltage sources available. - - -The adc_ref can take the following values- - -0 -> Voltage on VREF pin -1 -> Voltage on AVCC pin -2 -> Internal 2.56 reference voltage - - - -This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR. - - - - - - - Examples - - - - - See also - - AVRReadADC - - - - - Authors - - Siddhesh Wani - Ashish Kamble - - - diff --git a/help/en_US/AVRDigitalIn.xml b/help/en_US/AVRDigitalIn.xml deleted file mode 100644 index ef87407..0000000 --- a/help/en_US/AVRDigitalIn.xml +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - AVRDigitalIn - Function to get state (high\low) of a digital input pin on AVR - - - - - Calling Sequence - - state=AVRDigitalIn(port,pin) - - - - - - Parameters - - port : - port of microcontroller to be used - pin : - pin of port (mentioned above) to be used - - - - - Description - -Each AVR microcontroller has pins which can be configured as digital -inputs. These are normally divided among some 'ports' (group of pins). -User has to select one of these port and which pin of that port as -digital input. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - - - - - - Examples - - - - - See also - - AVRDigitalSetup - - - - - Authors - - Siddhesh Wani - Ashish Kamble - - - diff --git a/help/en_US/AVRDigitalOut.xml b/help/en_US/AVRDigitalOut.xml deleted file mode 100644 index 0ce8197..0000000 --- a/help/en_US/AVRDigitalOut.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - AVRDigitalOut - Function to change state (high\low) of a digital output pin on AVR - - - - - Calling Sequence - - AVRDigitalOut(port,pin,state) - - - - - - Parameters - - port : - port of microcontroller to be used - pin : - pin of port (mentioned above) to be used - state : - state to be outputed on pin (HIGH\LOW) - - - - - Description - -Each AVR microcontroller has pins which can be configured as digital -outputs. These are normally divided among some 'ports' (group of pins). -User has to select one of these port and which pin of that port as -digital output. Also, desired output state must be specified as -'HIGH' or 'LOW'. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - - - - - - Examples - - - - - See also - - AVRDigitalIn - - - - - Authors - - Siddhesh Wani - Ashish Kamble - - - diff --git a/help/en_US/AVRDigitalPortSetup.xml b/help/en_US/AVRDigitalPortSetup.xml deleted file mode 100644 index 8b7b15d..0000000 --- a/help/en_US/AVRDigitalPortSetup.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - AVRDigitalPortSetup - Function to decide direction of port on AVR - - - - - Calling Sequence - - AVRDigitalPortSetup(port,direction) - - - - - - Parameters - - port : - port of microcontroller to be used(1 for PORTA, 2 for PORTB,...) - direction : - direction to be set for pin (0 for INPUT, 1 for OUTPUT) - - - - - Description - -Each AVR microcontroller has pins which can be configured as digital -outputs/inputs. These are normally divided among some 'ports' (group of pins). -User has to select one of these port and which pin of that port to be -used as digital output/input. Also, desired direction must be specified as -'INPUT' or 'OUTPUT'. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - - - - - - Examples - - - - - See also - - AVRDigitalOut - - - - - Authors - - Siddhesh Wani - Ashish Kamble - - - diff --git a/help/en_US/AVRDigitalSetup.xml b/help/en_US/AVRDigitalSetup.xml deleted file mode 100644 index a228573..0000000 --- a/help/en_US/AVRDigitalSetup.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - AVRDigitalSetup - Function to decide direction of a digital pin on AVR - - - - - Calling Sequence - - AVRDigitalSetup(port,pin,direction) - - - - - - Parameters - - port : - port of microcontroller to be used - pin : - pin of port (mentioned above) to be used - direction : - direction to be set for pin (INPUT\OUTPUT) - - - - - Description - -Each AVR microcontroller has pins which can be configured as digital -outputs/inputs. These are normally divided among some 'ports' (group of pins). -User has to select one of these port and which pin of that port to be -used as digital output/input. Also, desired direction must be specified as -'INPUT' or 'OUTPUT'. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - - - - - - Examples - - - - - See also - - AVRDigitalOut - - - - - Authors - - Siddhesh Wani - Ashish Kamble - - - diff --git a/help/en_US/AVRGetTimerValue.xml b/help/en_US/AVRGetTimerValue.xml deleted file mode 100644 index f639c60..0000000 --- a/help/en_US/AVRGetTimerValue.xml +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - AVRGetTimerValue - Function to get timer count - - - - - Parameters - - timer : - timer whose current count is to be returned - - - - - Description - -This function returns the count value of a desired timer.By knowing the count value certain interrupt action can be taken. - - -Timer can take the following values - -0 -> for timer0 -1 -> for timer1 -2 -> for timer2 - - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - - - - - - Examples - - - - - See also - - AVRTimerSetup - - - - - Authors - - Ashish Kamble - - - diff --git a/help/en_US/AVRPWM0SetDuty.xml b/help/en_US/AVRPWM0SetDuty.xml deleted file mode 100644 index a3f2681..0000000 --- a/help/en_US/AVRPWM0SetDuty.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - AVRPWM0SetDuty - Function to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin. - - - - - Parameters - - duty : - It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active. - - - - - Description - -Each Micro controller has PWM output pins which can generate varying voltage -from 0V-5V.In this function by varying the duty cycle, varying voltage can be produced. - - -This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR. - - - - - - - Examples - - - - - See also - - AVRPWM0Setup - - - - - Authors - - Ashish Kamble - - - diff --git a/help/en_US/AVRPWM0Setup.xml b/help/en_US/AVRPWM0Setup.xml deleted file mode 100644 index f72f258..0000000 --- a/help/en_US/AVRPWM0Setup.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - AVRPWM0Setup - Function to Setup OC0 pin for required PWM mode - - - - - Parameters - - waveform_mode: - integer, from 0 to 2 - output_mode: - integer, from 0 to 1 (or 2) depending on the waveform_mode - - - - - Description - -Every Micro controller has PWM pins which can generate varying voltages -from 0V-5V.This function helps to use OC0 pin to produce required -output waveform by setting the waveform mode and otput mode. - - -waveform_mode can take values- - -0 -> for Phase correct PWM Mode -1 -> for Fast PWM Mode -2 -> for CTC Mode - - - -output_mode can take values- - -For Phase correct PWM Mode: -0 for Clear OC0 on compare match when up-counting. Set OC0 on compare match when down-counting. -1 for Set OC0 on compare match when up-counting. Clear OC0 on compare match when down-counting. -For Fast PWM Mode: -0 for non-inverted output i.e Clear OC0 on compare match, set OC0 at BOTTOM. -1 for inverted output i.e Set OC0 on compare match, clear OC0 at BOTTOM. -For CTC Mode: -0 to Clear OC0 on compare match -1 to Set OC0 on compare match -2 to toggle OC0 on compare match - - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - - - - - - Examples - - - - - See also - - AVRPWM0SetDuty - - - - - Authors - - Ashish Kamble - - - diff --git a/help/en_US/AVRPWM1SetDuty.xml b/help/en_US/AVRPWM1SetDuty.xml deleted file mode 100644 index 83230ea..0000000 --- a/help/en_US/AVRPWM1SetDuty.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - AVRPWM1SetDuty - Function to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin. - - - - - Parameters - - ouput_pin: - integer, 0 (for OC1A) or 1 (for OC1B) - duty: - It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active. - Top_Value: - It holds an integer value from 0 to 65535.This value sets the Top value of the counter TCNT1 i.e ICR.(for more info refer datasheet) - - - - - Description - -Each Micro controller has PWM output pins which can generate varying voltage -from 0V-5V.This function Sets the duty cycle of output PWM signal.Also this function -decides the Top Vale of TCNT1 and the output pin to output PWM signal. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - -Example -AVRPWM1SetDuty(0,50,40000); //This function will produce PWM signal of 50% duty cycle on OC1A pin and TCNT1 will reset at 40000 instead at 65535. - - - - - See also - - AVRPWM1Setup - - - - - Authors - - Ashish Kamble - - - diff --git a/help/en_US/AVRPWM1Setup.xml b/help/en_US/AVRPWM1Setup.xml deleted file mode 100644 index 1498413..0000000 --- a/help/en_US/AVRPWM1Setup.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - AVRPWM1Setup - Function to Setup OC1A or OC1B pin for required PWM mode - - - - - Parameters - - waveform_mode: - integer, from 0 to 2 - output_mode: - integer, from 0 to 1 (or 2) depending on the waveform_mode - output_pin: - 0 (for OC1A) or 1 for (OC1B) - - - - - Description - -Every Micro controller has PWM pins which can generate varying voltages -from 0V-5V.This function helps to use OC1A or OC1B pin to produces required -output waveform by setting the waveform mode and otput mode. - - -waveform_mode can take values- - -0 -> for Phase correct PWM Mode -1 -> for Fast PWM Mode -2 -> for CTC Mode - - - -output_mode can take values- - -For Phase correct PWM Mode: -0 for Clear OC1A or OC1B on compare match when up-counting. Set OC1A or OC1B on compare match when down-counting. -1 for Set OC1A or OC1B on compare match when up-counting. Clear OC1A or OC1B on compare match when down-counting. -For Fast PWM Mode: -0 for non-inverted output i.e Clear OC1A or OC1B on compare match, set OC1A or OC1B at BOTTOM. -1 for inverted output i.e Set OC1A or OC1B on compare match, clear OC1A or OC1B at BOTTOM. -For CTC Mode: -0 to Clear OC1A or OC1B on compare match -1 to Set OC1A or OC1B on compare match -2 to toggle OC1A or OC1B on compare match - - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - -Example -AVRPWM1Setup(2,0,0); //This function will select CTC mode and will clear OC1A or OC1B -on compare match.Also as defined the output will be produced at -0C1A pin. - - - - - See also - - AVRPWM1SetDuty - - - - - Authors - - Ashish Kamble - - - diff --git a/help/en_US/AVRPWM2SetDuty.xml b/help/en_US/AVRPWM2SetDuty.xml deleted file mode 100644 index d44f0f7..0000000 --- a/help/en_US/AVRPWM2SetDuty.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - AVRPWM2SetDuty - Function to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin. - - - - - Parameters - - duty : - It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active. - - - - - Description - -Each Micro controller has PWM output pins which can generate varying voltage -from 0V-5V.In this function by varying the duty cycle, varying voltage can be -produced. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - -Example -AVRPWM2SetDuty(50); //Produces 2.5V at OC2 pin -AVRPWM2SetDuty(0); //Produces 0V at OC2 pin - - - - - - - See also - - AVRPWM2Setup - - - - - Authors - - Ashish Kamble - - - diff --git a/help/en_US/AVRPWM2Setup.xml b/help/en_US/AVRPWM2Setup.xml deleted file mode 100644 index fe80252..0000000 --- a/help/en_US/AVRPWM2Setup.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - AVRPWM2Setup - Function to Setup OC2 pin for required PWM mode - - - - - Parameters - - waveform_mode: - integer, from 0 to 2 - output_mode: - integer, from 0 to 1 (or 2) depending on the waveform_mode - - - - - Description - -Every Micro controller has PWM pins which can generate varying voltages -from 0V-5V.This function helps to use OC2 pin to produces required -output waveform by setting the waveform mode and otput mode. - - -waveform_mode can take values- - -0 -> for Phase correct PWM Mode -1 -> for Fast PWM Mode -2 -> for CTC Mode - - - -output_mode can take values- - -For Phase correct PWM Mode: -0 for Clear OC2 on compare match when up-counting. Set OC2 on compare match when down-counting. -1 for Set OC2 on compare match when up-counting. Clear OC2 on compare match when down-counting. -For Fast PWM Mode: -0 for non-inverted output i.e Clear OC2 on compare match, set OC2 at BOTTOM. -1 for inverted output i.e Set OC2 on compare match, clear OC2 at BOTTOM. -For CTC Mode: -0 to Clear OC2 on compare match -1 to Set OC2 on compare match -2 to toggle OC2 on compare match - - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - -Example -AVRPWM2Setup(2,0); //This function will select CTC waveform mode and will clear OC2 on -compare match - - - - - See also - - AVRPWM2SetDuty - - - - - Authors - - Ashish Kamble - - - diff --git a/help/en_US/AVRReadADC.xml b/help/en_US/AVRReadADC.xml deleted file mode 100644 index abdcad9..0000000 --- a/help/en_US/AVRReadADC.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - AVRReadADC - Function to get voltage on analog pin on AVR - - - - - Calling Sequence - - u8AVRReadADCs(channel) - - - - - - Parameters - - channel : - Select which channel is to be read. Values from 0-7 select one of the pins ADC0-ADC7. For other possible channel values refer datasheet - - - - - Description - -This function returns digital value for present on adc pins. 'channel' -selects which of the ADC0-ADC7 is to be used for reading analog value. -Apart from reading just ADC0-ADC7 other it can also read differential -voltages between some pins. For channel values for those options, please -refer datasheet. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - - - - - - Examples - - - - - Authors - - Siddhesh Wani - Ashish Kamble - - - diff --git a/help/en_US/AVRSleep.xml b/help/en_US/AVRSleep.xml deleted file mode 100644 index 3ece53b..0000000 --- a/help/en_US/AVRSleep.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - AVRSleep - Function to pause the execution for the given time. - - - - - Description - -This function causes the execution to stop for the given amount of time. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - - - - - - Examples - - - - - See also - - - - - - Authors - - Jorawar Singh - - - diff --git a/help/en_US/AVRTimerSetup.xml b/help/en_US/AVRTimerSetup.xml deleted file mode 100644 index 420e676..0000000 --- a/help/en_US/AVRTimerSetup.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - AVRTimerSetup - Function to setup Timers in ATmega16 - - - - - See also - - AVRGetTimerValues - - - - - Authors - - Ashish Kamble - - - diff --git a/help/en_US/AVRUARTReceive.xml b/help/en_US/AVRUARTReceive.xml deleted file mode 100644 index 84f9510..0000000 --- a/help/en_US/AVRUARTReceive.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - AVRUARTReceive - Function to Receive Char value send to ATmega16 using UART or USART. - - - - - Description - -This function Receives Char as 8 bit value.This value is stored in UDR at receiving -end. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - - - - - - Examples - - - - - See also - - AVRUARTSetup - AVRUARTTransmit - - - - - Authors - - Ashish Kamble - - - diff --git a/help/en_US/AVRUARTSetup.xml b/help/en_US/AVRUARTSetup.xml deleted file mode 100644 index 043e265..0000000 --- a/help/en_US/AVRUARTSetup.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - - - - - AVRUARTSetup - Function to Setup Serial Communication i.e UART or USART in ATmega16. - - - - - Parameters - - mode : - integer, from 0 to 2 - baudrate : - Enter one of the following available baudrates (2400 , 4800 , 9600 , 14400 , 19200 , 28800 , 38400 , 57600 , 768000 , 115200 , 230400 , 250000 , 1000000) - stopbits : - integer, (0 for one stopbit) or (1 for two stopbits) - parity : - integer, from 0 to 2 - - - - - Description - -This function Setup the UART or USART for Serial Communicaion between ATmega16 -and different micro controllers or between ATmega16 and Computer. - - -mode can take values: - -0 for Asynchronous Normal mode -1 for Asynchronous Double Speed mode -2 for Synchronous mode - - - -parity can take values: - -0 for parity disabled -1 for even parity -2 for odd parity - - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - - - - - - Examples - - - - - See also - - AVRUARTTransmit - AVRUARTReceive - - - - - Authors - - Ashish Kamble - - - diff --git a/help/en_US/AVRUARTTransmit.xml b/help/en_US/AVRUARTTransmit.xml deleted file mode 100644 index e30e374..0000000 --- a/help/en_US/AVRUARTTransmit.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - AVRUARTTransmit - Function to Transmit data using UART or USART. - - - - - Description - -This function Tranmits data over UART or USART.The data to be transmitted can -be a Char , String , Unsigned Int, Signed Int. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR. - - - - - - - Examples - - - - - See also - - AVRUARTSetup - AVRUARTReceive - - - - - Authors - - Ashish Kamble - - - diff --git a/help/en_US/CV_AdaptiveThreshold.xml b/help/en_US/CV_AdaptiveThreshold.xml deleted file mode 100644 index 1483442..0000000 --- a/help/en_US/CV_AdaptiveThreshold.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - CV_AdaptiveThreshold - function to adaptively threshold input image - - - - - Calling Sequence - - dst = CV_AdaptiveThreshold(srcimg,max_value,adaptive_method,thresh_type,blk_size,c) - - - - - - Parameters - - src : - Source 8-bit single-channel image. - max_value : - Non-zero value assigned to the pixels for which the condition is satisfied. See the details below. - adaptive_method : - Adaptive thresholding algorithm to use, ADAPTIVE_THRESH_MEAN_C or ADAPTIVE_THRESH_GAUSSIAN_C . - thresh_type : - Thresholding type that must be either THRESH_BINARY or THRESH_BINARY_INV . - blockSize : - Size of a pixel neighborhood that is used to calculate a threshold value for the pixel: 3, 5, 7, and so on. - C : - Constant subtracted from the mean or weighted mean.Normally, it is positive but may be zero or negative as well. - - - - - Description - -This function can be used for adaptively threshold given image - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_CreateImage - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_Blur.xml b/help/en_US/CV_Blur.xml deleted file mode 100644 index 228b310..0000000 --- a/help/en_US/CV_Blur.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - CV_Blur - function to blur image using normalised box filter - - - - - Calling Sequence - - dst = CV_Blur(srcimg,ksize_width,ksize_height,anchor_x,anchor_y,border_type) - - - - - - Parameters - - srcimg : - Source image. - ksize_width, ksize_height : - blurring kernel size. - anchor_x, anchor_y : - x,y coordinates of anchor point - border_type : - border mode used to extrapolate pixels outside of the image. - - - - - Description - -This function can be used for blurring image using normalised box -filter. Image can be of any depth and have any no of channels. - - -border_type can be : - -BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh -BORDER_REFLECT: fedcba|abcdefgh|hgfedcb -BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba -BORDER_WRAP: cdefgh|abcdefgh|abcdefg -BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii - - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_Threshold, CV_CvtColor - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_Canny.xml b/help/en_US/CV_Canny.xml deleted file mode 100644 index daf7f55..0000000 --- a/help/en_US/CV_Canny.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - CV_Canny - Finds edges in image using Canny algorithm - - - - - Calling Sequence - - edges = CV_Canny(srcimg,threhold1,threshold2,aperture_size,L2gradient) - - - - - - Parameters - - srcimg : - single-channel 8-bit input image. - threshold1 : - first threshold for the hysteresis procedure. - threshold2 : - second threshold for the hysteresis procedure. - aperture_size : - aperture size for the Sobel() operator. - L2gradient : - a flag, indicating whether a more accurate - - - - - Description - -This function can be used for finding edes in single channel 8 bit -image. 'aperture_size' and 'L2gradient' are optionals. By default, -aperture_size is 3 and L2gradient is false. - - -For L2gradient: L_2 norm =sqrt{(dI/dx)^2 + (dI/dy)^2} should be used to calculate the image gradient magnitude (L2gradient=1 ), or whether the default L_1 norm =|dI/dx|+|dI/dy| is enough (L2gradient=0). - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_CvtColor - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_CornerHarris.xml b/help/en_US/CV_CornerHarris.xml deleted file mode 100644 index e9b9426..0000000 --- a/help/en_US/CV_CornerHarris.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - CV_CornerHarris - Finds edges in image using Harris algorithm - - - - - Calling Sequence - - edges = CV_CornerHarris(srcimg,blocksize,ksize,k,border_type) - - - - - - Parameters - - srcimg: - Input single-channel 8-bit or floating-point image. - blockSize: - Neighborhood size - ksize: - Aperture parameter for the Sobel() operator. - k: - Harris detector free parameter. - border_type: - border mode used to extrapolate pixels outside of the image. - - - - - Description - -The function runs the Harris edge detector on the image. For each pixel (x, y) it calculates a 2 * 2 gradient covariance matrix M(x,y) over a blockSize * blockSize neighborhood. Then, it computes the following characteristic: dst(x,y) = det(M(x,y)) - k .tr(M(x,y))^2. Corners in the image can be found as the local maxima of this response map. - - -border_type can be : - -BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh -BORDER_REFLECT: fedcba|abcdefgh|hgfedcb -BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba -BORDER_WRAP: cdefgh|abcdefgh|abcdefg -BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii - - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_CvtColor - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_CreateImage.xml b/help/en_US/CV_CreateImage.xml deleted file mode 100644 index 45fde56..0000000 --- a/help/en_US/CV_CreateImage.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - CV_CreateImage - function to create an image object of given size and type - - - - - Calling Sequence - - CV_CreateImage(image_size,bit_depth,no_of_channels) - - - - - - Parameters - - image_size: - width and height of image - bit_depth: - Bit depth of image elements - no_of_channels: - no of channels per pixels - - - - - Description - -This function can be used to create opencv image object. For more info about bit depth and channels,please refer to OpenCV documentation - - -This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_LoadImage - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_CvtColor.xml b/help/en_US/CV_CvtColor.xml deleted file mode 100644 index f1f25e0..0000000 --- a/help/en_US/CV_CvtColor.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - CV_CvtColor - function to convert image from one colorspace to other colorspace - - - - - Calling Sequence - - CV_CvtColor(srcimg,code) - - - - - - Parameters - - srcimg: - source image to be converted - dstimg: - destination image in which to store converted image - code: - String specifying conversion type. Same as defined in OpenCV. for eg. 'CV_RGB2GRAY' for conversion from RGB image to grayscale image - dstCn: - no of channels in destination image (0 by default) - - - - - Description - -This function can be used for converting an image to other colorspace. -Refer OpenCV documentation for list of available conversions - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_CreateImage - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_Dilate.xml b/help/en_US/CV_Dilate.xml deleted file mode 100644 index d01b3ab..0000000 --- a/help/en_US/CV_Dilate.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - CV_Dilate - dilates an image by using a specific structuring element. - - - - - Calling Sequence - - cvtimg = CV_Dilate(srcimg,dilation_type,dilation_size,[iterations,border_type,border_value]) - - - - - Parameters - - src : - input image; the number of channels can be arbitrary, but the depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F. - dilation_type : - can be one of MORPH_RECT, MORPH_CROSS,MORPH_ELLIPSE - dilation_size : - size of kernel to be used for erosion. Must be odd - iterations : - number of times erosion is applied. - border_type : - pixel extrapolation method. - border_value : - border value in case of a constant border - - - - - Description - -This function can be used for eroding an image. Kernel used for erosion is decided by type and size. Size must always be odd. Anchor pint of kernel is always center of kernel. Input arguements 'iterations(1), border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not specified, default values as as mentioned in brackets. - - -border_type can be : - - BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh - BORDER_REFLECT: fedcba|abcdefgh|hgfedcb - BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba - BORDER_WRAP: cdefgh|abcdefgh|abcdefg - BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii - - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_Erode - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_DistanceTransform.xml b/help/en_US/CV_DistanceTransform.xml deleted file mode 100644 index 0792999..0000000 --- a/help/en_US/CV_DistanceTransform.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - CV_DistanceTransform - function to calculate distance to closest zero pixels for each pixel - - - - - Calling Sequence - - dst = CV_DistanceTransform(srcimg,distance_type,mask_size) - - - - - - Parameters - - srcimg : - Source 8-bit single-channel image. - distance_type : - Type of distance. It can be CV_DIST_L1, CV_DIST_L2 , or CV_DIST_C - mask_size : - Size of the distance transform mask - - - - - Description - -This function can be used to calculate distance to closest zero pixel for each pixel of the source image. Output is 32 bit floatingpoint, single channel image of the same size as that of source image. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_CreateImage CV_CvtColor - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_Erode.xml b/help/en_US/CV_Erode.xml deleted file mode 100644 index 103d489..0000000 --- a/help/en_US/CV_Erode.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - CV_Erode - Erodes an image by using a specific structuring element. - - - - - Calling Sequence - - cvtimg = CV_Erode(srcimg,erosion_type,erosion_size,[iterations,border_type,border_value]) - - - - - Parameters - - src : - input image; the number of channels can be arbitrary, but the depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F. - erosion_type : - can be one of : MORPH_RECT, MORPH_CROSS, MORPH_ELLIPSE - erosion_size : - size of kernel to be used for erosion. Must be odd - iterations : - number of times erosion is applied. - border_type : - pixel extrapolation method. - border_value : - border value in case of a constant border - - - - - Description - -This function can be used for eroding an image. Kernel used for erosion is decided by type and size. Size must always be odd. Anchor pint of kernel is always center of kernel. Input arguements 'iterations(1), border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not specified, default values as as mentioned in brackets. - - -border_type can be : - -BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh -BORDER_REFLECT: fedcba|abcdefgh|hgfedcb -BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba -BORDER_WRAP: cdefgh|abcdefgh|abcdefg -BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii - - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_Dilate - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_GaussianBlur.xml b/help/en_US/CV_GaussianBlur.xml deleted file mode 100644 index 88a8f33..0000000 --- a/help/en_US/CV_GaussianBlur.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - CV_GaussianBlur - function to blur image using gaussian filter - - - - - Calling Sequence - - cvtimg = CV_GaussianBlur(srcimg,ksize_width,ksize_height,sigma_x,sigma_y,border_type) - - - - - - Parameters - - srcimg : - Source image. - ksize_width, ksize_height : - blurring kernel size. must be odd. - sigmaX : - Gaussian kernel standard deviation in X direction. - sigmaY : - Gaussian kernel standard deviation in Y direction; - border_type : - border mode used to extrapolate pixels outside of the image. - - - - - Description - -This function can be used for blurring image using gaussian filter. Image can be of any depth and have any no of channels. - - -For sigmaX and sigmaY : if sigmaY is zero, it is set to be equal to sigmaX, if both sigmas are zeros, they are computed from ksize.width and ksize.height , respectively. - - -border_type can be : - -BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh -BORDER_REFLECT: fedcba|abcdefgh|hgfedcb -BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba -BORDER_WRAP: cdefgh|abcdefgh|abcdefg -BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii - - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_Blur, CV_CvtColor - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_GetImgSize.xml b/help/en_US/CV_GetImgSize.xml deleted file mode 100644 index 717c808..0000000 --- a/help/en_US/CV_GetImgSize.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - CV_GetImgSize - function to get size of the image (width*height) - - - - - Calling Sequence - - CV_GetImgSize(img) - - - - - - Parameters - - img: - image whose size is to be returned - - - - - Description - -This function can be used for retriving size information of the image. -It returs an array with first image element as width and second as height - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_CreateImage - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_LoadImage.xml b/help/en_US/CV_LoadImage.xml deleted file mode 100644 index 70f55c8..0000000 --- a/help/en_US/CV_LoadImage.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - CV_LoadImage - function to load an image object from given filename - - - - - Calling Sequence - - CV_LoadImage(filename,loadtype) - - - - - - Parameters - - filename: - name of file to be opened - loadtype: - desired load method - - - - - Description - -This function can be used for loading a previously stored image - - -loadtype can take the following values: - - less than 0 -> image is loaded as is (with alpha channel) - 0 -> image is loaded as greyscale - greater than 0 -> 3 channel color image is loaded - - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_CreateImage - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_MedianBlur.xml b/help/en_US/CV_MedianBlur.xml deleted file mode 100644 index d10291c..0000000 --- a/help/en_US/CV_MedianBlur.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - CV_MedianBlur - function to blur image using median filter - - - - - Calling Sequence - - cvtimg = CV_MedianBlur(srcimg,ksize) - - - - - - Parameters - - srcimg : - input 1-, 3-, or 4-channel image; when ksize is 3 or 5, the image depth should be CV_8U, CV_16U, or CV_32F, for larger aperture sizes, it can only be CV_8U. - ksize_width : - aperture linear size; it must be odd and greater than 1, for example: 3, 5, 7 ... - - - - - Description - -This function can be used for blurring image using median -filter. Image can be of any depth and have any no of channels. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_Blur, CV_CvtColor - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_SaveImage.xml b/help/en_US/CV_SaveImage.xml deleted file mode 100644 index 9e73200..0000000 --- a/help/en_US/CV_SaveImage.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - CV_SaveImage - function to save an image object as a given filename - - - - - Calling Sequence - - CV_SaveImage(filename,img) - - - - - - Parameters - - filename: - name of file image to be saved as - img: - image to be saved - - - - - Description - -This function can be used for saving image. File format is detected -from file extension - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_CreateImage - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_ShowImage.xml b/help/en_US/CV_ShowImage.xml deleted file mode 100644 index e3f6e67..0000000 --- a/help/en_US/CV_ShowImage.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - CV_ShowImage - function to show an image - - - - - Calling Sequence - - CV_ShowImage(img) - CV_ShowImage(winname,img) - - - - - - Parameters - - winname: - name of window in which img is to be shown - img: - image to be shown already acquired (from file/camera) - - - - - Description - -This function can be used for showing images - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_LoadImage - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_Threshold.xml b/help/en_US/CV_Threshold.xml deleted file mode 100644 index 0de0c14..0000000 --- a/help/en_US/CV_Threshold.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - CV_Threshold - function to threshold input image - - - - - Calling Sequence - - dst = CV_Threshold(srcimg,code,threshold,max_value,thresh_type) - - - - - - Parameters - - srcimg: - source image to be converted - threshold: - threshold value - max_value: - maximum value to be used with THRESH_BINARY and THRESH_BINARY_INV - thresh_type: - Type for threshold. It can one of the following: THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, THRESH_TOZERO, THRESH_TOZERO_INV - - - - - Description - -This function can be used for converting an image to other colorspace. -Refer OpenCV documentation for list of available conversions - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_CreateImage - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/CV_WaitKey.xml b/help/en_US/CV_WaitKey.xml deleted file mode 100644 index 9b52707..0000000 --- a/help/en_US/CV_WaitKey.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - CV_WaitKey - function similar to cvWaitKey - - - - - Calling Sequence - - CV_WaitKey(delay) - - - - - - Parameters - - delay: - waiting delay, if 0 then wait till keypress - - - - - Description - -This function can be used for inseting some delay. This function must -follow CV_ShowImage to display image. - - -This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV - - - - - - - Examples - - - - - See also - - CV_ShowImage - - - - - Authors - - Siddhesh Wani - - - diff --git a/help/en_US/master_help.xml b/help/en_US/master_help.xml deleted file mode 100644 index 510d612..0000000 --- a/help/en_US/master_help.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -]> - - - Scilab 2 C Converter - - - -Scilab 2 C Converter -&a969c4bf3ff76c6dbdd7a6eb15c4cf8b8; -&a61577f2ad2b96f5f6ef31ed4f502adac; -&a93de34cc1bd35ab17a5d2a67508b130d; -&afdaaf1b81defd47586a6a492d35ccdeb; -&a229da4c62bfefaaf208ba0663e379330; -&a4e849b73f086ca69d8463a180c16c992; -&ac9bd044d7605b6d617d256f0668b3afc; -&a090be0c9e8be2cd6b8c57871beb4fc3d; -&af3c35bc95353ca542fd4a677b2663131; -&acbcd013adae46e50d67fee762630204e; -&a53e48ab27782d23a67a7be130ce62259; -&a8f23e3a933460c57e2ab6e01fbd1d667; -&ae3fe5366d006ca6785c7709823c71556; -&ab74ce6c82babbbb40dbe26715cfca5d3; -&aa64990800c28122c482dd319547391aa; -&a2738d2846526a18037cb32e79f8cefdf; -&a34419ca4646ad3a26ff0ca55802e73fd; -&ab5b43d849303dfe36a8379faebcf6bc3; -&ae67ce1d8c6e5201a29c2ad5c54946fa7; -&a98a9e84b7cfa85cb4bc0068372817ccd; -&a86b06e8d5703d43dfd1f6643dce2dfd1; -&a3d175885ebe2342ea05d4a85d182b0e6; -&aa6e0fdfe0b37c2c3a46339e8432c4c79; -&a9f4e63526fad3aa155a1c13a5f5f5d39; -&a9e3c72a9a98ee7102e0f5569f0eb68a8; -&af346b4cabba75a87dd1dff0cb353a010; -&af75fd29bc07899c47a5d4652c5ff90cf; -&afaccd5d59cd1d82aa9b082d5ad7fb3b9; -&af70075199d801146358fac7bc9ed7cc9; -&a7a9f31e1ff3b08649c5eb7745749a048; -&a244f909027976b6a2489e3f5dcb8d649; -&a5c84bba38033623256fd9bc03d73e0a2; -&ad4cc4994a54278801cce7aacbe78634f; -&a36783601e19e66e889596f7e23887358; -&abfdf3313455964ebfe3c896cd65a1e32; - - diff --git a/help/en_US/scilab_en_US_help/AVRADCSetup.html b/help/en_US/scilab_en_US_help/AVRADCSetup.html deleted file mode 100644 index 5fdf9e4..0000000 --- a/help/en_US/scilab_en_US_help/AVRADCSetup.html +++ /dev/null @@ -1,88 +0,0 @@ - - - AVRADCSetup - - - - - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRADCSetup - -

      -

      AVRADCSetup

      -

      Function to initialise ADC of AVR

      - - -

      Calling Sequence

      -
      AVRADCSetup(uint8 prescaler, uint8 adc_ref)
      - -

      Parameters

      -
      prescaler: -

      prescaler to be used for generating ADC clock (0-7)

      -
      adc_ref : -

      reference voltage to be used for ADC conversion

      - -

      Description

      -

      This function initialises ADc of AVR with given parameters. 'prescaler' is needed for deciding ADC clock. ADC clock should be between 50KHz and 200KHz and it given as (MCU clock/2^prescaler). Select appropriate prescaler depending on MCU clock. 'adc_ref' selects one of the available reference voltage sources available.

      -

      The adc_ref can take the following values- -

      • 0 -> Voltage on VREF pin

      • -
      • 1 -> Voltage on AVCC pin

      • -
      • 2 -> Internal 2.56 reference voltage

      -

      This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR.

      -

      - -

      Examples

      -
      AVRADCSetup(128,0)
      - -

      See also

      -
      - -

      Authors

      -
      • Siddhesh Wani
      • -
      • Ashish Kamble
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/AVRDigitalIn.html b/help/en_US/scilab_en_US_help/AVRDigitalIn.html deleted file mode 100644 index 572108e..0000000 --- a/help/en_US/scilab_en_US_help/AVRDigitalIn.html +++ /dev/null @@ -1,88 +0,0 @@ - - - AVRDigitalIn - - - -
      - - - - -
      - << AVRADCSetup - - - Scilab 2 C Converter - - - AVRDigitalOut >> - -
      -
      -
      - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalIn - -

      -

      AVRDigitalIn

      -

      Function to get state (high\low) of a digital input pin on AVR

      - - -

      Calling Sequence

      -
      state=AVRDigitalIn(port,pin)
      - -

      Parameters

      -
      port : -

      port of microcontroller to be used

      -
      pin : -

      pin of port (mentioned above) to be used

      - -

      Description

      -

      Each AVR microcontroller has pins which can be configured as digital -inputs. These are normally divided among some 'ports' (group of pins). -User has to select one of these port and which pin of that port as -digital input.

      -

      This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

      -

      - -

      Examples

      -
      pinA0 = AVRDigitalIn(1,0)   //To read state on pin 0 of port A
      - -

      See also

      -
      - -

      Authors

      -
      • Siddhesh Wani
      • -
      • Ashish Kamble
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/AVRDigitalOut.html b/help/en_US/scilab_en_US_help/AVRDigitalOut.html deleted file mode 100644 index 4b08fa4..0000000 --- a/help/en_US/scilab_en_US_help/AVRDigitalOut.html +++ /dev/null @@ -1,91 +0,0 @@ - - - AVRDigitalOut - - - - - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalOut - -

      -

      AVRDigitalOut

      -

      Function to change state (high\low) of a digital output pin on AVR

      - - -

      Calling Sequence

      -
      AVRDigitalOut(port,pin,state)
      - -

      Parameters

      -
      port : -

      port of microcontroller to be used

      -
      pin : -

      pin of port (mentioned above) to be used

      -
      state : -

      state to be outputed on pin (HIGH\LOW)

      - -

      Description

      -

      Each AVR microcontroller has pins which can be configured as digital -outputs. These are normally divided among some 'ports' (group of pins). -User has to select one of these port and which pin of that port as -digital output. Also, desired output state must be specified as -'HIGH' or 'LOW'.

      -

      This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

      -

      - -

      Examples

      -
      AVRDigitalOut('A',0,HIGH)
      - -

      See also

      -
      - -

      Authors

      -
      • Siddhesh Wani
      • -
      • Ashish Kamble
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html b/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html deleted file mode 100644 index 226b9b2..0000000 --- a/help/en_US/scilab_en_US_help/AVRDigitalPortSetup.html +++ /dev/null @@ -1,89 +0,0 @@ - - - AVRDigitalPortSetup - - - -
      - - - - -
      - << AVRDigitalOut - - - Scilab 2 C Converter - - - AVRDigitalSetup >> - -
      -
      -
      - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalPortSetup - -

      -

      AVRDigitalPortSetup

      -

      Function to decide direction of port on AVR

      - - -

      Calling Sequence

      -
      AVRDigitalPortSetup(port,direction)
      - -

      Parameters

      -
      port : -

      port of microcontroller to be used(1 for PORTA, 2 for PORTB,...)

      -
      direction : -

      direction to be set for pin (0 for INPUT, 1 for OUTPUT)

      - -

      Description

      -

      Each AVR microcontroller has pins which can be configured as digital -outputs/inputs. These are normally divided among some 'ports' (group of pins). -User has to select one of these port and which pin of that port to be -used as digital output/input. Also, desired direction must be specified as -'INPUT' or 'OUTPUT'.

      -

      This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

      -

      - -

      Examples

      -
      AVRDigitalPortSetup(1,0); //This function will make PortA as input port
      - -

      See also

      -
      - -

      Authors

      -
      • Siddhesh Wani
      • -
      • Ashish Kamble
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/AVRDigitalSetup.html b/help/en_US/scilab_en_US_help/AVRDigitalSetup.html deleted file mode 100644 index 74ee114..0000000 --- a/help/en_US/scilab_en_US_help/AVRDigitalSetup.html +++ /dev/null @@ -1,91 +0,0 @@ - - - AVRDigitalSetup - - - - - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRDigitalSetup - -

      -

      AVRDigitalSetup

      -

      Function to decide direction of a digital pin on AVR

      - - -

      Calling Sequence

      -
      AVRDigitalSetup(port,pin,direction)
      - -

      Parameters

      -
      port : -

      port of microcontroller to be used

      -
      pin : -

      pin of port (mentioned above) to be used

      -
      direction : -

      direction to be set for pin (INPUT\OUTPUT)

      - -

      Description

      -

      Each AVR microcontroller has pins which can be configured as digital -outputs/inputs. These are normally divided among some 'ports' (group of pins). -User has to select one of these port and which pin of that port to be -used as digital output/input. Also, desired direction must be specified as -'INPUT' or 'OUTPUT'.

      -

      This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

      -

      - -

      Examples

      -
      AVRDigitalSetup('A',0,OUTPUT)
      - -

      See also

      -
      - -

      Authors

      -
      • Siddhesh Wani
      • -
      • Ashish Kamble
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/AVRGetTimerValue.html b/help/en_US/scilab_en_US_help/AVRGetTimerValue.html deleted file mode 100644 index 2144461..0000000 --- a/help/en_US/scilab_en_US_help/AVRGetTimerValue.html +++ /dev/null @@ -1,83 +0,0 @@ - - - AVRGetTimerValue - - - - - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRGetTimerValue - -

      -

      AVRGetTimerValue

      -

      Function to get timer count

      - - -

      Parameters

      -
      timer : -

      timer whose current count is to be returned

      - -

      Description

      -

      This function returns the count value of a desired timer.By knowing the count value certain interrupt action can be taken.

      -

      Timer can take the following values -

      • 0 -> for timer0

      • -
      • 1 -> for timer1

      • -
      • 2 -> for timer2

      -

      This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

      -

      - -

      Examples

      -
      AVRGetTimerValue(0);   //returns present count of the TCNT0 counter
      - -

      See also

      -
      - -

      Authors

      -
      • Ashish Kamble
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html b/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html deleted file mode 100644 index 118fc5b..0000000 --- a/help/en_US/scilab_en_US_help/AVRPWM0SetDuty.html +++ /dev/null @@ -1,80 +0,0 @@ - - - AVRPWM0SetDuty - - - -
      - - - - -
      - << AVRGetTimerValue - - - Scilab 2 C Converter - - - AVRPWM0Setup >> - -
      -
      -
      - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM0SetDuty - -

      -

      AVRPWM0SetDuty

      -

      Function to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.

      - - -

      Parameters

      -
      duty : -

      It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active.

      - -

      Description

      -

      Each Micro controller has PWM output pins which can generate varying voltage -from 0V-5V.In this function by varying the duty cycle, varying voltage can be produced.

      -

      This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for AVR.

      -

      - -

      Examples

      -
      AVRPWM0SetDuty(50); //Produces 2.5V at OC0 pin
      -AVRPWM0SetDuty(0); //Produces 0V at OC0 pin
      - -

      See also

      -
      - -

      Authors

      -
      • Ashish Kamble
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/AVRPWM0Setup.html b/help/en_US/scilab_en_US_help/AVRPWM0Setup.html deleted file mode 100644 index 05a9503..0000000 --- a/help/en_US/scilab_en_US_help/AVRPWM0Setup.html +++ /dev/null @@ -1,98 +0,0 @@ - - - AVRPWM0Setup - - - -
      - - - - -
      - << AVRPWM0SetDuty - - - Scilab 2 C Converter - - - AVRPWM1SetDuty >> - -
      -
      -
      - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM0Setup - -

      -

      AVRPWM0Setup

      -

      Function to Setup OC0 pin for required PWM mode

      - - -

      Parameters

      -
      waveform_mode: -

      integer, from 0 to 2

      -
      output_mode: -

      integer, from 0 to 1 (or 2) depending on the waveform_mode

      - -

      Description

      -

      Every Micro controller has PWM pins which can generate varying voltages -from 0V-5V.This function helps to use OC0 pin to produce required -output waveform by setting the waveform mode and otput mode.

      -

      waveform_mode can take values- -

      • 0 -> for Phase correct PWM Mode

      • -
      • 1 -> for Fast PWM Mode

      • -
      • 2 -> for CTC Mode

      -

      output_mode can take values- -

        For Phase correct PWM Mode: -
      • 0 for Clear OC0 on compare match when up-counting. Set OC0 on compare match when down-counting.

      • -
      • 1 for Set OC0 on compare match when up-counting. Clear OC0 on compare match when down-counting.

      • -For Fast PWM Mode: -
      • 0 for non-inverted output i.e Clear OC0 on compare match, set OC0 at BOTTOM.

      • -
      • 1 for inverted output i.e Set OC0 on compare match, clear OC0 at BOTTOM.

      • -For CTC Mode: -
      • 0 to Clear OC0 on compare match

      • -
      • 1 to Set OC0 on compare match

      • -
      • 2 to toggle OC0 on compare match

      -

      This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

      -

      - -

      Examples

      -
      AVRPWM0Setup(2,0);     //This function will select CTC waveform mode and will clear OC0 on compare match
      - -

      See also

      -
      - -

      Authors

      -
      • Ashish Kamble
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html b/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html deleted file mode 100644 index 521d615..0000000 --- a/help/en_US/scilab_en_US_help/AVRPWM1SetDuty.html +++ /dev/null @@ -1,83 +0,0 @@ - - - AVRPWM1SetDuty - - - -
      - - - - -
      - << AVRPWM0Setup - - - Scilab 2 C Converter - - - AVRPWM1Setup >> - -
      -
      -
      - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM1SetDuty - -

      -

      AVRPWM1SetDuty

      -

      Function to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.

      - - -

      Parameters

      -
      ouput_pin: -

      integer, 0 (for OC1A) or 1 (for OC1B)

      -
      duty: -

      It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active.

      -
      Top_Value: -

      It holds an integer value from 0 to 65535.This value sets the Top value of the counter TCNT1 i.e ICR.(for more info refer datasheet)

      - -

      Description

      -

      Each Micro controller has PWM output pins which can generate varying voltage -from 0V-5V.This function Sets the duty cycle of output PWM signal.Also this function -decides the Top Vale of TCNT1 and the output pin to output PWM signal.

      -

      This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

      -

      Example -AVRPWM1SetDuty(0,50,40000); //This function will produce PWM signal of 50% duty cycle on OC1A pin and TCNT1 will reset at 40000 instead at 65535.

      - -

      See also

      -
      - -

      Authors

      -
      • Ashish Kamble
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/AVRPWM1Setup.html b/help/en_US/scilab_en_US_help/AVRPWM1Setup.html deleted file mode 100644 index 5d5b0dc..0000000 --- a/help/en_US/scilab_en_US_help/AVRPWM1Setup.html +++ /dev/null @@ -1,100 +0,0 @@ - - - AVRPWM1Setup - - - -
      - - - - -
      - << AVRPWM1SetDuty - - - Scilab 2 C Converter - - - AVRPWM2SetDuty >> - -
      -
      -
      - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM1Setup - -

      -

      AVRPWM1Setup

      -

      Function to Setup OC1A or OC1B pin for required PWM mode

      - - -

      Parameters

      -
      waveform_mode: -

      integer, from 0 to 2

      -
      output_mode: -

      integer, from 0 to 1 (or 2) depending on the waveform_mode

      -
      output_pin: -

      0 (for OC1A) or 1 for (OC1B)

      - -

      Description

      -

      Every Micro controller has PWM pins which can generate varying voltages -from 0V-5V.This function helps to use OC1A or OC1B pin to produces required -output waveform by setting the waveform mode and otput mode.

      -

      waveform_mode can take values- -

      • 0 -> for Phase correct PWM Mode

      • -
      • 1 -> for Fast PWM Mode

      • -
      • 2 -> for CTC Mode

      -

      output_mode can take values- -

        For Phase correct PWM Mode: -
      • 0 for Clear OC1A or OC1B on compare match when up-counting. Set OC1A or OC1B on compare match when down-counting.

      • -
      • 1 for Set OC1A or OC1B on compare match when up-counting. Clear OC1A or OC1B on compare match when down-counting.

      • -For Fast PWM Mode: -
      • 0 for non-inverted output i.e Clear OC1A or OC1B on compare match, set OC1A or OC1B at BOTTOM.

      • -
      • 1 for inverted output i.e Set OC1A or OC1B on compare match, clear OC1A or OC1B at BOTTOM.

      • -For CTC Mode: -
      • 0 to Clear OC1A or OC1B on compare match

      • -
      • 1 to Set OC1A or OC1B on compare match

      • -
      • 2 to toggle OC1A or OC1B on compare match

      -

      This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

      -

      Example -AVRPWM1Setup(2,0,0); //This function will select CTC mode and will clear OC1A or OC1B -on compare match.Also as defined the output will be produced at -0C1A pin.

      - -

      See also

      -
      - -

      Authors

      -
      • Ashish Kamble
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html b/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html deleted file mode 100644 index 308ae80..0000000 --- a/help/en_US/scilab_en_US_help/AVRPWM2SetDuty.html +++ /dev/null @@ -1,81 +0,0 @@ - - - AVRPWM2SetDuty - - - -
      - - - - -
      - << AVRPWM1Setup - - - Scilab 2 C Converter - - - AVRPWM2Setup >> - -
      -
      -
      - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM2SetDuty - -

      -

      AVRPWM2SetDuty

      -

      Function to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.

      - - -

      Parameters

      -
      duty : -

      It holds an integer value from 0 to 100 which sets the percentage of time for which signal is active.

      - -

      Description

      -

      Each Micro controller has PWM output pins which can generate varying voltage -from 0V-5V.In this function by varying the duty cycle, varying voltage can be -produced.

      -

      This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

      -

      Example -AVRPWM2SetDuty(50); //Produces 2.5V at OC2 pin -AVRPWM2SetDuty(0); //Produces 0V at OC2 pin

      -

      - -

      See also

      -
      - -

      Authors

      -
      • Ashish Kamble
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/AVRPWM2Setup.html b/help/en_US/scilab_en_US_help/AVRPWM2Setup.html deleted file mode 100644 index c4fd5f9..0000000 --- a/help/en_US/scilab_en_US_help/AVRPWM2Setup.html +++ /dev/null @@ -1,97 +0,0 @@ - - - AVRPWM2Setup - - - -
      - - - - -
      - << AVRPWM2SetDuty - - - Scilab 2 C Converter - - - AVRReadADC >> - -
      -
      -
      - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRPWM2Setup - -

      -

      AVRPWM2Setup

      -

      Function to Setup OC2 pin for required PWM mode

      - - -

      Parameters

      -
      waveform_mode: -

      integer, from 0 to 2

      -
      output_mode: -

      integer, from 0 to 1 (or 2) depending on the waveform_mode

      - -

      Description

      -

      Every Micro controller has PWM pins which can generate varying voltages -from 0V-5V.This function helps to use OC2 pin to produces required -output waveform by setting the waveform mode and otput mode.

      -

      waveform_mode can take values- -

      • 0 -> for Phase correct PWM Mode

      • -
      • 1 -> for Fast PWM Mode

      • -
      • 2 -> for CTC Mode

      -

      output_mode can take values- -

        For Phase correct PWM Mode: -
      • 0 for Clear OC2 on compare match when up-counting. Set OC2 on compare match when down-counting.

      • -
      • 1 for Set OC2 on compare match when up-counting. Clear OC2 on compare match when down-counting.

      • -For Fast PWM Mode: -
      • 0 for non-inverted output i.e Clear OC2 on compare match, set OC2 at BOTTOM.

      • -
      • 1 for inverted output i.e Set OC2 on compare match, clear OC2 at BOTTOM.

      • -For CTC Mode: -
      • 0 to Clear OC2 on compare match

      • -
      • 1 to Set OC2 on compare match

      • -
      • 2 to toggle OC2 on compare match

      -

      This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

      -

      Example -AVRPWM2Setup(2,0); //This function will select CTC waveform mode and will clear OC2 on -compare match

      - -

      See also

      -
      - -

      Authors

      -
      • Ashish Kamble
      -
      - - - - diff --git a/help/en_US/scilab_en_US_help/AVRReadADC.html b/help/en_US/scilab_en_US_help/AVRReadADC.html deleted file mode 100644 index 51e72f1..0000000 --- a/help/en_US/scilab_en_US_help/AVRReadADC.html +++ /dev/null @@ -1,84 +0,0 @@ - - - AVRReadADC - - - -
      - - - - -
      - << AVRPWM2Setup - - - Scilab 2 C Converter - - - AVRSleep >> - -
      -
      -
      - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRReadADC - -

      -

      AVRReadADC

      -

      Function to get voltage on analog pin on AVR

      - - -

      Calling Sequence

      -
      u8AVRReadADCs(channel)
      - -

      Parameters

      -
      channel : -

      Select which channel is to be read. Values from 0-7 select one of the pins ADC0-ADC7. For other possible channel values refer datasheet

      - -

      Description

      -

      This function returns digital value for present on adc pins. 'channel' -selects which of the ADC0-ADC7 is to be used for reading analog value. -Apart from reading just ADC0-ADC7 other it can also read differential -voltages between some pins. For channel values for those options, please -refer datasheet.

      -

      This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

      -

      - -

      Examples

      -
      adc_result = u8AVRReadADC(0)   //Read ADC0
      - -

      Authors

      -
      • Siddhesh Wani
      • -
      • Ashish Kamble
      -
      - -
      - - - - - - -
      Report an issue
      - << AVRPWM2Setup - - - Scilab 2 C Converter - - - AVRSleep >> - -
      -
      -
      - - diff --git a/help/en_US/scilab_en_US_help/AVRSleep.html b/help/en_US/scilab_en_US_help/AVRSleep.html deleted file mode 100644 index c9c0166..0000000 --- a/help/en_US/scilab_en_US_help/AVRSleep.html +++ /dev/null @@ -1,75 +0,0 @@ - - - AVRSleep - - - -
      - - - - -
      - << AVRReadADC - - - Scilab 2 C Converter - - - AVRTimerSetup >> - -
      -
      -
      - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRSleep - -

      -

      AVRSleep

      -

      Function to pause the execution for the given time.

      - - -

      Description

      -

      This function causes the execution to stop for the given amount of time.

      -

      This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

      -

      - -

      Examples

      -
      AVRSleep(5000);
      - -

      See also

      -
        - -

        Authors

        -
        • Jorawar Singh
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/AVRTimerSetup.html b/help/en_US/scilab_en_US_help/AVRTimerSetup.html deleted file mode 100644 index 1d0c0e4..0000000 --- a/help/en_US/scilab_en_US_help/AVRTimerSetup.html +++ /dev/null @@ -1,66 +0,0 @@ - - - AVRTimerSetup - - - -
        - - - - -
        - << AVRSleep - - - Scilab 2 C Converter - - - AVRUARTReceive >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRTimerSetup - -

        -

        AVRTimerSetup

        -

        Function to setup Timers in ATmega16

        - - - - -

        Authors

        -
        • Ashish Kamble
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/AVRUARTReceive.html b/help/en_US/scilab_en_US_help/AVRUARTReceive.html deleted file mode 100644 index 2d9e5f5..0000000 --- a/help/en_US/scilab_en_US_help/AVRUARTReceive.html +++ /dev/null @@ -1,77 +0,0 @@ - - - AVRUARTReceive - - - -
        - - - - -
        - << AVRTimerSetup - - - Scilab 2 C Converter - - - AVRUARTSetup >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTReceive - -

        -

        AVRUARTReceive

        -

        Function to Receive Char value send to ATmega16 using UART or USART.

        - - -

        Description

        -

        This function Receives Char as 8 bit value.This value is stored in UDR at receiving -end.

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

        -

        - -

        Examples

        -
        state = AVRUARTReceive(); //This function will Receive char and return the entire value
        - - - -

        Authors

        -
        • Ashish Kamble
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/AVRUARTSetup.html b/help/en_US/scilab_en_US_help/AVRUARTSetup.html deleted file mode 100644 index a47a045..0000000 --- a/help/en_US/scilab_en_US_help/AVRUARTSetup.html +++ /dev/null @@ -1,96 +0,0 @@ - - - AVRUARTSetup - - - - - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTSetup - -

        -

        AVRUARTSetup

        -

        Function to Setup Serial Communication i.e UART or USART in ATmega16.

        - - -

        Parameters

        -
        mode : -

        integer, from 0 to 2

        -
        baudrate : -

        Enter one of the following available baudrates (2400 , 4800 , 9600 , 14400 , 19200 , 28800 , 38400 , 57600 , 768000 , 115200 , 230400 , 250000 , 1000000)

        -
        stopbits : -

        integer, (0 for one stopbit) or (1 for two stopbits)

        -
        parity : -

        integer, from 0 to 2

        - -

        Description

        -

        This function Setup the UART or USART for Serial Communicaion between ATmega16 -and different micro controllers or between ATmega16 and Computer.

        -

        mode can take values: -

        • 0 for Asynchronous Normal mode

        • -
        • 1 for Asynchronous Double Speed mode

        • -
        • 2 for Synchronous mode

        -

        parity can take values: -

        • 0 for parity disabled

        • -
        • 1 for even parity

        • -
        • 2 for odd parity

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

        -

        - -

        Examples

        -
        AVRUARTSetup(0,9600,0,0); //This function will enable UART Communication for ATmega16
        -with 9600 as baudrate,one stop bit and parity disabled
        - - - -

        Authors

        -
        • Ashish Kamble
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/AVRUARTTransmit.html b/help/en_US/scilab_en_US_help/AVRUARTTransmit.html deleted file mode 100644 index ef0ba96..0000000 --- a/help/en_US/scilab_en_US_help/AVRUARTTransmit.html +++ /dev/null @@ -1,77 +0,0 @@ - - - AVRUARTTransmit - - - - - - - - Scilab 2 C Converter >> Scilab 2 C Converter > AVRUARTTransmit - -

        -

        AVRUARTTransmit

        -

        Function to Transmit data using UART or USART.

        - - -

        Description

        -

        This function Tranmits data over UART or USART.The data to be transmitted can -be a Char , String , Unsigned Int, Signed Int.

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for AVR.

        -

        - -

        Examples

        -
        AVRUARTTransmit("This is example");  //This function will transmit the entered string.
        - - - -

        Authors

        -
        • Ashish Kamble
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html b/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html deleted file mode 100644 index fa1822a..0000000 --- a/help/en_US/scilab_en_US_help/CV_AdaptiveThreshold.html +++ /dev/null @@ -1,94 +0,0 @@ - - - CV_AdaptiveThreshold - - - -
        - - - - -
        - << AVRUARTTransmit - - - Scilab 2 C Converter - - - CV_Blur >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_AdaptiveThreshold - -

        -

        CV_AdaptiveThreshold

        -

        function to adaptively threshold input image

        - - -

        Calling Sequence

        -
        dst = CV_AdaptiveThreshold(srcimg,max_value,adaptive_method,thresh_type,blk_size,c)
        - -

        Parameters

        -
        src : -

        Source 8-bit single-channel image.

        -
        max_value : -

        Non-zero value assigned to the pixels for which the condition is satisfied. See the details below.

        -
        adaptive_method : -

        Adaptive thresholding algorithm to use, ADAPTIVE_THRESH_MEAN_C or ADAPTIVE_THRESH_GAUSSIAN_C .

        -
        thresh_type : -

        Thresholding type that must be either THRESH_BINARY or THRESH_BINARY_INV .

        -
        blockSize : -

        Size of a pixel neighborhood that is used to calculate a threshold value for the pixel: 3, 5, 7, and so on.

        -
        C : -

        Constant subtracted from the mean or weighted mean.Normally, it is positive but may be zero or negative as well.

        - -

        Description

        -

        This function can be used for adaptively threshold given image

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -dst = CV_AdaptiveThreshold(img,255,"ADAPTIVE_THRESH_MEAN_C", ...
        -"THRESH_BINARY",5,0)
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_Blur.html b/help/en_US/scilab_en_US_help/CV_Blur.html deleted file mode 100644 index e6a20c1..0000000 --- a/help/en_US/scilab_en_US_help/CV_Blur.html +++ /dev/null @@ -1,96 +0,0 @@ - - - CV_Blur - - - -
        - - - - -
        - << CV_AdaptiveThreshold - - - Scilab 2 C Converter - - - CV_Canny >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Blur - -

        -

        CV_Blur

        -

        function to blur image using normalised box filter

        - - -

        Calling Sequence

        -
        dst = CV_Blur(srcimg,ksize_width,ksize_height,anchor_x,anchor_y,border_type)
        - -

        Parameters

        -
        srcimg : -

        Source image.

        -
        ksize_width, ksize_height : -

        blurring kernel size.

        -
        anchor_x, anchor_y : -

        x,y coordinates of anchor point

        -
        border_type : -

        border mode used to extrapolate pixels outside of the image.

        - -

        Description

        -

        This function can be used for blurring image using normalised box -filter. Image can be of any depth and have any no of channels.

        -

        border_type can be : -

        • BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh
        • -
        • BORDER_REFLECT: fedcba|abcdefgh|hgfedcb
        • -
        • BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba
        • -
        • BORDER_WRAP: cdefgh|abcdefgh|abcdefg
        • -
        • BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -dst = CV_Blur(img,3,3,-1,-1,"BORDER_CONSTANT")
        - - - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_Canny.html b/help/en_US/scilab_en_US_help/CV_Canny.html deleted file mode 100644 index d0f841a..0000000 --- a/help/en_US/scilab_en_US_help/CV_Canny.html +++ /dev/null @@ -1,95 +0,0 @@ - - - CV_Canny - - - -
        - - - - -
        - << CV_Blur - - - Scilab 2 C Converter - - - CV_CornerHarris >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Canny - -

        -

        CV_Canny

        -

        Finds edges in image using Canny algorithm

        - - -

        Calling Sequence

        -
        edges = CV_Canny(srcimg,threhold1,threshold2,aperture_size,L2gradient)
        - -

        Parameters

        -
        srcimg : -

        single-channel 8-bit input image.

        -
        threshold1 : -

        first threshold for the hysteresis procedure.

        -
        threshold2 : -

        second threshold for the hysteresis procedure.

        -
        aperture_size : -

        aperture size for the Sobel() operator.

        -
        L2gradient : -

        a flag, indicating whether a more accurate

        - -

        Description

        -

        This function can be used for finding edes in single channel 8 bit -image. 'aperture_size' and 'L2gradient' are optionals. By default, -aperture_size is 3 and L2gradient is false.

        -

        For L2gradient: L_2 norm =sqrt{(dI/dx)^2 + (dI/dy)^2} should be used to calculate the image gradient magnitude (L2gradient=1 ), or whether the default L_1 norm =|dI/dx|+|dI/dy| is enough (L2gradient=0).

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -dst = CV_CvtColor(img,"CV_RGB2GRAY");
        -edge = CV_Canny(dst,50,100,3,0);
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_CornerHarris.html b/help/en_US/scilab_en_US_help/CV_CornerHarris.html deleted file mode 100644 index 1868d89..0000000 --- a/help/en_US/scilab_en_US_help/CV_CornerHarris.html +++ /dev/null @@ -1,98 +0,0 @@ - - - CV_CornerHarris - - - -
        - - - - -
        - << CV_Canny - - - Scilab 2 C Converter - - - CV_CreateImage >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_CornerHarris - -

        -

        CV_CornerHarris

        -

        Finds edges in image using Harris algorithm

        - - -

        Calling Sequence

        -
        edges = CV_CornerHarris(srcimg,blocksize,ksize,k,border_type)
        - -

        Parameters

        -
        srcimg: -

        Input single-channel 8-bit or floating-point image.

        -
        blockSize: -

        Neighborhood size

        -
        ksize: -

        Aperture parameter for the Sobel() operator.

        -
        k: -

        Harris detector free parameter.

        -
        border_type: -

        border mode used to extrapolate pixels outside of the image.

        - -

        Description

        -

        The function runs the Harris edge detector on the image. For each pixel (x, y) it calculates a 2 * 2 gradient covariance matrix M(x,y) over a blockSize * blockSize neighborhood. Then, it computes the following characteristic: dst(x,y) = det(M(x,y)) - k .tr(M(x,y))^2. Corners in the image can be found as the local maxima of this response map.

        -

        border_type can be : -

        • BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh
        • -
        • BORDER_REFLECT: fedcba|abcdefgh|hgfedcb
        • -
        • BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba
        • -
        • BORDER_WRAP: cdefgh|abcdefgh|abcdefg
        • -
        • BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -dst = CV_CvtColor(img,"CV_RGB2GRAY");
        -edge = CV_CornerHarris(dst,5,3,1,"BORDER_REPLICATE");
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_CreateImage.html b/help/en_US/scilab_en_US_help/CV_CreateImage.html deleted file mode 100644 index e0544bb..0000000 --- a/help/en_US/scilab_en_US_help/CV_CreateImage.html +++ /dev/null @@ -1,85 +0,0 @@ - - - CV_CreateImage - - - -
        - - - - -
        - << CV_CornerHarris - - - Scilab 2 C Converter - - - CV_CvtColor >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_CreateImage - -

        -

        CV_CreateImage

        -

        function to create an image object of given size and type

        - - -

        Calling Sequence

        -
        CV_CreateImage(image_size,bit_depth,no_of_channels)
        - -

        Parameters

        -
        image_size: -

        width and height of image

        -
        bit_depth: -

        Bit depth of image elements

        -
        no_of_channels: -

        no of channels per pixels

        - -

        Description

        -

        This function can be used to create opencv image object. For more info about bit depth and channels,please refer to OpenCV documentation

        -

        This is curretly dummy function. It provides no functionality but is required for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        CV_CreateImage([320 240], "IPL_DEPTH_8U", 1)    //to create image of the size 320*240 pixels with 8 bit unsigned each pixels and gray scale image
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_CvtColor.html b/help/en_US/scilab_en_US_help/CV_CvtColor.html deleted file mode 100644 index f655d90..0000000 --- a/help/en_US/scilab_en_US_help/CV_CvtColor.html +++ /dev/null @@ -1,90 +0,0 @@ - - - CV_CvtColor - - - -
        - - - - -
        - << CV_CreateImage - - - Scilab 2 C Converter - - - CV_Dilate >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_CvtColor - -

        -

        CV_CvtColor

        -

        function to convert image from one colorspace to other colorspace

        - - -

        Calling Sequence

        -
        CV_CvtColor(srcimg,code)
        - -

        Parameters

        -
        srcimg: -

        source image to be converted

        -
        dstimg: -

        destination image in which to store converted image

        -
        code: -

        String specifying conversion type. Same as defined in OpenCV. for eg. 'CV_RGB2GRAY' for conversion from RGB image to grayscale image

        -
        dstCn: -

        no of channels in destination image (0 by default)

        - -

        Description

        -

        This function can be used for converting an image to other colorspace. -Refer OpenCV documentation for list of available conversions

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -dst = CV_CvtColor(img,'CV_RGB2GRAY')
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_Dilate.html b/help/en_US/scilab_en_US_help/CV_Dilate.html deleted file mode 100644 index e88bc85..0000000 --- a/help/en_US/scilab_en_US_help/CV_Dilate.html +++ /dev/null @@ -1,99 +0,0 @@ - - - CV_Dilate - - - - - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Dilate - -

        -

        CV_Dilate

        -

        dilates an image by using a specific structuring element.

        - - -

        Calling Sequence

        -
        cvtimg = CV_Dilate(srcimg,dilation_type,dilation_size,[iterations,border_type,border_value])
        - -

        Parameters

        -
        src : -

        input image; the number of channels can be arbitrary, but the depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.

        -
        dilation_type : -

        can be one of MORPH_RECT, MORPH_CROSS,MORPH_ELLIPSE

        -
        dilation_size : -

        size of kernel to be used for erosion. Must be odd

        -
        iterations : -

        number of times erosion is applied.

        -
        border_type : -

        pixel extrapolation method.

        -
        border_value : -

        border value in case of a constant border

        - -

        Description

        -

        This function can be used for eroding an image. Kernel used for erosion is decided by type and size. Size must always be odd. Anchor pint of kernel is always center of kernel. Input arguements 'iterations(1), border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not specified, default values as as mentioned in brackets.

        -

        border_type can be : -

        • BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh

        • -
        • BORDER_REFLECT: fedcba|abcdefgh|hgfedcb

        • -
        • BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba

        • -
        • BORDER_WRAP: cdefgh|abcdefgh|abcdefg

        • -
        • BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -dst = CV_Erode(img,"MORPH_RECT",3,1,"BORDER_CONSTANT",0);
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_DistanceTransform.html b/help/en_US/scilab_en_US_help/CV_DistanceTransform.html deleted file mode 100644 index ec27c82..0000000 --- a/help/en_US/scilab_en_US_help/CV_DistanceTransform.html +++ /dev/null @@ -1,87 +0,0 @@ - - - CV_DistanceTransform - - - -
        - - - - -
        - << CV_Dilate - - - Scilab 2 C Converter - - - CV_Erode >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_DistanceTransform - -

        -

        CV_DistanceTransform

        -

        function to calculate distance to closest zero pixels for each pixel

        - - -

        Calling Sequence

        -
        dst = CV_DistanceTransform(srcimg,distance_type,mask_size)
        - -

        Parameters

        -
        srcimg : -

        Source 8-bit single-channel image.

        -
        distance_type : -

        Type of distance. It can be CV_DIST_L1, CV_DIST_L2 , or CV_DIST_C

        -
        mask_size : -

        Size of the distance transform mask

        - -

        Description

        -

        This function can be used to calculate distance to closest zero pixel for each pixel of the source image. Output is 32 bit floatingpoint, single channel image of the same size as that of source image.

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -dst = CV_DistanceTransform(img,"CV_DIST_L1",3)
        - - - -

        Authors

        -
        • Siddhesh Wani
        -
        - -
        - - - - - - -
        Report an issue
        - << CV_Dilate - - - Scilab 2 C Converter - - - CV_Erode >> - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/CV_Erode.html b/help/en_US/scilab_en_US_help/CV_Erode.html deleted file mode 100644 index bdb9c5a..0000000 --- a/help/en_US/scilab_en_US_help/CV_Erode.html +++ /dev/null @@ -1,99 +0,0 @@ - - - CV_Erode - - - - - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Erode - -

        -

        CV_Erode

        -

        Erodes an image by using a specific structuring element.

        - - -

        Calling Sequence

        -
        cvtimg = CV_Erode(srcimg,erosion_type,erosion_size,[iterations,border_type,border_value])
        - -

        Parameters

        -
        src : -

        input image; the number of channels can be arbitrary, but the depth should be one of CV_8U, CV_16U, CV_16S, CV_32F or CV_64F.

        -
        erosion_type : -

        can be one of : MORPH_RECT, MORPH_CROSS, MORPH_ELLIPSE

        -
        erosion_size : -

        size of kernel to be used for erosion. Must be odd

        -
        iterations : -

        number of times erosion is applied.

        -
        border_type : -

        pixel extrapolation method.

        -
        border_value : -

        border value in case of a constant border

        - -

        Description

        -

        This function can be used for eroding an image. Kernel used for erosion is decided by type and size. Size must always be odd. Anchor pint of kernel is always center of kernel. Input arguements 'iterations(1), border_type(BORDER_CONSTANT) and border_value' are optionals. Whwn not specified, default values as as mentioned in brackets.

        -

        border_type can be : -

        • BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh
        • -
        • BORDER_REFLECT: fedcba|abcdefgh|hgfedcb
        • -
        • BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba
        • -
        • BORDER_WRAP: cdefgh|abcdefgh|abcdefg
        • -
        • BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -dst = CV_Erode(img,"MORPH_RECT",3,1,"BORDER_CONSTANT",0);
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_GaussianBlur.html b/help/en_US/scilab_en_US_help/CV_GaussianBlur.html deleted file mode 100644 index 124fc0a..0000000 --- a/help/en_US/scilab_en_US_help/CV_GaussianBlur.html +++ /dev/null @@ -1,98 +0,0 @@ - - - CV_GaussianBlur - - - -
        - - - - -
        - << CV_Erode - - - Scilab 2 C Converter - - - CV_GetImgSize >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_GaussianBlur - -

        -

        CV_GaussianBlur

        -

        function to blur image using gaussian filter

        - - -

        Calling Sequence

        -
        cvtimg = CV_GaussianBlur(srcimg,ksize_width,ksize_height,sigma_x,sigma_y,border_type)
        - -

        Parameters

        -
        srcimg : -

        Source image.

        -
        ksize_width, ksize_height : -

        blurring kernel size. must be odd.

        -
        sigmaX : -

        Gaussian kernel standard deviation in X direction.

        -
        sigmaY : -

        Gaussian kernel standard deviation in Y direction;

        -
        border_type : -

        border mode used to extrapolate pixels outside of the image.

        - -

        Description

        -

        This function can be used for blurring image using gaussian filter. Image can be of any depth and have any no of channels.

        -

        For sigmaX and sigmaY : if sigmaY is zero, it is set to be equal to sigmaX, if both sigmas are zeros, they are computed from ksize.width and ksize.height , respectively.

        -

        border_type can be : -

        • BORDER_REPLICATE: aaaaaa|abcdefgh|hhhhhhh
        • -
        • BORDER_REFLECT: fedcba|abcdefgh|hgfedcb
        • -
        • BORDER_REFLECT_101: gfedcb|abcdefgh|gfedcba
        • -
        • BORDER_WRAP: cdefgh|abcdefgh|abcdefg
        • -
        • BORDER_CONSTANT: iiiiii|abcdefgh|iiiiiii

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -dst = CV_GaussianBlur(img,3,3,0,0,"BORDER_CONSTANT")
        - - - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_GetImgSize.html b/help/en_US/scilab_en_US_help/CV_GetImgSize.html deleted file mode 100644 index f6f67ab..0000000 --- a/help/en_US/scilab_en_US_help/CV_GetImgSize.html +++ /dev/null @@ -1,84 +0,0 @@ - - - CV_GetImgSize - - - -
        - - - - -
        - << CV_GaussianBlur - - - Scilab 2 C Converter - - - CV_LoadImage >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_GetImgSize - -

        -

        CV_GetImgSize

        -

        function to get size of the image (width*height)

        - - -

        Calling Sequence

        -
        CV_GetImgSize(img)
        - -

        Parameters

        -
        img: -

        image whose size is to be returned

        - -

        Description

        -

        This function can be used for retriving size information of the image. -It returs an array with first image element as width and second as height

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -size = CV_GetImgSize(img)
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_LoadImage.html b/help/en_US/scilab_en_US_help/CV_LoadImage.html deleted file mode 100644 index 55cd33f..0000000 --- a/help/en_US/scilab_en_US_help/CV_LoadImage.html +++ /dev/null @@ -1,88 +0,0 @@ - - - CV_LoadImage - - - -
        - - - - -
        - << CV_GetImgSize - - - Scilab 2 C Converter - - - CV_MedianBlur >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_LoadImage - -

        -

        CV_LoadImage

        -

        function to load an image object from given filename

        - - -

        Calling Sequence

        -
        CV_LoadImage(filename,loadtype)
        - -

        Parameters

        -
        filename: -

        name of file to be opened

        -
        loadtype: -

        desired load method

        - -

        Description

        -

        This function can be used for loading a previously stored image

        -

        loadtype can take the following values: -

        • less than 0 -> image is loaded as is (with alpha channel)

        • -
        • 0 -> image is loaded as greyscale

        • -
        • greater than 0 -> 3 channel color image is loaded

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        CV_LoadImage('~/test.jpg',0)
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_MedianBlur.html b/help/en_US/scilab_en_US_help/CV_MedianBlur.html deleted file mode 100644 index f335ae9..0000000 --- a/help/en_US/scilab_en_US_help/CV_MedianBlur.html +++ /dev/null @@ -1,86 +0,0 @@ - - - CV_MedianBlur - - - -
        - - - - -
        - << CV_LoadImage - - - Scilab 2 C Converter - - - CV_SaveImage >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_MedianBlur - -

        -

        CV_MedianBlur

        -

        function to blur image using median filter

        - - -

        Calling Sequence

        -
        cvtimg = CV_MedianBlur(srcimg,ksize)
        - -

        Parameters

        -
        srcimg : -

        input 1-, 3-, or 4-channel image; when ksize is 3 or 5, the image depth should be CV_8U, CV_16U, or CV_32F, for larger aperture sizes, it can only be CV_8U.

        -
        ksize_width : -

        aperture linear size; it must be odd and greater than 1, for example: 3, 5, 7 ...

        - -

        Description

        -

        This function can be used for blurring image using median -filter. Image can be of any depth and have any no of channels.

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -dst = CV_MedianBlur(img,3)
        - - - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_SaveImage.html b/help/en_US/scilab_en_US_help/CV_SaveImage.html deleted file mode 100644 index 60ab201..0000000 --- a/help/en_US/scilab_en_US_help/CV_SaveImage.html +++ /dev/null @@ -1,86 +0,0 @@ - - - CV_SaveImage - - - -
        - - - - -
        - << CV_MedianBlur - - - Scilab 2 C Converter - - - CV_ShowImage >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_SaveImage - -

        -

        CV_SaveImage

        -

        function to save an image object as a given filename

        - - -

        Calling Sequence

        -
        CV_SaveImage(filename,img)
        - -

        Parameters

        -
        filename: -

        name of file image to be saved as

        -
        img: -

        image to be saved

        - -

        Description

        -

        This function can be used for saving image. File format is detected -from file extension

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -CV_SaveImage('test1.png',img)
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_ShowImage.html b/help/en_US/scilab_en_US_help/CV_ShowImage.html deleted file mode 100644 index cb15052..0000000 --- a/help/en_US/scilab_en_US_help/CV_ShowImage.html +++ /dev/null @@ -1,86 +0,0 @@ - - - CV_ShowImage - - - -
        - - - - -
        - << CV_SaveImage - - - Scilab 2 C Converter - - - CV_Threshold >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_ShowImage - -

        -

        CV_ShowImage

        -

        function to show an image

        - - -

        Calling Sequence

        -
        CV_ShowImage(img)
        -CV_ShowImage(winname,img)
        - -

        Parameters

        -
        winname: -

        name of window in which img is to be shown

        -
        img: -

        image to be shown already acquired (from file/camera)

        - -

        Description

        -

        This function can be used for showing images

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -CV_ShowImage(img)
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_Threshold.html b/help/en_US/scilab_en_US_help/CV_Threshold.html deleted file mode 100644 index 0fcf62f..0000000 --- a/help/en_US/scilab_en_US_help/CV_Threshold.html +++ /dev/null @@ -1,90 +0,0 @@ - - - CV_Threshold - - - -
        - - - - -
        - << CV_ShowImage - - - Scilab 2 C Converter - - - CV_WaitKey >> - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_Threshold - -

        -

        CV_Threshold

        -

        function to threshold input image

        - - -

        Calling Sequence

        -
        dst = CV_Threshold(srcimg,code,threshold,max_value,thresh_type)
        - -

        Parameters

        -
        srcimg: -

        source image to be converted

        -
        threshold: -

        threshold value

        -
        max_value: -

        maximum value to be used with THRESH_BINARY and THRESH_BINARY_INV

        -
        thresh_type: -

        Type for threshold. It can one of the following: THRESH_BINARY, THRESH_BINARY_INV, THRESH_TRUNC, THRESH_TOZERO, THRESH_TOZERO_INV

        - -

        Description

        -

        This function can be used for converting an image to other colorspace. -Refer OpenCV documentation for list of available conversions

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -dst = CV_Threshold(img,100,255,'THRESH_BINARY')
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - - - - diff --git a/help/en_US/scilab_en_US_help/CV_WaitKey.html b/help/en_US/scilab_en_US_help/CV_WaitKey.html deleted file mode 100644 index e942643..0000000 --- a/help/en_US/scilab_en_US_help/CV_WaitKey.html +++ /dev/null @@ -1,83 +0,0 @@ - - - CV_WaitKey - - - -
        - - - - -
        - << CV_Threshold - - - Scilab 2 C Converter - - - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter > CV_WaitKey - -

        -

        CV_WaitKey

        -

        function similar to cvWaitKey

        - - -

        Calling Sequence

        -
        CV_WaitKey(delay)
        - -

        Parameters

        -
        delay: -

        waiting delay, if 0 then wait till keypress

        - -

        Description

        -

        This function can be used for inseting some delay. This function must -follow CV_ShowImage to display image.

        -

        This is curretly dummy function. It provides no functionality but is required -for providing support for generating C code for OpenCV

        -

        - -

        Examples

        -
        img = CV_LoadImage('~/test.jpg',0)
        -CV_ShowImage('',img)
        -CV_WaitKey(0);
        - -

        See also

        -
        - -

        Authors

        -
        • Siddhesh Wani
        -
        - -
        - - - - - - -
        Report an issue
        - << CV_Threshold - - - Scilab 2 C Converter - - - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/index.html b/help/en_US/scilab_en_US_help/index.html deleted file mode 100644 index 9e4ba79..0000000 --- a/help/en_US/scilab_en_US_help/index.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - -
        - - - - -
        - - - - - -
        -
        -
        - - - - -

        -

        Scilab 2 C Converter

        -
          - -
        • Scilab 2 C Converter -
          • AVRADCSetupFunction to initialise ADC of AVR
          • - - - - - -
          • AVRDigitalInFunction to get state (high\low) of a digital input pin on AVR
          • - - - - - -
          • AVRDigitalOutFunction to change state (high\low) of a digital output pin on AVR
          • - - - - - -
          • AVRDigitalPortSetupFunction to decide direction of port on AVR
          • - - - - - -
          • AVRDigitalSetupFunction to decide direction of a digital pin on AVR
          • - - - - - -
          • AVRGetTimerValueFunction to get timer count
          • - - - - - -
          • AVRPWM0SetDutyFunction to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.
          • - - - - - -
          • AVRPWM0SetupFunction to Setup OC0 pin for required PWM mode
          • - - - - - -
          • AVRPWM1SetDutyFunction to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.
          • - - - - - -
          • AVRPWM1SetupFunction to Setup OC1A or OC1B pin for required PWM mode
          • - - - - - -
          • AVRPWM2SetDutyFunction to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.
          • - - - - - -
          • AVRPWM2SetupFunction to Setup OC2 pin for required PWM mode
          • - - - - - -
          • AVRReadADCFunction to get voltage on analog pin on AVR
          • - - - - - -
          • AVRSleepFunction to pause the execution for the given time.
          • - - - - - -
          • AVRTimerSetupFunction to setup Timers in ATmega16
          • - - - - - -
          • AVRUARTReceiveFunction to Receive Char value send to ATmega16 using UART or USART.
          • - - - - - -
          • AVRUARTSetupFunction to Setup Serial Communication i.e UART or USART in ATmega16.
          • - - - - - -
          • AVRUARTTransmitFunction to Transmit data using UART or USART.
          • - - - - - -
          • CV_AdaptiveThresholdfunction to adaptively threshold input image
          • - - - - - -
          • CV_Blurfunction to blur image using normalised box filter
          • - - - - - -
          • CV_CannyFinds edges in image using Canny algorithm
          • - - - - - -
          • CV_CornerHarrisFinds edges in image using Harris algorithm
          • - - - - - -
          • CV_CreateImagefunction to create an image object of given size and type
          • - - - - - -
          • CV_CvtColorfunction to convert image from one colorspace to other colorspace
          • - - - - - -
          • CV_Dilatedilates an image by using a specific structuring element.
          • - - - - - -
          • CV_DistanceTransformfunction to calculate distance to closest zero pixels for each pixel
          • - - - - - -
          • CV_ErodeErodes an image by using a specific structuring element.
          • - - - - - -
          • CV_GaussianBlurfunction to blur image using gaussian filter
          • - - - - - -
          • CV_GetImgSizefunction to get size of the image (width*height)
          • - - - - - -
          • CV_LoadImagefunction to load an image object from given filename
          • - - - - - -
          • CV_MedianBlurfunction to blur image using median filter
          • - - - - - -
          • CV_SaveImagefunction to save an image object as a given filename
          • - - - - - -
          • CV_ShowImagefunction to show an image
          • - - - - - -
          • CV_Thresholdfunction to threshold input image
          • - - - - - -
          • CV_WaitKeyfunction similar to cvWaitKey
        -
        - -
        - - - - - - -
        Report an issue
        - - - - - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/jhelpidx.xml b/help/en_US/scilab_en_US_help/jhelpidx.xml deleted file mode 100644 index aa5a66e..0000000 --- a/help/en_US/scilab_en_US_help/jhelpidx.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/jhelptoc.xml b/help/en_US/scilab_en_US_help/jhelptoc.xml deleted file mode 100644 index abd1f92..0000000 --- a/help/en_US/scilab_en_US_help/jhelptoc.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/help/en_US/scilab_en_US_help/section_0da8c7f3adca54f0475553087384b7a7.html b/help/en_US/scilab_en_US_help/section_0da8c7f3adca54f0475553087384b7a7.html deleted file mode 100644 index 647ce7c..0000000 --- a/help/en_US/scilab_en_US_help/section_0da8c7f3adca54f0475553087384b7a7.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - -
        - - - - -
        - - - Scilab 2 C Converter - - - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter - -

        -

        Scilab 2 C Converter

        -
        • AVRADCSetupFunction to initialise ADC of AVR
        • - - - - - -
        • AVRDigitalInFunction to get state (high\low) of a digital input pin on AVR
        • - - - - - -
        • AVRDigitalOutFunction to change state (high\low) of a digital output pin on AVR
        • - - - - - -
        • AVRDigitalPortSetupFunction to decide direction of port on AVR
        • - - - - - -
        • AVRDigitalSetupFunction to decide direction of a digital pin on AVR
        • - - - - - -
        • AVRGetTimerValueFunction to get timer count
        • - - - - - -
        • AVRPWM0SetDutyFunction to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.
        • - - - - - -
        • AVRPWM0SetupFunction to Setup OC0 pin for required PWM mode
        • - - - - - -
        • AVRPWM1SetDutyFunction to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.
        • - - - - - -
        • AVRPWM1SetupFunction to Setup OC1A or OC1B pin for required PWM mode
        • - - - - - -
        • AVRPWM2SetDutyFunction to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.
        • - - - - - -
        • AVRPWM2SetupFunction to Setup OC2 pin for required PWM mode
        • - - - - - -
        • AVRReadADCFunction to get voltage on analog pin on AVR
        • - - - - - -
        • AVRSleepFunction to pause the execution for the given time.
        • - - - - - -
        • AVRTimerSetupFunction to setup Timers in ATmega16
        • - - - - - -
        • AVRUARTReceiveFunction to Receive Char value send to ATmega16 using UART or USART.
        • - - - - - -
        • AVRUARTSetupFunction to Setup Serial Communication i.e UART or USART in ATmega16.
        • - - - - - -
        • AVRUARTTransmitFunction to Transmit data using UART or USART.
        • - - - - - -
        • CV_AdaptiveThresholdfunction to adaptively threshold input image
        • - - - - - -
        • CV_Blurfunction to blur image using normalised box filter
        • - - - - - -
        • CV_CannyFinds edges in image using Canny algorithm
        • - - - - - -
        • CV_CornerHarrisFinds edges in image using Harris algorithm
        • - - - - - -
        • CV_CreateImagefunction to create an image object of given size and type
        • - - - - - -
        • CV_CvtColorfunction to convert image from one colorspace to other colorspace
        • - - - - - -
        • CV_Dilatedilates an image by using a specific structuring element.
        • - - - - - -
        • CV_DistanceTransformfunction to calculate distance to closest zero pixels for each pixel
        • - - - - - -
        • CV_ErodeErodes an image by using a specific structuring element.
        • - - - - - -
        • CV_GaussianBlurfunction to blur image using gaussian filter
        • - - - - - -
        • CV_GetImgSizefunction to get size of the image (width*height)
        • - - - - - -
        • CV_LoadImagefunction to load an image object from given filename
        • - - - - - -
        • CV_MedianBlurfunction to blur image using median filter
        • - - - - - -
        • CV_SaveImagefunction to save an image object as a given filename
        • - - - - - -
        • CV_ShowImagefunction to show an image
        • - - - - - -
        • CV_Thresholdfunction to threshold input image
        • - - - - - -
        • CV_WaitKeyfunction similar to cvWaitKey
        -
        - -
        - - - - - - -
        Report an issue
        - - - Scilab 2 C Converter - - - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/section_35ee3b19a97c75b084122c05ac0777c6.html b/help/en_US/scilab_en_US_help/section_35ee3b19a97c75b084122c05ac0777c6.html deleted file mode 100644 index 647ce7c..0000000 --- a/help/en_US/scilab_en_US_help/section_35ee3b19a97c75b084122c05ac0777c6.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - -
        - - - - -
        - - - Scilab 2 C Converter - - - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter - -

        -

        Scilab 2 C Converter

        -
        • AVRADCSetupFunction to initialise ADC of AVR
        • - - - - - -
        • AVRDigitalInFunction to get state (high\low) of a digital input pin on AVR
        • - - - - - -
        • AVRDigitalOutFunction to change state (high\low) of a digital output pin on AVR
        • - - - - - -
        • AVRDigitalPortSetupFunction to decide direction of port on AVR
        • - - - - - -
        • AVRDigitalSetupFunction to decide direction of a digital pin on AVR
        • - - - - - -
        • AVRGetTimerValueFunction to get timer count
        • - - - - - -
        • AVRPWM0SetDutyFunction to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.
        • - - - - - -
        • AVRPWM0SetupFunction to Setup OC0 pin for required PWM mode
        • - - - - - -
        • AVRPWM1SetDutyFunction to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.
        • - - - - - -
        • AVRPWM1SetupFunction to Setup OC1A or OC1B pin for required PWM mode
        • - - - - - -
        • AVRPWM2SetDutyFunction to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.
        • - - - - - -
        • AVRPWM2SetupFunction to Setup OC2 pin for required PWM mode
        • - - - - - -
        • AVRReadADCFunction to get voltage on analog pin on AVR
        • - - - - - -
        • AVRSleepFunction to pause the execution for the given time.
        • - - - - - -
        • AVRTimerSetupFunction to setup Timers in ATmega16
        • - - - - - -
        • AVRUARTReceiveFunction to Receive Char value send to ATmega16 using UART or USART.
        • - - - - - -
        • AVRUARTSetupFunction to Setup Serial Communication i.e UART or USART in ATmega16.
        • - - - - - -
        • AVRUARTTransmitFunction to Transmit data using UART or USART.
        • - - - - - -
        • CV_AdaptiveThresholdfunction to adaptively threshold input image
        • - - - - - -
        • CV_Blurfunction to blur image using normalised box filter
        • - - - - - -
        • CV_CannyFinds edges in image using Canny algorithm
        • - - - - - -
        • CV_CornerHarrisFinds edges in image using Harris algorithm
        • - - - - - -
        • CV_CreateImagefunction to create an image object of given size and type
        • - - - - - -
        • CV_CvtColorfunction to convert image from one colorspace to other colorspace
        • - - - - - -
        • CV_Dilatedilates an image by using a specific structuring element.
        • - - - - - -
        • CV_DistanceTransformfunction to calculate distance to closest zero pixels for each pixel
        • - - - - - -
        • CV_ErodeErodes an image by using a specific structuring element.
        • - - - - - -
        • CV_GaussianBlurfunction to blur image using gaussian filter
        • - - - - - -
        • CV_GetImgSizefunction to get size of the image (width*height)
        • - - - - - -
        • CV_LoadImagefunction to load an image object from given filename
        • - - - - - -
        • CV_MedianBlurfunction to blur image using median filter
        • - - - - - -
        • CV_SaveImagefunction to save an image object as a given filename
        • - - - - - -
        • CV_ShowImagefunction to show an image
        • - - - - - -
        • CV_Thresholdfunction to threshold input image
        • - - - - - -
        • CV_WaitKeyfunction similar to cvWaitKey
        -
        - -
        - - - - - - -
        Report an issue
        - - - Scilab 2 C Converter - - - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/section_473a2b9e79723ff76a7f243f85d2b6b8.html b/help/en_US/scilab_en_US_help/section_473a2b9e79723ff76a7f243f85d2b6b8.html deleted file mode 100644 index 647ce7c..0000000 --- a/help/en_US/scilab_en_US_help/section_473a2b9e79723ff76a7f243f85d2b6b8.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - -
        - - - - -
        - - - Scilab 2 C Converter - - - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter - -

        -

        Scilab 2 C Converter

        -
        • AVRADCSetupFunction to initialise ADC of AVR
        • - - - - - -
        • AVRDigitalInFunction to get state (high\low) of a digital input pin on AVR
        • - - - - - -
        • AVRDigitalOutFunction to change state (high\low) of a digital output pin on AVR
        • - - - - - -
        • AVRDigitalPortSetupFunction to decide direction of port on AVR
        • - - - - - -
        • AVRDigitalSetupFunction to decide direction of a digital pin on AVR
        • - - - - - -
        • AVRGetTimerValueFunction to get timer count
        • - - - - - -
        • AVRPWM0SetDutyFunction to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.
        • - - - - - -
        • AVRPWM0SetupFunction to Setup OC0 pin for required PWM mode
        • - - - - - -
        • AVRPWM1SetDutyFunction to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.
        • - - - - - -
        • AVRPWM1SetupFunction to Setup OC1A or OC1B pin for required PWM mode
        • - - - - - -
        • AVRPWM2SetDutyFunction to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.
        • - - - - - -
        • AVRPWM2SetupFunction to Setup OC2 pin for required PWM mode
        • - - - - - -
        • AVRReadADCFunction to get voltage on analog pin on AVR
        • - - - - - -
        • AVRSleepFunction to pause the execution for the given time.
        • - - - - - -
        • AVRTimerSetupFunction to setup Timers in ATmega16
        • - - - - - -
        • AVRUARTReceiveFunction to Receive Char value send to ATmega16 using UART or USART.
        • - - - - - -
        • AVRUARTSetupFunction to Setup Serial Communication i.e UART or USART in ATmega16.
        • - - - - - -
        • AVRUARTTransmitFunction to Transmit data using UART or USART.
        • - - - - - -
        • CV_AdaptiveThresholdfunction to adaptively threshold input image
        • - - - - - -
        • CV_Blurfunction to blur image using normalised box filter
        • - - - - - -
        • CV_CannyFinds edges in image using Canny algorithm
        • - - - - - -
        • CV_CornerHarrisFinds edges in image using Harris algorithm
        • - - - - - -
        • CV_CreateImagefunction to create an image object of given size and type
        • - - - - - -
        • CV_CvtColorfunction to convert image from one colorspace to other colorspace
        • - - - - - -
        • CV_Dilatedilates an image by using a specific structuring element.
        • - - - - - -
        • CV_DistanceTransformfunction to calculate distance to closest zero pixels for each pixel
        • - - - - - -
        • CV_ErodeErodes an image by using a specific structuring element.
        • - - - - - -
        • CV_GaussianBlurfunction to blur image using gaussian filter
        • - - - - - -
        • CV_GetImgSizefunction to get size of the image (width*height)
        • - - - - - -
        • CV_LoadImagefunction to load an image object from given filename
        • - - - - - -
        • CV_MedianBlurfunction to blur image using median filter
        • - - - - - -
        • CV_SaveImagefunction to save an image object as a given filename
        • - - - - - -
        • CV_ShowImagefunction to show an image
        • - - - - - -
        • CV_Thresholdfunction to threshold input image
        • - - - - - -
        • CV_WaitKeyfunction similar to cvWaitKey
        -
        - -
        - - - - - - -
        Report an issue
        - - - Scilab 2 C Converter - - - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/section_4d177ceb9ae128b1850140a7901a140a.html b/help/en_US/scilab_en_US_help/section_4d177ceb9ae128b1850140a7901a140a.html deleted file mode 100644 index 647ce7c..0000000 --- a/help/en_US/scilab_en_US_help/section_4d177ceb9ae128b1850140a7901a140a.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - -
        - - - - -
        - - - Scilab 2 C Converter - - - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter - -

        -

        Scilab 2 C Converter

        -
        • AVRADCSetupFunction to initialise ADC of AVR
        • - - - - - -
        • AVRDigitalInFunction to get state (high\low) of a digital input pin on AVR
        • - - - - - -
        • AVRDigitalOutFunction to change state (high\low) of a digital output pin on AVR
        • - - - - - -
        • AVRDigitalPortSetupFunction to decide direction of port on AVR
        • - - - - - -
        • AVRDigitalSetupFunction to decide direction of a digital pin on AVR
        • - - - - - -
        • AVRGetTimerValueFunction to get timer count
        • - - - - - -
        • AVRPWM0SetDutyFunction to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.
        • - - - - - -
        • AVRPWM0SetupFunction to Setup OC0 pin for required PWM mode
        • - - - - - -
        • AVRPWM1SetDutyFunction to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.
        • - - - - - -
        • AVRPWM1SetupFunction to Setup OC1A or OC1B pin for required PWM mode
        • - - - - - -
        • AVRPWM2SetDutyFunction to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.
        • - - - - - -
        • AVRPWM2SetupFunction to Setup OC2 pin for required PWM mode
        • - - - - - -
        • AVRReadADCFunction to get voltage on analog pin on AVR
        • - - - - - -
        • AVRSleepFunction to pause the execution for the given time.
        • - - - - - -
        • AVRTimerSetupFunction to setup Timers in ATmega16
        • - - - - - -
        • AVRUARTReceiveFunction to Receive Char value send to ATmega16 using UART or USART.
        • - - - - - -
        • AVRUARTSetupFunction to Setup Serial Communication i.e UART or USART in ATmega16.
        • - - - - - -
        • AVRUARTTransmitFunction to Transmit data using UART or USART.
        • - - - - - -
        • CV_AdaptiveThresholdfunction to adaptively threshold input image
        • - - - - - -
        • CV_Blurfunction to blur image using normalised box filter
        • - - - - - -
        • CV_CannyFinds edges in image using Canny algorithm
        • - - - - - -
        • CV_CornerHarrisFinds edges in image using Harris algorithm
        • - - - - - -
        • CV_CreateImagefunction to create an image object of given size and type
        • - - - - - -
        • CV_CvtColorfunction to convert image from one colorspace to other colorspace
        • - - - - - -
        • CV_Dilatedilates an image by using a specific structuring element.
        • - - - - - -
        • CV_DistanceTransformfunction to calculate distance to closest zero pixels for each pixel
        • - - - - - -
        • CV_ErodeErodes an image by using a specific structuring element.
        • - - - - - -
        • CV_GaussianBlurfunction to blur image using gaussian filter
        • - - - - - -
        • CV_GetImgSizefunction to get size of the image (width*height)
        • - - - - - -
        • CV_LoadImagefunction to load an image object from given filename
        • - - - - - -
        • CV_MedianBlurfunction to blur image using median filter
        • - - - - - -
        • CV_SaveImagefunction to save an image object as a given filename
        • - - - - - -
        • CV_ShowImagefunction to show an image
        • - - - - - -
        • CV_Thresholdfunction to threshold input image
        • - - - - - -
        • CV_WaitKeyfunction similar to cvWaitKey
        -
        - -
        - - - - - - -
        Report an issue
        - - - Scilab 2 C Converter - - - -
        -
        -
        - - diff --git a/help/en_US/scilab_en_US_help/section_c4a64b600f61b91c1ebf30f1b892cb10.html b/help/en_US/scilab_en_US_help/section_c4a64b600f61b91c1ebf30f1b892cb10.html deleted file mode 100644 index 647ce7c..0000000 --- a/help/en_US/scilab_en_US_help/section_c4a64b600f61b91c1ebf30f1b892cb10.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - -
        - - - - -
        - - - Scilab 2 C Converter - - - -
        -
        -
        - - - - Scilab 2 C Converter >> Scilab 2 C Converter - -

        -

        Scilab 2 C Converter

        -
        • AVRADCSetupFunction to initialise ADC of AVR
        • - - - - - -
        • AVRDigitalInFunction to get state (high\low) of a digital input pin on AVR
        • - - - - - -
        • AVRDigitalOutFunction to change state (high\low) of a digital output pin on AVR
        • - - - - - -
        • AVRDigitalPortSetupFunction to decide direction of port on AVR
        • - - - - - -
        • AVRDigitalSetupFunction to decide direction of a digital pin on AVR
        • - - - - - -
        • AVRGetTimerValueFunction to get timer count
        • - - - - - -
        • AVRPWM0SetDutyFunction to Set Duty cycle of PWM Output generated by Timer0 at OC0 pin.
        • - - - - - -
        • AVRPWM0SetupFunction to Setup OC0 pin for required PWM mode
        • - - - - - -
        • AVRPWM1SetDutyFunction to Set Duty cycle of PWM Output generated by Timer1 at OC1A or OC1B pin.
        • - - - - - -
        • AVRPWM1SetupFunction to Setup OC1A or OC1B pin for required PWM mode
        • - - - - - -
        • AVRPWM2SetDutyFunction to Set Duty cycle of PWM Output generated by Timer2 at OC2 pin.
        • - - - - - -
        • AVRPWM2SetupFunction to Setup OC2 pin for required PWM mode
        • - - - - - -
        • AVRReadADCFunction to get voltage on analog pin on AVR
        • - - - - - -
        • AVRSleepFunction to pause the execution for the given time.
        • - - - - - -
        • AVRTimerSetupFunction to setup Timers in ATmega16
        • - - - - - -
        • AVRUARTReceiveFunction to Receive Char value send to ATmega16 using UART or USART.
        • - - - - - -
        • AVRUARTSetupFunction to Setup Serial Communication i.e UART or USART in ATmega16.
        • - - - - - -
        • AVRUARTTransmitFunction to Transmit data using UART or USART.
        • - - - - - -
        • CV_AdaptiveThresholdfunction to adaptively threshold input image
        • - - - - - -
        • CV_Blurfunction to blur image using normalised box filter
        • - - - - - -
        • CV_CannyFinds edges in image using Canny algorithm
        • - - - - - -
        • CV_CornerHarrisFinds edges in image using Harris algorithm
        • - - - - - -
        • CV_CreateImagefunction to create an image object of given size and type
        • - - - - - -
        • CV_CvtColorfunction to convert image from one colorspace to other colorspace
        • - - - - - -
        • CV_Dilatedilates an image by using a specific structuring element.
        • - - - - - -
        • CV_DistanceTransformfunction to calculate distance to closest zero pixels for each pixel
        • - - - - - -
        • CV_ErodeErodes an image by using a specific structuring element.
        • - - - - - -
        • CV_GaussianBlurfunction to blur image using gaussian filter
        • - - - - - -
        • CV_GetImgSizefunction to get size of the image (width*height)
        • - - - - - -
        • CV_LoadImagefunction to load an image object from given filename
        • - - - - - -
        • CV_MedianBlurfunction to blur image using median filter
        • - - - - - -
        • CV_SaveImagefunction to save an image object as a given filename
        • - - - - - -
        • CV_ShowImagefunction to show an image
        • - - - - - -
        • CV_Thresholdfunction to threshold input image
        • - - - - - -
        • CV_WaitKeyfunction similar to cvWaitKey
        -
        - -
        - - - - - - -
        Report an issue
        - - - Scilab 2 C Converter - - - -
        -
        -
        - - diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar index 19dfea3..a58fb02 100644 Binary files a/jar/scilab_en_US_help.jar and b/jar/scilab_en_US_help.jar differ -- cgit