Structure
structure
¶
Structure discipline for the Sobieski's SSBJ use case.
Classes¶
JAXSobieskiStructure
¶
JAXSobieskiStructure()
Bases: BaseJAXSobieskiDiscipline
Structure discipline for the Sobieski's SSBJ use case.
Initialize the JAXDiscipline.
Source code in src/gemseo_jax/problems/sobieski/structure.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
|
Attributes¶
jax_out_func
instance-attribute
¶
jax_out_func: Callable[[DataType], DataType] = function
The JAX function to compute the outputs from the inputs.
Classes¶
DifferentiationMethod
¶
Bases: StrEnum
The method to compute the Jacobian.
Functions¶
add_differentiated_inputs
¶
Add the inputs with respect to which to differentiate the outputs.
The inputs that do not represent continuous numbers are filtered out.
Parameters:
-
input_names
(Iterable[str]
, default:()
) –The input variables with respect to which to differentiate the outputs. If empty, use all the inputs.
Raises:
-
ValueError
–When an input name is not the name of a discipline input.
Notes
The Jacobian is also filtered to view non-differentiated static.
Source code in src/gemseo_jax/jax_discipline.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
|
add_differentiated_outputs
¶
Add the outputs to be differentiated.
The outputs that do not represent continuous numbers are filtered out.
Parameters:
-
output_names
(Iterable[str]
, default:()
) –The outputs to be differentiated. If empty, use all the outputs.
Raises:
-
ValueError
–When an output name is not the name of a discipline output.
Notes
The Jacobian is also filtered to view non-differentiated static.
Source code in src/gemseo_jax/jax_discipline.py
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
|
compile_jit
¶
compile_jit(pre_run: bool = True) -> None
Apply jit compilation over function and jacobian.
Parameters:
-
pre_run
(bool
, default:True
) –Whether to call jitted callables once to trigger compilation and log times.
Source code in src/gemseo_jax/jax_discipline.py
217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
|