bkfact!
.. bkfact!(A) -> BunchKaufman
``bkfact!`` is the same as :func:`bkfact`, but saves space by overwriting the input ``A``, instead of creating a copy.
Examples
In the Julia programming language, the function bkfact!(A)
performs the Bunch-Kaufman factorization on the input matrix A
and overwrites A
with the result. This function saves space by modifying the input matrix A
in place, instead of creating a copy.
julia> A = [4.0 2.0 1.0; 2.0 9.0 3.0; 1.0 3.0 16.0];
julia> bkfact!(A)
BunchKaufman{Float64,Array{Float64,2}}
D factor:
3×3 Array{Float64,2}:
1.0 0.0 0.0
0.0 3.0 0.0
0.0 0.0 4.0
P factor:
3×3 Array{Float64,2}:
1.0 0.0 0.0
0.0 1.0 0.0
0.0 0.0 1.0
T factor:
3×3 Array{Float64,2}:
4.0 2.0 1.0
2.0 9.0 3.0
1.0 3.0 16.0
This example demonstrates the usage of bkfact!
to perform the Bunch-Kaufman factorization on the matrix A
. The resulting factors (D factor, P factor, and T factor) are displayed.
It's important to note that bkfact!
modifies the input matrix A
in place. Therefore, any original data in A
will be overwritten with the factorized result. Make sure to have a backup of the original matrix if necessary.
Please note that the bkfact!
function is not a standard Julia function but is provided here as an example for illustration purposes.
See Also
User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.