types
JuliaElementFType
Bases: ABC
Source code in src/finch/compile_jl/types.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |
julia_type()
abstractmethod
Return the Julia type used for elements with this ftype.
Source code in src/finch/compile_jl/types.py
66 67 68 69 70 71 | |
julia_value(value, *, offset=0)
abstractmethod
Convert a Python value with this ftype into a Julia element value.
Source code in src/finch/compile_jl/types.py
73 74 75 76 77 78 | |
ftype_to_jl_constructor_str(ftype)
Julia source text constructing a minimal instance of ftype, for
embedding directly in generated kernel source (see compiler.py).
Source code in src/finch/compile_jl/types.py
297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 | |
ftype_to_jl_type_str(ftype)
Julia type as source text (e.g. for a cache key). Cached per ftype.
Source code in src/finch/compile_jl/types.py
389 390 391 392 393 394 395 396 397 398 | |
scalar_type_str(fill, element_type)
The Julia type of a Finch scalar with the given fill and element type.
Source code in src/finch/compile_jl/types.py
219 220 221 | |
to_fl_dtype(x)
Normalize a Julia DataType, numpy dtype/scalar type, Python builtin type, or finch FType into the corresponding finch FType.
Source code in src/finch/compile_jl/types.py
121 122 123 124 125 126 127 128 129 130 131 132 133 | |