From 18e9e19f1a5892923049f3ced18369497a101106 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas <accounts@chrisrackauckas.com> Date: Tue, 24 Jan 2017 07:17:31 -0800 Subject: [PATCH 1/5] Add reshape command From the chats it sounds like a lot of people used to use double transpose to turn a vector into an nx1 column vector. This helps users find the command which recovers that behavior. --- NEWS.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index c69c171fefeb8..c51666782b0d7 100644 --- a/NEWS.md +++ b/NEWS.md @@ -118,7 +118,8 @@ This section lists changes that do not have deprecation warnings. * `transpose(::AbstractVector)` now always returns a `RowVector` view of the input (which is a special 1×n-sized `AbstractMatrix`), not a `Matrix`, etc. In particular, for - `v::AbstractVector` we now have `(v.').' === v` and `v.' * v` is a scalar. ([#19670]) + `v::AbstractVector` we now have `(v.').' === v` and `v.' * v` is a scalar. ([#19670]). + To create a nx1-sized column vector out of a vector, use `reshape(v,length(v),1)`. * Parametric types with "unspecified" parameters, such as `Array`, are now represented as `UnionAll` types instead of `DataType`s ([#18457]). From f6a60ba0e11c3ecddf1c56b58ec0d163111b1ebb Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas <accounts@chrisrackauckas.com> Date: Tue, 24 Jan 2017 11:12:43 -0800 Subject: [PATCH 2/5] Update NEWS.md --- NEWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index c51666782b0d7..10d49f7846319 100644 --- a/NEWS.md +++ b/NEWS.md @@ -119,7 +119,7 @@ This section lists changes that do not have deprecation warnings. * `transpose(::AbstractVector)` now always returns a `RowVector` view of the input (which is a special 1×n-sized `AbstractMatrix`), not a `Matrix`, etc. In particular, for `v::AbstractVector` we now have `(v.').' === v` and `v.' * v` is a scalar. ([#19670]). - To create a nx1-sized column vector out of a vector, use `reshape(v,length(v),1)`. + To create a 1-column vector out of a vector, use `reshape(v,length(v),1)`. * Parametric types with "unspecified" parameters, such as `Array`, are now represented as `UnionAll` types instead of `DataType`s ([#18457]). From e31573072fa06d31d60dfaf74b6dc6d9e8c146b9 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas <accounts@chrisrackauckas.com> Date: Tue, 24 Jan 2017 11:46:42 -0800 Subject: [PATCH 3/5] Update NEWS.md --- NEWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 10d49f7846319..35cc0faa7370f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -119,7 +119,7 @@ This section lists changes that do not have deprecation warnings. * `transpose(::AbstractVector)` now always returns a `RowVector` view of the input (which is a special 1×n-sized `AbstractMatrix`), not a `Matrix`, etc. In particular, for `v::AbstractVector` we now have `(v.').' === v` and `v.' * v` is a scalar. ([#19670]). - To create a 1-column vector out of a vector, use `reshape(v,length(v),1)`. + To create a 1-column matrix out of a vector, use `reshape(v,length(v),1)`. * Parametric types with "unspecified" parameters, such as `Array`, are now represented as `UnionAll` types instead of `DataType`s ([#18457]). From bfd38df704cb16cf9fb0be1544069d959dcc9006 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas <accounts@chrisrackauckas.com> Date: Tue, 24 Jan 2017 11:50:58 -0800 Subject: [PATCH 4/5] Update NEWS.md --- NEWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 35cc0faa7370f..d91548a101a47 100644 --- a/NEWS.md +++ b/NEWS.md @@ -119,7 +119,7 @@ This section lists changes that do not have deprecation warnings. * `transpose(::AbstractVector)` now always returns a `RowVector` view of the input (which is a special 1×n-sized `AbstractMatrix`), not a `Matrix`, etc. In particular, for `v::AbstractVector` we now have `(v.').' === v` and `v.' * v` is a scalar. ([#19670]). - To create a 1-column matrix out of a vector, use `reshape(v,length(v),1)`. + To create a nx1-column matrix out of a vector, use `reshape(v,length(v),1)`. * Parametric types with "unspecified" parameters, such as `Array`, are now represented as `UnionAll` types instead of `DataType`s ([#18457]). From e44c87c10313b583a7bf7092ea46eb32c98b37b6 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas <accounts@chrisrackauckas.com> Date: Tue, 24 Jan 2017 11:51:15 -0800 Subject: [PATCH 5/5] Update NEWS.md --- NEWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index d91548a101a47..03c4d901b2115 100644 --- a/NEWS.md +++ b/NEWS.md @@ -119,7 +119,7 @@ This section lists changes that do not have deprecation warnings. * `transpose(::AbstractVector)` now always returns a `RowVector` view of the input (which is a special 1×n-sized `AbstractMatrix`), not a `Matrix`, etc. In particular, for `v::AbstractVector` we now have `(v.').' === v` and `v.' * v` is a scalar. ([#19670]). - To create a nx1-column matrix out of a vector, use `reshape(v,length(v),1)`. + To create a nx1 matrix out of a vector, use `reshape(v,length(v),1)`. * Parametric types with "unspecified" parameters, such as `Array`, are now represented as `UnionAll` types instead of `DataType`s ([#18457]).