Þ ¥bonds€¬cell_results‡Ù$bee5f314-e6dd-48bb-8a57-d12b4d289032Š¦queuedÂ¤logs‘ˆ¤lineÿ£msg’Ù`Test Summary:       | Pass  Broken  Total  Time
ModifiedGramSchmidt |    8       2     10  0.8s
ªtext/plain§cell_idÙ$bee5f314-e6dd-48bb-8a57-d12b4d289032¦kwargs�¢id´PlutoRunner_d1acb81e¤fileÙR/home/runner/.julia/packages/Pluto/sGdT2/src/runner/PlutoRunner/src/PlutoRunner.jl¥group«PlutoRunner¥level®LogLevel(-555)§runningÂ¦output†¤body…¦prefix³Test.DefaultTestSet¨elementsš’«description’µ"ModifiedGramSchmidt"ªtext/plain’§results’…¦prefix£Any¨elements’’’ÙMTest Broken
  Expression: â‰ˆ(abs(innerproduct(q2, q3)), 0.0, atol = 1.0e-16)ªtext/plain’’ÙMTest Broken
  Expression: â‰ˆ(abs(innerproduct(q1, q3)), 0.0, atol = 1.0e-16)ªtext/plain¤type¥Array¬prefix_short ¨objectid°ff2b1cc6f4a021a8Ù!application/vnd.pluto.tree+object’¨n_passed’¡8ªtext/plain’ªanynonpass’¥falseªtext/plain’§verbose’¥falseªtext/plain’ªshowtiming’¤trueªtext/plain’ªtime_start’³1.723031663026548e9ªtext/plain’¨time_end’³1.723031663821621e9ªtext/plain’¨failfast’¥falseªtext/plain’¤file’Ù\"/home/runner/work/intro2software_wi" â‹¯ 96 bytes â‹¯ "ee5f314-e6dd-48bb-8a57-d12b4d289032"ªtext/plain¤type¦struct¬prefix_short®DefaultTestSet¨objectid°d7dd622e2e94d727¤mimeÙ!application/vnd.pluto.tree+object¬rootassigneeÀ²last_run_timestampËAÙ¬Øì°persist_js_stateÂ·has_pluto_hook_featuresÂ§cell_idÙ$bee5f314-e6dd-48bb-8a57-d12b4d289032¹depends_on_disabled_cellsÂ§runtimeÎ4âôœµpublished_object_keys�¸depends_on_skipped_cellsÂ§erroredÂÙ$40e2ae0c-d2af-11ee-31c9-dfa8f7798362Š¦queuedÂ¤logs�§runningÂ¦output†¤bodyÙ/orthonormalize (generic function with 1 method)¤mimeªtext/plain¬rootassigneeÀ²last_run_timestampËAÙ¬ØIàü°persist_js_stateÂ·has_pluto_hook_featuresÂ§cell_idÙ$40e2ae0c-d2af-11ee-31c9-dfa8f7798362¹depends_on_disabled_cellsÂ§runtimeÎ ñ5¿µpublished_object_keys�¸depends_on_skipped_cellsÂ§erroredÂÙ$393e5b2d-c126-4827-9d91-b0539dfc02f1Š¦queuedÂ¤logs‘ˆ¤lineÿ£msg’ÙˆTest Summary: | Pass  Total  Time
innerproduct  |    5      5  0.1s
Test Summary: | Pass  Total  Time
norm          |    4      4  0.0s
ªtext/plain§cell_idÙ$393e5b2d-c126-4827-9d91-b0539dfc02f1¦kwargs�¢id´PlutoRunner_d1acb81e¤fileÙR/home/runner/.julia/packages/Pluto/sGdT2/src/runner/PlutoRunner/src/PlutoRunner.jl¥group«PlutoRunner¥level®LogLevel(-555)§runningÂ¦output†¤body ¤mimeªtext/plain¬rootassigneeÀ²last_run_timestampËAÙ¬ØB�°persist_js_stateÂ·has_pluto_hook_featuresÂ§cell_idÙ$393e5b2d-c126-4827-9d91-b0539dfc02f1¹depends_on_disabled_cellsÂ§runtimeÎ	­Dµpublished_object_keys�¸depends_on_skipped_cellsÂ§erroredÂÙ$f1d2f741-7774-460c-87e7-9b2f2cfa3d9fŠ¦queuedÂ¤logs�§runningÂ¦output†¤body ¤mimeªtext/plain¬rootassigneeÀ²last_run_timestampËAÙ¬Ø¥X°persist_js_stateÂ·has_pluto_hook_featuresÂ§cell_idÙ$f1d2f741-7774-460c-87e7-9b2f2cfa3d9f¹depends_on_disabled_cellsÂ§runtimeÎ±xòµpublished_object_keys�¸depends_on_skipped_cellsÂ§erroredÂÙ$f786af1c-bb14-482b-8d6c-cf204f2d71daŠ¦queuedÂ¤logs�§runningÂ¦output†¤bodyÙP<div class="markdown"><h1>ä¿®æ­£ã‚°ãƒ©ãƒ ã‚·ãƒ¥ãƒŸãƒƒãƒˆã�®ç›´äº¤åŒ–</h1>
</div>¤mime©text/html¬rootassigneeÀ²last_run_timestampËAÙ¬Øÿ%À°persist_js_stateÂ·has_pluto_hook_featuresÂ§cell_idÙ$f786af1c-bb14-482b-8d6c-cf204f2d71da¹depends_on_disabled_cellsÂ§runtimeÎ •Y
µpublished_object_keys�¸depends_on_skipped_cellsÂ§erroredÂÙ$18c479b4-c714-472b-abad-b03cc6afb206Š¦queuedÂ¤logs�§runningÂ¦output†¤bodyÙ%norm (generic function with 1 method)¤mimeªtext/plain¬rootassigneeÀ²last_run_timestampËAÙ¬Ø
:?°persist_js_stateÂ·has_pluto_hook_featuresÂ§cell_idÙ$18c479b4-c714-472b-abad-b03cc6afb206¹depends_on_disabled_cellsÂ§runtimeÎ S}Ôµpublished_object_keys�¸depends_on_skipped_cellsÂ§erroredÂÙ$532c14fe-bede-46b5-8888-a7045fd8d93cŠ¦queuedÂ¤logs�§runningÂ¦output†¤body ¤mimeªtext/plain¬rootassigneeÀ²last_run_timestampËAÙ¬ØD$¼°persist_js_stateÂ·has_pluto_hook_featuresÂ§cell_idÙ$532c14fe-bede-46b5-8888-a7045fd8d93c¹depends_on_disabled_cellsÂ§runtimeÎ Èµpublished_object_keys�¸depends_on_skipped_cellsÂ§erroredÂ±cell_dependencies‡Ù$bee5f314-e6dd-48bb-8a57-d12b4d289032„´precedence_heuristic	§cell_idÙ$bee5f314-e6dd-48bb-8a57-d12b4d289032´downstream_cells_map€²upstream_cells_mapÞ *©Test.copy�¬Test.rethrow�¬@test_broken�±Test.Random.seed!�ªTest.Error�°Test.pop_testset�¤Test‘Ù$f1d2f741-7774-460c-87e7-9b2f2cfa3d9f¼Test.Random.set_global_seed!�®Test.eval_test�¼Test.Base.current_exceptions�ªTest.copy!�¨Test.isa�«Test.record�¬innerproduct‘Ù$18c479b4-c714-472b-abad-b03cc6afb206³Test._check_testset�ªTest.Threw�³ModifiedGramSchmidt‘Ù$532c14fe-bede-46b5-8888-a7045fd8d93c°Test.default_rng�¤copy�©Test.Expr�¥@test�³Test.failfast_print�«Test.typeof�®orthonormalize‘Ù$40e2ae0c-d2af-11ee-31c9-dfa8f7798362£abs�©StableRNG�¶Test.get_testset_depth�£â‰ˆ�¡:�±Test.push_testset�«Test.finish�°Test.get_testset�¤rand�¿Test.trigger_test_failure_break�§Test.==�³Test.do_broken_test�«Test.Broken�¨Test.===�¡*�§Test.=>�¨@testset�¦Test.>�Ù$40e2ae0c-d2af-11ee-31c9-dfa8f7798362„´precedence_heuristic	§cell_idÙ$40e2ae0c-d2af-11ee-31c9-dfa8f7798362´downstream_cells_map�®orthonormalize‘Ù$bee5f314-e6dd-48bb-8a57-d12b4d289032²upstream_cells_map�¡:�¥@view�¨@__dot__�£â‹…‘Ù$18c479b4-c714-472b-abad-b03cc6afb206¤size�¤norm‘Ù$18c479b4-c714-472b-abad-b03cc6afb206§similar�¡-�³ModifiedGramSchmidt‘Ù$532c14fe-bede-46b5-8888-a7045fd8d93c¡/�¤Type�¡+�¡*�Ù$393e5b2d-c126-4827-9d91-b0539dfc02f1„´precedence_heuristic	§cell_idÙ$393e5b2d-c126-4827-9d91-b0539dfc02f1´downstream_cells_map€²upstream_cells_mapÞ (©Test.copy�¬Test.rethrow�ªTest.Error�±Test.Random.seed!�£âˆš�°Test.pop_testset�£â‹…‘Ù$18c479b4-c714-472b-abad-b03cc6afb206¼Test.Random.set_global_seed!�®Test.eval_test�¤sqrt�¤Test‘Ù$f1d2f741-7774-460c-87e7-9b2f2cfa3d9f§nothing�ªTest.copy!�¨Test.isa�«Test.record�¬innerproduct‘Ù$18c479b4-c714-472b-abad-b03cc6afb206³Test._check_testset�ªTest.Threw�¼Test.Base.current_exceptions�°Test.default_rng�¡^�©Test.Expr�¥@test�³Test.failfast_print�¢==�«Test.typeof�±Test.push_testset�©StableRNG�¶Test.get_testset_depth�£â‰ˆ�«Test.finish�°Test.get_testset�¤norm‘Ù$18c479b4-c714-472b-abad-b03cc6afb206¤rand�¿Test.trigger_test_failure_break�§Test.==�«Test.Broken�¨Test.===�¨@testset�¦Test.>�Ù$f1d2f741-7774-460c-87e7-9b2f2cfa3d9f„´precedence_heuristic§cell_idÙ$f1d2f741-7774-460c-87e7-9b2f2cfa3d9f´downstream_cells_map‚¤Test’Ù$393e5b2d-c126-4827-9d91-b0539dfc02f1Ù$bee5f314-e6dd-48bb-8a57-d12b4d289032ªStableRNGs�²upstream_cells_map€Ù$f786af1c-bb14-482b-8d6c-cf204f2d71da„´precedence_heuristic	§cell_idÙ$f786af1c-bb14-482b-8d6c-cf204f2d71da´downstream_cells_map€²upstream_cells_map‚§@md_str�¨getindex�Ù$18c479b4-c714-472b-abad-b03cc6afb206„´precedence_heuristic	§cell_idÙ$18c479b4-c714-472b-abad-b03cc6afb206´downstream_cells_mapƒ¬innerproduct’Ù$393e5b2d-c126-4827-9d91-b0539dfc02f1Ù$bee5f314-e6dd-48bb-8a57-d12b4d289032£â‹…’Ù$393e5b2d-c126-4827-9d91-b0539dfc02f1Ù$40e2ae0c-d2af-11ee-31c9-dfa8f7798362¤norm’Ù$393e5b2d-c126-4827-9d91-b0539dfc02f1Ù$40e2ae0c-d2af-11ee-31c9-dfa8f7798362²upstream_cells_mapŠ¤zero�©eachindex�®AbstractVector�¤sqrt�£pop�¦eltype�¡+�©@inbounds�¡*�£âˆš�Ù$532c14fe-bede-46b5-8888-a7045fd8d93c„´precedence_heuristic	§cell_idÙ$532c14fe-bede-46b5-8888-a7045fd8d93c´downstream_cells_map�³ModifiedGramSchmidt’Ù$40e2ae0c-d2af-11ee-31c9-dfa8f7798362Ù$bee5f314-e6dd-48bb-8a57-d12b4d289032²upstream_cells_map€´cell_execution_order—Ù$f1d2f741-7774-460c-87e7-9b2f2cfa3d9fÙ$f786af1c-bb14-482b-8d6c-cf204f2d71daÙ$18c479b4-c714-472b-abad-b03cc6afb206Ù$393e5b2d-c126-4827-9d91-b0539dfc02f1Ù$532c14fe-bede-46b5-8888-a7045fd8d93cÙ$40e2ae0c-d2af-11ee-31c9-dfa8f7798362Ù$bee5f314-e6dd-48bb-8a57-d12b4d289032´last_hot_reload_timeË        ©shortpath¸modified_gram_schdmit.jl®process_status¥ready¤pathÙ~/home/runner/work/intro2software_with_julia_pluto_materials/intro2software_with_julia_pluto_materials/modified_gram_schdmit.jl­pluto_version¨v0.19.45®last_save_timeËAÙ¬Øüðöªcell_order—Ù$f786af1c-bb14-482b-8d6c-cf204f2d71daÙ$f1d2f741-7774-460c-87e7-9b2f2cfa3d9fÙ$18c479b4-c714-472b-abad-b03cc6afb206Ù$393e5b2d-c126-4827-9d91-b0539dfc02f1Ù$532c14fe-bede-46b5-8888-a7045fd8d93cÙ$40e2ae0c-d2af-11ee-31c9-dfa8f7798362Ù$bee5f314-e6dd-48bb-8a57-d12b4d289032±published_objects€¥nbpkgŠ¯install_time_nsÏ   AÎo¬instantiatedÃ²installed_versions‚¤Test¦stdlibªStableRNGs¥1.0.1°terminal_outputsƒªnbpkg_syncÚ<
[0m[1mInstantiating...[22m
[90m===[39m
[32m[1m   Installed[22m[39m StableRNGs â”€ v1.0.1
                                                                              
[0m[1mResolving...[22m
[90m===[39m
[32m[1m  No Changes[22m[39m to `/tmp/jl_z9JjzI/Project.toml`
[32m[1m  No Changes[22m[39m to `/tmp/jl_z9JjzI/Manifest.toml`

[0m[1mPrecompiling...[22m
[90m===[39m
[32m[1m  Activating[22m[39m project at `/tmp/jl_z9JjzI`
[32m[1mPrecompiling[22m[39m project...
  1 dependency successfully precompiled in 1 seconds. 1 already precompiled.¤TestÚ<
[0m[1mInstantiating...[22m
[90m===[39m
[32m[1m   Installed[22m[39m StableRNGs â”€ v1.0.1
                                                                              
[0m[1mResolving...[22m
[90m===[39m
[32m[1m  No Changes[22m[39m to `/tmp/jl_z9JjzI/Project.toml`
[32m[1m  No Changes[22m[39m to `/tmp/jl_z9JjzI/Manifest.toml`

[0m[1mPrecompiling...[22m
[90m===[39m
[32m[1m  Activating[22m[39m project at `/tmp/jl_z9JjzI`
[32m[1mPrecompiling[22m[39m project...
  1 dependency successfully precompiled in 1 seconds. 1 already precompiled.ªStableRNGsÚ<
[0m[1mInstantiating...[22m
[90m===[39m
[32m[1m   Installed[22m[39m StableRNGs â”€ v1.0.1
                                                                              
[0m[1mResolving...[22m
[90m===[39m
[32m[1m  No Changes[22m[39m to `/tmp/jl_z9JjzI/Project.toml`
[32m[1m  No Changes[22m[39m to `/tmp/jl_z9JjzI/Manifest.toml`

[0m[1mPrecompiling...[22m
[90m===[39m
[32m[1m  Activating[22m[39m project at `/tmp/jl_z9JjzI`
[32m[1mPrecompiling[22m[39m project...
  1 dependency successfully precompiled in 1 seconds. 1 already precompiled.§enabledÃ·restart_recommended_msgÀ´restart_required_msgÀ­busy_packages�¶waiting_for_permissionÂÙ,waiting_for_permission_but_probably_disabledÂ«cell_inputs‡Ù$bee5f314-e6dd-48bb-8a57-d12b4d289032„§cell_idÙ$bee5f314-e6dd-48bb-8a57-d12b4d289032¤codeÚ«@testset "ModifiedGramSchmidt" begin
    rng = StableRNG(123)
    A = rand(rng, 10, 10)

    Q, R = orthonormalize(ModifiedGramSchmidt, copy(A))
	@test A â‰ˆ Q*R
	q1 = Q[:, 1]
	q2 = Q[:, 2]
	q3 = Q[:, 3]

    @test innerproduct(q1, q1) â‰ˆ 1.0
    @test innerproduct(q2, q2) â‰ˆ 1.0
    @test innerproduct(q3, q3) â‰ˆ 1.0

    @test abs(innerproduct(q1, q2)) â‰ˆ 0.0 atol = 1e-14
    @test abs(innerproduct(q2, q3)) â‰ˆ 0.0 atol = 1e-14
    @test abs(innerproduct(q1, q3)) â‰ˆ 0.0 atol = 1e-14

    @test abs(innerproduct(q1, q2)) â‰ˆ 0.0 atol = 1e-16
    @test_broken abs(innerproduct(q2, q3)) â‰ˆ 0.0 atol = 1e-16
    @test_broken abs(innerproduct(q1, q3)) â‰ˆ 0.0 atol = 1e-16
end¨metadataƒ©show_logsÃ¨disabledÂ®skip_as_scriptÂ«code_foldedÂÙ$40e2ae0c-d2af-11ee-31c9-dfa8f7798362„§cell_idÙ$40e2ae0c-d2af-11ee-31c9-dfa8f7798362¤codeÚfunction orthonormalize(::Type{ModifiedGramSchmidt}, A)
	aâ‚� = A[:, 1]
	m = size(A, 2)
	râ‚�â‚� = norm(aâ‚�)
	qâ‚� = aâ‚� / râ‚�â‚�
	Q = similar(A)
	R = similar(A, m, m)
	Q[:, 1] .= qâ‚�
	R[1,1] = râ‚�â‚�
	for n in 1:(m-1)
		aâ‚™â‚Šâ‚� = @view A[:, n+1]
		for i in 1:n
			qáµ¢ = @view Q[:, i]
			ráµ¢â‚�â‚™â‚Šâ‚�â‚Ž = qáµ¢ â‹… aâ‚™â‚Šâ‚�
			R[i, n+1] = ráµ¢â‚�â‚™â‚Šâ‚�â‚Ž
			@. aâ‚™â‚Šâ‚� = aâ‚™â‚Šâ‚� - ráµ¢â‚�â‚™â‚Šâ‚�â‚Ž * qáµ¢
		end
		râ‚�â‚™â‚Šâ‚�â‚Žâ‚�â‚™â‚Šâ‚�â‚Ž = norm(aâ‚™â‚Šâ‚�)
		R[n+1,n+1] = râ‚�â‚™â‚Šâ‚�â‚Žâ‚�â‚™â‚Šâ‚�â‚Ž
		qâ‚™â‚Šâ‚� = aâ‚™â‚Šâ‚� / râ‚�â‚™â‚Šâ‚�â‚Žâ‚�â‚™â‚Šâ‚�â‚Ž
		Q[:, n+1] .= qâ‚™â‚Šâ‚�
	end
	Q, R
end¨metadataƒ©show_logsÃ¨disabledÂ®skip_as_scriptÂ«code_foldedÂÙ$393e5b2d-c126-4827-9d91-b0539dfc02f1„§cell_idÙ$393e5b2d-c126-4827-9d91-b0539dfc02f1¤codeÚJbegin
    @testset "innerproduct" begin
        rng = StableRNG(999)
        x = rand(rng, 2)
        y = rand(rng, 2)

        @test innerproduct(x, y) == innerproduct(y, x)
        @test x â‹… y == y â‹… x

        @test innerproduct([1, 0], [0, 1]) == 0
        @test innerproduct([0, 1], [1, 0]) == 0
        @test innerproduct([1, 1], [1, 1]) â‰ˆ norm([1, 1])^2 â‰ˆ 2.0
    end

    @testset "norm" begin
        @test norm([0.0, 0.0]) == 0
        @test norm([1.0, 1.0]) == âˆš2
        @test norm([1.0, 2.0]) == âˆš5
        @test norm([2.0, 1.0]) == âˆš5
    end
    nothing
end¨metadataƒ©show_logsÃ¨disabledÂ®skip_as_scriptÂ«code_foldedÂÙ$f1d2f741-7774-460c-87e7-9b2f2cfa3d9f„§cell_idÙ$f1d2f741-7774-460c-87e7-9b2f2cfa3d9f¤codeÙ1begin
	# Extras
	using Test
	using StableRNGs
end¨metadataƒ©show_logsÃ¨disabledÂ®skip_as_scriptÂ«code_foldedÂÙ$f786af1c-bb14-482b-8d6c-cf204f2d71da„§cell_idÙ$f786af1c-bb14-482b-8d6c-cf204f2d71da¤codeÙ6md"""
# ä¿®æ­£ã‚°ãƒ©ãƒ ã‚·ãƒ¥ãƒŸãƒƒãƒˆã�®ç›´äº¤åŒ–
"""¨metadataƒ©show_logsÃ¨disabledÂ®skip_as_scriptÂ«code_foldedÃÙ$18c479b4-c714-472b-abad-b03cc6afb206„§cell_idÙ$18c479b4-c714-472b-abad-b03cc6afb206¤codeÚbegin
    function innerproduct(a::AbstractVector, b::AbstractVector)
        s = zero(eltype(a))
        @inbounds for i in eachindex(a, b)
            s += a[i] * b[i]
        end
        s
    end
    const â‹… = innerproduct
    norm(a::AbstractVector) = âˆš(a â‹… a)
end¨metadataƒ©show_logsÃ¨disabledÂ®skip_as_scriptÂ«code_foldedÂÙ$532c14fe-bede-46b5-8888-a7045fd8d93c„§cell_idÙ$532c14fe-bede-46b5-8888-a7045fd8d93c¤codeÙ*struct ModifiedGramSchmidt end # Algorithm¨metadataƒ©show_logsÃ¨disabledÂ®skip_as_scriptÂ«code_foldedÂ«notebook_idÙ$c3046dcc-54b3-11ef-0ee3-a945d22ed60a«in_temp_dirÂ¨metadata€