|
1 | 1 | pub mod vortex_tensor |
2 | 2 |
|
3 | | -pub mod vortex_tensor::scalar_fns |
| 3 | +pub mod vortex_tensor::fixed_shape |
4 | 4 |
|
5 | | -pub mod vortex_tensor::scalar_fns::cosine_similarity |
| 5 | +pub struct vortex_tensor::fixed_shape::FixedShapeTensor |
6 | 6 |
|
7 | | -pub struct vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity |
| 7 | +impl core::clone::Clone for vortex_tensor::fixed_shape::FixedShapeTensor |
8 | 8 |
|
9 | | -impl core::clone::Clone for vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity |
| 9 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensor::clone(&self) -> vortex_tensor::fixed_shape::FixedShapeTensor |
10 | 10 |
|
11 | | -pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::clone(&self) -> vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity |
| 11 | +impl core::cmp::Eq for vortex_tensor::fixed_shape::FixedShapeTensor |
12 | 12 |
|
13 | | -impl vortex_array::scalar_fn::vtable::ScalarFnVTable for vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity |
| 13 | +impl core::cmp::PartialEq for vortex_tensor::fixed_shape::FixedShapeTensor |
14 | 14 |
|
15 | | -pub type vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::Options = vortex_array::scalar_fn::vtable::EmptyOptions |
| 15 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensor::eq(&self, other: &vortex_tensor::fixed_shape::FixedShapeTensor) -> bool |
16 | 16 |
|
17 | | -pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::arity(&self, _options: &Self::Options) -> vortex_array::scalar_fn::vtable::Arity |
| 17 | +impl core::default::Default for vortex_tensor::fixed_shape::FixedShapeTensor |
18 | 18 |
|
19 | | -pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::child_name(&self, _options: &Self::Options, child_idx: usize) -> vortex_array::scalar_fn::vtable::ChildName |
| 19 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensor::default() -> vortex_tensor::fixed_shape::FixedShapeTensor |
20 | 20 |
|
21 | | -pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::execute(&self, _options: &Self::Options, args: &dyn vortex_array::scalar_fn::vtable::ExecutionArgs, _ctx: &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<vortex_array::array::ArrayRef> |
| 21 | +impl core::fmt::Debug for vortex_tensor::fixed_shape::FixedShapeTensor |
22 | 22 |
|
23 | | -pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::fmt_sql(&self, _options: &Self::Options, expr: &vortex_array::expr::expression::Expression, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result |
| 23 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensor::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result |
24 | 24 |
|
25 | | -pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::id(&self) -> vortex_array::scalar_fn::ScalarFnId |
| 25 | +impl core::hash::Hash for vortex_tensor::fixed_shape::FixedShapeTensor |
26 | 26 |
|
27 | | -pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::is_fallible(&self, _options: &Self::Options) -> bool |
| 27 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensor::hash<__H: core::hash::Hasher>(&self, state: &mut __H) |
28 | 28 |
|
29 | | -pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::is_null_sensitive(&self, _options: &Self::Options) -> bool |
| 29 | +impl core::marker::StructuralPartialEq for vortex_tensor::fixed_shape::FixedShapeTensor |
30 | 30 |
|
31 | | -pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::return_dtype(&self, _options: &Self::Options, arg_dtypes: &[vortex_array::dtype::DType]) -> vortex_error::VortexResult<vortex_array::dtype::DType> |
| 31 | +impl vortex_array::dtype::extension::vtable::ExtVTable for vortex_tensor::fixed_shape::FixedShapeTensor |
32 | 32 |
|
33 | | -pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::validity(&self, _options: &Self::Options, expression: &vortex_array::expr::expression::Expression) -> vortex_error::VortexResult<core::option::Option<vortex_array::expr::expression::Expression>> |
| 33 | +pub type vortex_tensor::fixed_shape::FixedShapeTensor::Metadata = vortex_tensor::fixed_shape::FixedShapeTensorMetadata |
34 | 34 |
|
35 | | -pub struct vortex_tensor::FixedShapeTensor |
| 35 | +pub type vortex_tensor::fixed_shape::FixedShapeTensor::NativeValue<'a> = &'a vortex_array::scalar::scalar_value::ScalarValue |
36 | 36 |
|
37 | | -impl core::clone::Clone for vortex_tensor::FixedShapeTensor |
| 37 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensor::deserialize_metadata(&self, metadata: &[u8]) -> vortex_error::VortexResult<Self::Metadata> |
38 | 38 |
|
39 | | -pub fn vortex_tensor::FixedShapeTensor::clone(&self) -> vortex_tensor::FixedShapeTensor |
| 39 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensor::id(&self) -> vortex_array::dtype::extension::ExtId |
40 | 40 |
|
41 | | -impl core::cmp::Eq for vortex_tensor::FixedShapeTensor |
| 41 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensor::serialize_metadata(&self, metadata: &Self::Metadata) -> vortex_error::VortexResult<alloc::vec::Vec<u8>> |
42 | 42 |
|
43 | | -impl core::cmp::PartialEq for vortex_tensor::FixedShapeTensor |
| 43 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensor::unpack_native<'a>(&self, _metadata: &'a Self::Metadata, _storage_dtype: &'a vortex_array::dtype::DType, storage_value: &'a vortex_array::scalar::scalar_value::ScalarValue) -> vortex_error::VortexResult<Self::NativeValue> |
44 | 44 |
|
45 | | -pub fn vortex_tensor::FixedShapeTensor::eq(&self, other: &vortex_tensor::FixedShapeTensor) -> bool |
| 45 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensor::validate_dtype(&self, metadata: &Self::Metadata, storage_dtype: &vortex_array::dtype::DType) -> vortex_error::VortexResult<()> |
46 | 46 |
|
47 | | -impl core::default::Default for vortex_tensor::FixedShapeTensor |
| 47 | +pub struct vortex_tensor::fixed_shape::FixedShapeTensorMetadata |
48 | 48 |
|
49 | | -pub fn vortex_tensor::FixedShapeTensor::default() -> vortex_tensor::FixedShapeTensor |
| 49 | +impl vortex_tensor::fixed_shape::FixedShapeTensorMetadata |
50 | 50 |
|
51 | | -impl core::fmt::Debug for vortex_tensor::FixedShapeTensor |
| 51 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::dim_names(&self) -> core::option::Option<&[alloc::string::String]> |
52 | 52 |
|
53 | | -pub fn vortex_tensor::FixedShapeTensor::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result |
| 53 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::logical_shape(&self) -> &[usize] |
54 | 54 |
|
55 | | -impl core::hash::Hash for vortex_tensor::FixedShapeTensor |
| 55 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::ndim(&self) -> usize |
56 | 56 |
|
57 | | -pub fn vortex_tensor::FixedShapeTensor::hash<__H: core::hash::Hasher>(&self, state: &mut __H) |
| 57 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::new(shape: alloc::vec::Vec<usize>) -> Self |
58 | 58 |
|
59 | | -impl core::marker::StructuralPartialEq for vortex_tensor::FixedShapeTensor |
| 59 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::permutation(&self) -> core::option::Option<&[usize]> |
60 | 60 |
|
61 | | -impl vortex_array::dtype::extension::vtable::ExtVTable for vortex_tensor::FixedShapeTensor |
| 61 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::physical_shape(&self) -> impl core::iter::traits::iterator::Iterator<Item = usize> + '_ |
62 | 62 |
|
63 | | -pub type vortex_tensor::FixedShapeTensor::Metadata = vortex_tensor::FixedShapeTensorMetadata |
| 63 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::strides(&self) -> impl core::iter::traits::iterator::Iterator<Item = usize> + '_ |
64 | 64 |
|
65 | | -pub type vortex_tensor::FixedShapeTensor::NativeValue<'a> = &'a vortex_array::scalar::scalar_value::ScalarValue |
| 65 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::with_dim_names(self, names: alloc::vec::Vec<alloc::string::String>) -> vortex_error::VortexResult<Self> |
66 | 66 |
|
67 | | -pub fn vortex_tensor::FixedShapeTensor::deserialize_metadata(&self, metadata: &[u8]) -> vortex_error::VortexResult<Self::Metadata> |
| 67 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::with_permutation(self, permutation: alloc::vec::Vec<usize>) -> vortex_error::VortexResult<Self> |
68 | 68 |
|
69 | | -pub fn vortex_tensor::FixedShapeTensor::id(&self) -> vortex_array::dtype::extension::ExtId |
| 69 | +impl core::clone::Clone for vortex_tensor::fixed_shape::FixedShapeTensorMetadata |
70 | 70 |
|
71 | | -pub fn vortex_tensor::FixedShapeTensor::serialize_metadata(&self, metadata: &Self::Metadata) -> vortex_error::VortexResult<alloc::vec::Vec<u8>> |
| 71 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::clone(&self) -> vortex_tensor::fixed_shape::FixedShapeTensorMetadata |
72 | 72 |
|
73 | | -pub fn vortex_tensor::FixedShapeTensor::unpack_native<'a>(&self, _metadata: &'a Self::Metadata, _storage_dtype: &'a vortex_array::dtype::DType, storage_value: &'a vortex_array::scalar::scalar_value::ScalarValue) -> vortex_error::VortexResult<Self::NativeValue> |
| 73 | +impl core::cmp::Eq for vortex_tensor::fixed_shape::FixedShapeTensorMetadata |
74 | 74 |
|
75 | | -pub fn vortex_tensor::FixedShapeTensor::validate_dtype(&self, metadata: &Self::Metadata, storage_dtype: &vortex_array::dtype::DType) -> vortex_error::VortexResult<()> |
| 75 | +impl core::cmp::PartialEq for vortex_tensor::fixed_shape::FixedShapeTensorMetadata |
76 | 76 |
|
77 | | -pub struct vortex_tensor::FixedShapeTensorMetadata |
| 77 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::eq(&self, other: &vortex_tensor::fixed_shape::FixedShapeTensorMetadata) -> bool |
78 | 78 |
|
79 | | -impl vortex_tensor::FixedShapeTensorMetadata |
| 79 | +impl core::fmt::Debug for vortex_tensor::fixed_shape::FixedShapeTensorMetadata |
80 | 80 |
|
81 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::dim_names(&self) -> core::option::Option<&[alloc::string::String]> |
| 81 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result |
82 | 82 |
|
83 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::logical_shape(&self) -> &[usize] |
| 83 | +impl core::fmt::Display for vortex_tensor::fixed_shape::FixedShapeTensorMetadata |
84 | 84 |
|
85 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::ndim(&self) -> usize |
| 85 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result |
86 | 86 |
|
87 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::new(shape: alloc::vec::Vec<usize>) -> Self |
| 87 | +impl core::hash::Hash for vortex_tensor::fixed_shape::FixedShapeTensorMetadata |
88 | 88 |
|
89 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::permutation(&self) -> core::option::Option<&[usize]> |
| 89 | +pub fn vortex_tensor::fixed_shape::FixedShapeTensorMetadata::hash<__H: core::hash::Hasher>(&self, state: &mut __H) |
90 | 90 |
|
91 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::physical_shape(&self) -> impl core::iter::traits::iterator::Iterator<Item = usize> + '_ |
| 91 | +impl core::marker::StructuralPartialEq for vortex_tensor::fixed_shape::FixedShapeTensorMetadata |
92 | 92 |
|
93 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::strides(&self) -> impl core::iter::traits::iterator::Iterator<Item = usize> + '_ |
| 93 | +pub mod vortex_tensor::scalar_fns |
94 | 94 |
|
95 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::with_dim_names(self, names: alloc::vec::Vec<alloc::string::String>) -> vortex_error::VortexResult<Self> |
| 95 | +pub mod vortex_tensor::scalar_fns::cosine_similarity |
| 96 | + |
| 97 | +pub struct vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity |
96 | 98 |
|
97 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::with_permutation(self, permutation: alloc::vec::Vec<usize>) -> vortex_error::VortexResult<Self> |
| 99 | +impl core::clone::Clone for vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity |
98 | 100 |
|
99 | | -impl core::clone::Clone for vortex_tensor::FixedShapeTensorMetadata |
| 101 | +pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::clone(&self) -> vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity |
100 | 102 |
|
101 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::clone(&self) -> vortex_tensor::FixedShapeTensorMetadata |
| 103 | +impl vortex_array::scalar_fn::vtable::ScalarFnVTable for vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity |
102 | 104 |
|
103 | | -impl core::cmp::Eq for vortex_tensor::FixedShapeTensorMetadata |
| 105 | +pub type vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::Options = vortex_array::scalar_fn::vtable::EmptyOptions |
104 | 106 |
|
105 | | -impl core::cmp::PartialEq for vortex_tensor::FixedShapeTensorMetadata |
| 107 | +pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::arity(&self, _options: &Self::Options) -> vortex_array::scalar_fn::vtable::Arity |
106 | 108 |
|
107 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::eq(&self, other: &vortex_tensor::FixedShapeTensorMetadata) -> bool |
| 109 | +pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::child_name(&self, _options: &Self::Options, child_idx: usize) -> vortex_array::scalar_fn::vtable::ChildName |
108 | 110 |
|
109 | | -impl core::fmt::Debug for vortex_tensor::FixedShapeTensorMetadata |
| 111 | +pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::execute(&self, _options: &Self::Options, args: &dyn vortex_array::scalar_fn::vtable::ExecutionArgs, _ctx: &mut vortex_array::executor::ExecutionCtx) -> vortex_error::VortexResult<vortex_array::array::ArrayRef> |
110 | 112 |
|
111 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result |
| 113 | +pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::fmt_sql(&self, _options: &Self::Options, expr: &vortex_array::expr::expression::Expression, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result |
112 | 114 |
|
113 | | -impl core::fmt::Display for vortex_tensor::FixedShapeTensorMetadata |
| 115 | +pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::id(&self) -> vortex_array::scalar_fn::ScalarFnId |
114 | 116 |
|
115 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result |
| 117 | +pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::is_fallible(&self, _options: &Self::Options) -> bool |
116 | 118 |
|
117 | | -impl core::hash::Hash for vortex_tensor::FixedShapeTensorMetadata |
| 119 | +pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::is_null_sensitive(&self, _options: &Self::Options) -> bool |
118 | 120 |
|
119 | | -pub fn vortex_tensor::FixedShapeTensorMetadata::hash<__H: core::hash::Hasher>(&self, state: &mut __H) |
| 121 | +pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::return_dtype(&self, _options: &Self::Options, arg_dtypes: &[vortex_array::dtype::DType]) -> vortex_error::VortexResult<vortex_array::dtype::DType> |
120 | 122 |
|
121 | | -impl core::marker::StructuralPartialEq for vortex_tensor::FixedShapeTensorMetadata |
| 123 | +pub fn vortex_tensor::scalar_fns::cosine_similarity::CosineSimilarity::validity(&self, _options: &Self::Options, expression: &vortex_array::expr::expression::Expression) -> vortex_error::VortexResult<core::option::Option<vortex_array::expr::expression::Expression>> |
0 commit comments