_weight_vector.pxd 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # WARNING: Do not edit this file directly.
  2. # It is automatically generated from 'sklearn\\utils\\_weight_vector.pxd.tp'.
  3. # Changes must be made there.
  4. cdef class WeightVector64(object):
  5. cdef readonly double[::1] w
  6. cdef readonly double[::1] aw
  7. cdef double *w_data_ptr
  8. cdef double *aw_data_ptr
  9. cdef double wscale
  10. cdef double average_a
  11. cdef double average_b
  12. cdef int n_features
  13. cdef double sq_norm
  14. cdef void add(self, double *x_data_ptr, int *x_ind_ptr,
  15. int xnnz, double c) noexcept nogil
  16. cdef void add_average(self, double *x_data_ptr, int *x_ind_ptr,
  17. int xnnz, double c, double num_iter) noexcept nogil
  18. cdef double dot(self, double *x_data_ptr, int *x_ind_ptr,
  19. int xnnz) noexcept nogil
  20. cdef void scale(self, double c) noexcept nogil
  21. cdef void reset_wscale(self) noexcept nogil
  22. cdef double norm(self) noexcept nogil
  23. cdef class WeightVector32(object):
  24. cdef readonly float[::1] w
  25. cdef readonly float[::1] aw
  26. cdef float *w_data_ptr
  27. cdef float *aw_data_ptr
  28. cdef double wscale
  29. cdef double average_a
  30. cdef double average_b
  31. cdef int n_features
  32. cdef double sq_norm
  33. cdef void add(self, float *x_data_ptr, int *x_ind_ptr,
  34. int xnnz, float c) noexcept nogil
  35. cdef void add_average(self, float *x_data_ptr, int *x_ind_ptr,
  36. int xnnz, float c, float num_iter) noexcept nogil
  37. cdef float dot(self, float *x_data_ptr, int *x_ind_ptr,
  38. int xnnz) noexcept nogil
  39. cdef void scale(self, float c) noexcept nogil
  40. cdef void reset_wscale(self) noexcept nogil
  41. cdef float norm(self) noexcept nogil