From 744bf6c7a13f2910cd53fca8a64d1afb50c28de1 Mon Sep 17 00:00:00 2001 From: Oren Ben-Kiki Date: Fri, 29 Mar 2024 21:17:32 +0300 Subject: [PATCH] Clear relayout of square matrices. --- docs/v0.1.0/.documenter-siteinfo.json | 2 +- src/copies.jl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/v0.1.0/.documenter-siteinfo.json b/docs/v0.1.0/.documenter-siteinfo.json index a042316..d6b5455 100644 --- a/docs/v0.1.0/.documenter-siteinfo.json +++ b/docs/v0.1.0/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-03-29T16:47:26","documenter_version":"1.3.0"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.2","generation_timestamp":"2024-03-29T21:22:31","documenter_version":"1.3.0"}} \ No newline at end of file diff --git a/src/copies.jl b/src/copies.jl index 2fccbba..0e7f93f 100644 --- a/src/copies.jl +++ b/src/copies.jl @@ -228,6 +228,7 @@ function copy_matrix!(; rows_relation::Maybe{Symbol} = nothing, columns_relation::Maybe{Symbol} = nothing, )::Nothing + relayout = relayout && rows_axis != columns_axis if rename == nothing @debug "copy_matrix! $(destination.name) <$(relayout ? "%" : "#")$(overwrite ? "-" : "=") $(source.name) / $(rows_axis)($(rows_relation)) / $(columns_axis)($(columns_relation)) : $(name) || $(describe(default)) ?? $(describe(empty))" else