Code Monkey home page Code Monkey logo

clem's People

Contributors

pfdietz avatar slyrus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

clem's Issues

Matrix' print-object does not work

Here is an old patch I found on my drive that still stand (I can't find a way to do pull request without forking clem in github and I don't want that for such a simple patch):

From d692c95dada8caa89e14e90c8977cfbd6165a0bc Mon Sep 17 00:00:00 2001
From: Manuel Giraud <[email protected]>
Date: Fri, 30 Jul 2010 15:10:25 +0200
Subject: [PATCH] correct a typo that removed any print

---
 src/print.lisp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/print.lisp b/src/print.lisp
index 9021032..63f8ed2 100644
--- a/src/print.lisp
+++ b/src/print.lisp
@@ -88,7 +88,7 @@
                               (- *matrix-print-row-limit* 2)))
                    (startc 0)
                    (endc (min (1- (cols obj))
-                              (- *matrix-print-col-limit*) 2)))
+                              (- *matrix-print-col-limit* 2))))
                (let ((val-format-spec (if *print-matrix-float-format*
                                           *print-matrix-float-format*
                                           (val-format (class-of obj))))

Some systems failed to build for Quicklisp dist

Building with SBCL 2.1.6 / ASDF 3.3.1 for quicklisp dist creation.

Trying to build commit id 5eb055b

clem-benchmark fails to build because of a failure in clem.

clem-test fails to build because of a failure in clem.

clem fails to build with the following error:

; caught ERROR:
;   READ error during COMPILE-FILE: Lock on package SB-C violated when interning %ARRAY-DATA-VECTOR while in package CLEM.
;   See also:
;     The SBCL Manual, Node "Package Locks"(in form starting at line: 9, column: 0, position: 159)
...
Unhandled UIOP/LISP-BUILD:COMPILE-FILE-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING {1001A18103}>: COMPILE-FILE-ERROR while compiling #<CL-SOURCE-FILE "clem" "src" "typed-ops" "defmatrix-mult">

Full log here

complex matrices issues

Hello,

I have some problems with matrices with complex values.
The problem seems caused by some type coercion, for example if I want define a complex matrix like this:


(defun matrix-test-1 ()
  (let ((m (array->complex-matrix #2A((#c(1 1) #c(2 0) #c(3 1))(#c(4 1) #C(0 1) #c(0 6))(#c(7 1) #c(0 1) #c(9 9))))))
    (print-matrix (m+ m m)))
	t)

I got an error because 2 is not a complex value, but #c(2 0) is a legit complex value with no imaginary part.
I have a similar problem with #c(0 1) (the pure imaginary unit), because if some operation (like m.*) involves this kind of multiplication #c(0 1) * #c(0 1), I have the same error about -1 (the result of i^2) because it says it's not a complex value.

Please could you analyze this behaviour ?

thanks,
Fausto

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.