matrix.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. Copyright 1999 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License. You may
  5. obtain a copy of the License at
  6. https://imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. MagickCore matrix methods.
  13. */
  14. #ifndef MAGICKCORE_MATRIX_H
  15. #define MAGICKCORE_MATRIX_H
  16. #if defined(__cplusplus) || defined(c_plusplus)
  17. extern "C" {
  18. #endif
  19. typedef struct _MatrixInfo
  20. MatrixInfo;
  21. extern MagickExport double
  22. **AcquireMagickMatrix(const size_t,const size_t),
  23. **RelinquishMagickMatrix(double **,const size_t);
  24. extern MagickExport Image
  25. *MatrixToImage(const MatrixInfo *,ExceptionInfo *);
  26. extern MagickExport MagickBooleanType
  27. GaussJordanElimination(double **,double **,const size_t,const size_t),
  28. GetMatrixElement(const MatrixInfo *,const ssize_t,const ssize_t,void *),
  29. NullMatrix(MatrixInfo *),
  30. SetMatrixElement(const MatrixInfo *,const ssize_t,const ssize_t,const void *);
  31. MagickExport MatrixInfo
  32. *AcquireMatrixInfo(const size_t,const size_t,const size_t,ExceptionInfo *),
  33. *DestroyMatrixInfo(MatrixInfo *);
  34. MagickExport size_t
  35. GetMatrixColumns(const MatrixInfo *),
  36. GetMatrixRows(const MatrixInfo *);
  37. extern MagickExport void
  38. LeastSquaresAddTerms(double **,double **,const double *,const double *,
  39. const size_t,const size_t);
  40. #if defined(__cplusplus) || defined(c_plusplus)
  41. }
  42. #endif
  43. #endif