Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: incanter/incanter
base: dbd4f23081
...
head fork: incanter/incanter
compare: 84067c0b18
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Jan 19, 2012
@motus motus (matrix data ncol) now accepts Java arrays.
TODO: we can also check if data is already of double[] type to avoid unnecessary conversion.
2eeda36
@liebke liebke Merge pull request #57 from motus/patch-1
(matrix data ncol) now accepts Java arrays.
84067c0
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/incanter-core/src/incanter/internal.clj
View
2  modules/incanter-core/src/incanter/internal.clj
@@ -40,7 +40,7 @@
(Matrix. (double-array data))))
([data ncol]
(cond
- (coll? data)
+ (or (coll? data) (.isArray (class data)))
(Matrix. (double-array data) ncol)
(number? data)
(Matrix. data ncol))) ; data is the number of rows in this case

No commit comments for this range

Something went wrong with that request. Please try again.