Skip to content

Commit

Permalink
[Truffle] Adding matrix to stdlib.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjfish committed Apr 6, 2015
1 parent bcb4f1d commit e2d3abd
Show file tree
Hide file tree
Showing 30 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ruby/truffle/mri/e2mmap.rb
@@ -0,0 +1 @@
require_relative '../../stdlib/e2mmap'
1 change: 1 addition & 0 deletions lib/ruby/truffle/mri/matrix.rb
@@ -0,0 +1 @@
require_relative '../../stdlib/matrix'
1 change: 1 addition & 0 deletions lib/ruby/truffle/mri/matrix/eigenvalue_decomposition.rb
@@ -0,0 +1 @@
require_relative '../../../stdlib/matrix/eigenvalue_decomposition'
1 change: 1 addition & 0 deletions lib/ruby/truffle/mri/matrix/lup_decomposition.rb
@@ -0,0 +1 @@
require_relative '../../../stdlib/matrix/lup_decomposition'
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/det_tags.txt
@@ -0,0 +1 @@
fails:Matrix#det raises an error for rectangular matrices
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/determinant_tags.txt
@@ -0,0 +1 @@
fails:Matrix#determinant raises an error for rectangular matrices
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/diagonal_tags.txt
@@ -0,0 +1 @@
fails:Matrix.diagonal? raises an error for rectangular matrices
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/divide_tags.txt
@@ -0,0 +1 @@
fails:Matrix#/ raises a Matrix::ErrDimensionMismatch if the matrices are different sizes
@@ -0,0 +1 @@
fails:Matrix::EigenvalueDecomposition#initialize raises an error if matrix is not square
2 changes: 2 additions & 0 deletions spec/truffle/tags/library/matrix/exponent_tags.txt
@@ -0,0 +1,2 @@
fails:Matrix#** given an integer _n_ raises a ErrDimensionMismatch for non square matrices
fails:Matrix#** given an integer _n_ that is <= 0 raises a ErrDimensionMismatch for irregular matrices
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/hermitian_tags.txt
@@ -0,0 +1 @@
fails:Matrix.hermitian? raises an error for rectangular matrices
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/inv_tags.txt
@@ -0,0 +1 @@
fails:Matrix#inv raises a ErrDimensionMismatch if the Matrix is not square
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/inverse_tags.txt
@@ -0,0 +1 @@
fails:Matrix#inverse raises a ErrDimensionMismatch if the Matrix is not square
@@ -0,0 +1 @@
fails:Matrix::LUPDecomposition#determinant raises an error for rectangular matrices
@@ -0,0 +1,3 @@
fails:Matrix::LUPDecomposition#solve for rectangular matrices raises an error for singular matrices
fails:Matrix::LUPDecomposition#solve for rectangular matrices for non singular matrices raises an error when given a matrix of the wrong size
fails:Matrix::LUPDecomposition#solve for rectangular matrices for non singular matrices raises an error when given a vector of the wrong size
2 changes: 2 additions & 0 deletions spec/truffle/tags/library/matrix/minus_tags.txt
@@ -0,0 +1,2 @@
fails:Matrix#- raises a Matrix::ErrDimensionMismatch if the matrices are different sizes
fails:Matrix#- raises a ExceptionForMatrix::ErrOperationNotDefined if other is a Numeric Type
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/multiply_tags.txt
@@ -0,0 +1 @@
fails:Matrix#* raises a Matrix::ErrDimensionMismatch if the matrices are different sizes
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/normal_tags.txt
@@ -0,0 +1 @@
fails:Matrix.normal? raises an error for rectangular matrices
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/orthogonal_tags.txt
@@ -0,0 +1 @@
fails:Matrix.orthogonal? raises an error for rectangular matrices
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/permutation_tags.txt
@@ -0,0 +1 @@
fails:Matrix#permutation? raises an error for rectangular matrices
2 changes: 2 additions & 0 deletions spec/truffle/tags/library/matrix/plus_tags.txt
@@ -0,0 +1,2 @@
fails:Matrix#+ raises a Matrix::ErrDimensionMismatch if the matrices are different sizes
fails:Matrix#+ raises a ExceptionForMatrix::ErrOperationNotDefined if other is a Numeric Type
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/regular_tags.txt
@@ -0,0 +1 @@
fails:Matrix#regular? raises an error for rectangular matrices
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/singular_tags.txt
@@ -0,0 +1 @@
fails:Matrix#singular? raises an error for rectangular matrices
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/symmetric_tags.txt
@@ -0,0 +1 @@
fails:Matrix.symmetric? raises an error for rectangular matrices
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/tr_tags.txt
@@ -0,0 +1 @@
fails:Matrix#tr returns the sum of diagonal elements in a rectangular Matrix
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/trace_tags.txt
@@ -0,0 +1 @@
fails:Matrix#trace returns the sum of diagonal elements in a rectangular Matrix
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/unitary_tags.txt
@@ -0,0 +1 @@
fails:Matrix.unitary? raises an error for rectangular matrices
1 change: 1 addition & 0 deletions spec/truffle/tags/library/matrix/vector/each2_tags.txt
@@ -0,0 +1 @@
fails:Vector.each2 given one argument raises a DimensionMismatch error if the Vector size is different
@@ -0,0 +1 @@
fails:Vector#inner_product raises an error for mismatched vectors
1 change: 1 addition & 0 deletions spec/truffle/truffle.mspec
Expand Up @@ -106,6 +106,7 @@ class MSpecScript
"spec/ruby/library/erb",
"spec/ruby/library/getoptlong",
"spec/ruby/library/observer",
"spec/ruby/library/matrix",
"spec/ruby/library/set",
"spec/ruby/library/shellwords",
"spec/ruby/library/strscan",
Expand Down

0 comments on commit e2d3abd

Please sign in to comment.