utils#
Module: fridom.framework.utils
Classes, Functions, and Variables
bool(x) -> bool |
|
bool(x) -> bool |
|
Barrier synchronization for MPI. |
|
Get the number of MPI processes. |
|
Get the rank of the current MPI process. |
|
Print a bar to the log file. |
Print the job starting time and the number of MPI processes. |
|
Format a length in human readable format [mm, cm, m, km]. |
|
Format a time in human readable format. |
|
Format a number in human readable format. |
Change the current working directory to the directory where the job was submitted. |
|
Check if the standard output is a file. |
|
Class to make an object sliceable. |
|
Return a new array with the modifications. |
|
Create a random array. |
|
Check if an array is constant. |
|
Creates a deep copy of an object with all arrays converted to numpy. |
|
Convert a time to seconds. |
|
Decorator for JAX JIT compilation. |
|
Add JAX pytree support to a class (for jit compilation). |
|
Inspect if a jit compiled function has communication operations. |
This function deletes all live buffers in the JAX backend. |
|
Skip a function when building the documentation. |
|
Cache a figure to disk, if it exists return the image from disk. |
Utility functions and classes for the FRIDOM framework.