linalg.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. from .tensor import inverse as inv
  15. from .tensor.linalg import (
  16. cholesky,
  17. cholesky_solve,
  18. cond,
  19. corrcoef,
  20. cov,
  21. det,
  22. eig,
  23. eigh,
  24. eigvals,
  25. eigvalsh,
  26. householder_product,
  27. lstsq,
  28. lu,
  29. lu_unpack,
  30. matrix_exp,
  31. matrix_norm,
  32. matrix_power,
  33. matrix_rank,
  34. multi_dot,
  35. norm,
  36. ormqr,
  37. pca_lowrank,
  38. pinv,
  39. qr,
  40. slogdet,
  41. solve,
  42. svd,
  43. svd_lowrank,
  44. triangular_solve,
  45. vector_norm,
  46. )
  47. __all__ = [
  48. 'cholesky',
  49. 'norm',
  50. 'matrix_norm',
  51. 'vector_norm',
  52. 'cond',
  53. 'cov',
  54. 'corrcoef',
  55. 'inv',
  56. 'eig',
  57. 'eigvals',
  58. 'multi_dot',
  59. 'matrix_rank',
  60. 'svd',
  61. 'qr',
  62. 'householder_product',
  63. 'pca_lowrank',
  64. 'svd_lowrank',
  65. 'lu',
  66. 'lu_unpack',
  67. 'matrix_exp',
  68. 'matrix_power',
  69. 'det',
  70. 'slogdet',
  71. 'eigh',
  72. 'eigvalsh',
  73. 'pinv',
  74. 'solve',
  75. 'cholesky_solve',
  76. 'triangular_solve',
  77. 'lstsq',
  78. 'ormqr',
  79. ]