slyrus / clem Goto Github PK
View Code? Open in Web Editor NEWA matrix library for common lisp
License: Other
A matrix library for common lisp
License: Other
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))))
Please consider adding :description, :author and :license information to your ASDF system(s). This will greatly help Quicklisp users and make it easier for them to report bugs.
More information:
http://blog.quicklisp.org/2015/05/looking-for-more-metadata.html
https://www.quicklisp.org
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">
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.