types
JuliaElementFType
Bases: ABC
Source code in src/finch/compile_jl/types.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
julia_type()
abstractmethod
Return the Julia type used for elements with this ftype.
Source code in src/finch/compile_jl/types.py
71 72 73 74 75 76 | |
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
78 79 80 81 82 83 | |
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
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 384 385 386 387 388 389 390 391 392 393 394 395 396 397 | |
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
403 404 405 406 407 408 409 410 411 412 | |
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
233 234 235 | |
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
126 127 128 129 130 131 132 133 134 135 136 137 138 | |