simulate_magnetization_derivative
-
Array<cfloat, 2> compas::simulate_magnetization_derivative(const CudaContext &context, int field, Array<cfloat, 2> echos, TissueParameters parameters, FISPSequence sequence, float delta = DEFAULT_FINITE_DIFFERENCE_DELTA)
Calculate the derivative of the magnetization at echo times given by
simulate_magnetization
.- Parameters:
context – The context.
field – One of the fields given by
TissueParameterField
.echos – The echos calculated by
simulate_magnetization
.parameters – The tissue parameters.
sequence – The FISP sequence
delta – The Δ used for calculating the finite difference method.
- Returns:
An array of dimensions
[nreadouts, nvoxels]
giving the derivative over the given field of the magnetization at each voxel for each readout.
-
Array<cfloat, 2> compas::simulate_magnetization_derivative(const CudaContext &context, int field, Array<cfloat, 2> echos, TissueParameters parameters, pSSFPSequence sequence, float delta = DEFAULT_FINITE_DIFFERENCE_DELTA)
Calculate the derivative of the magnetization at echo times given by
simulate_magnetization
.- Parameters:
context – The context.
field – One of the fields given by
TissueParameterField
.echos – The echos calculated by
simulate_magnetization
.parameters – The tissue parameters.
sequence – The pSSFP sequence
delta – The Δ used for calculating the finite difference method.
- Returns:
An array of dimensions
[nreadouts, nvoxels]
giving the derivative over the given field of the magnetization at each voxel for each readout.