FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using BLADE in other projects

 
Post new topic   Reply to topic     Forum Index -> MathExtra
View previous topic :: View next topic  
Author Message
Linker



Joined: 06 Nov 2006
Posts: 29
Location: Almaty, Kazakhstan

PostPosted: Thu Sep 27, 2007 10:47 am    Post subject: Using BLADE in other projects Reply with quote

Hello.

Having read the D Conference presentation slides regarding BLADE, I decided to give it a try.

I've downloaded the latest revision (16) from SVN, but trying to compile it gives the following errors:
Quote:
Blade(79): template instance identifier 'vectorTupleToString' is not defined
Blade(79): variable Blade.VEC!("dot( a, a )").VEC!(float[3u], float[3u]).VEC.typelist voids have no value


I'm compiling on DMD 1.21 and Tango 0.99RC3 (the platform is Windows).

Instantiation looks like this:

Code:
struct Vec( T, uint count ) {
   /// returns magnitude of vector (also called length or norm)
   T magnitude() {
      return VEC!( "dot( a, a )" )( data, data );
   }
   T[count]      data;      /// raw data
}


What do I do?

Thanks in advance.
Back to top
View user's profile Send private message
Don Clugston



Joined: 05 Oct 2005
Posts: 91
Location: Germany (expat Australian)

PostPosted: Wed Oct 17, 2007 5:58 am    Post subject: Reply with quote

Sorry, I haven't made a public release yet. There are still some fairly large issues to work out, especially matrices and functions (such as dot product).
I've experimented with a few totally different approaches; you were unlucky enought to check out a failed attempt.
Once I do get something worked out, I'll probably set up a proper BLADE project on dsource; I'm just chucking it in here for now as a dirty repository -- this project's a mess.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MathExtra All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group