« first day (512 days earlier)      last day (4438 days later) » 

11:00 PM
But just find some kind of matrix library or linear algebra library. They will do the job
 
Haha :P
Well I tried sympy but no dice
Either that or my program is off
And honestly I don't know how to set up a system of equations as a matrix
for instance I might have x1 = 1+1/24.0*(2*x0+8*x1+2*x2+8*x3+4*x4)
 
You need to put that in canonical form first.
 
Basically you need to put the equations in the form
ax + by + cz = d
(if you have three equations)
 
a11*x1 + a12*x2 + a13*x3 + b1 = 0
a21*x1 + a22*x2 + a23*x3 + b2 = 0
a31*x1 + a32*x2 + a33*x3 + b2 = 0
 
If you can't put the equations into that form then you don't have a linear system
 
11:03 PM
Then you solve Ax+b = 0, where A is the matrix of the coefficients, b is the vector with the independent terms. That is done by reducing the A|b matrix (which is where the library steps in).
 
The keyword is "reduced row echelon form"
 
That operation allows you to directly read off the answers from the resulting matrix
 
The result is a matrix that looks like:
|1 0 0 x1|
|0 1 0 x2|
|0 0 1 x3|
Disclaimer: it's been a while since I've done this, so I probably got a sign wrong somewhere or something.
 
so I'd have to rewrite it as 0 = 24 + 2*x0 - 16*x1 + 2*x2 + 8*x3 + 4*x4
 
11:06 PM
Yeah
 
errr, -24 on LHS sorry
 
But you need 3 more equations
 
right
 
The number of equations = number of variables
 
but i mean as merely an example of one
 
11:06 PM
Of course
 
@RMartinhoFernandes That is my understanding as well.
 
@FredOverflow Will, no fix in VC11.
 
What? Really??
 
@FredOverflow: Unless they release a service pack with the fix
 
18 mins ago, by In silico
> Rvalue references v3.0 adds new rules to automatically generate move constructors and move assignment operators under certain conditions. This will not be implemented in VC11, which will continue to follow VC10's behavior of never automatically generating move constructors/move assignment operators. (As with all of the not-yet-implemented features here, this is due to time and resource constraints, and not due to dislike of the features themselves!)
 
11:10 PM
How gay is that??
 
@Insilico Herb and STL have mentioned that they plan to make more regular updates as C++11 features get implemented.
 
I think it's better to not have auto generation of such things, than to introduce complexity so you don't know what you can rely on
 
Although I'd rather they get it right the first time around rather than releasing a half-assed version that doesn't work
 
They put up a survey to decide what they start working on first.
 
@CheersandhthAlf How about auto generation of copy constructor and copy assignment operator?
 
11:12 PM
@CheersandhthAlf: IIRC the standards committee had a huge discussion about it
 
@FredOverflow yes i think that's quite enough! :-)
@Insilico everybody discuss tits, not only the standards committee
 
I think it's better to have the same level of support across compilers.
Does VC11 have defaulted declarations?
 
@Insilico as it happens i was in on the initial usenet discussion, started by scott meyers.
 
@CheersandhthAlf What do tits have to do with this??
 
11:13 PM
@FredOverflow Tits have to do with everything.
 
@FredOverflow he wrote that, then changed it before timeout
 
@FredOverflow: I was typing "about it" but the spacebar made it before the first 't'
 
I hope I never have to work with such people …
 
    template< class Base >
    class Assignable_ final
        : public Base
    {
    public:
        using Base::Base;
        using Base::operator=;
    };
^ C++11 class that gets more verbose and dirty in C++03
 
11:16 PM
@KonradRudolph You mean, the guy of the original comment, right?
 
Both Visual C++ and g++ failed to compile the above
 
#define boobs boost   // programming just got a lot sexier
 
Oh, wait, I was reading that wrong.
@FredOverflow Shut up and use Haskell.
@CheersandhthAlf final?
 
@RMartinhoFernandes Are boobs monadic?
 
11:18 PM
@RMartinhoFernandes yes, that is crucial property
 
Wait no that's the wrong link
 
@CheersandhthAlf Right, but final is not supported in VC++, is it?
 
@RMartinhoFernandes no, it choked on that. or barfed. not sure
 
And isn't it for functions only?
 
I think it's also for classes :-)
 
11:20 PM
C++11, also formerly known as C++0x, is the name of the most recent iteration of the C++ programming language, approved by ISO as of 12 August 2011, replacing C++03. The name is derived from the tradition of naming language versions by the date of the specification's publication. C++11 includes several additions to the core language and extends the C++ standard library, incorporating most of the C++ Technical Report 1 (TR1) libraries — with the exception of the library of mathematical special functions. C++11 was published as ISO/IEC 14882:2011 in September 2011 and is available for a fee....
 
2
A: final class in c++

Jeff WaldenNote that non-inheritable classes exist in C++11 using the final keyword, specified before the : base1, base2, ..., baseN inheritance list or before the opening { if the class inherits from nothing: class Final final { }; class Derived : public Final { }; // ERROR With a little macro magic and...

 
@FredOverflow No. Boobs come in pairs.
 
@CheersandhthAlf How can it be more verbose if there's no C++03 equivalent to the above? Do you mean that the whole is more verbose, i.e. the fact we would need such a class in the first place?
 
@LucDanton well the C++03 equivalent for the final is in the FAQ. the constructor inheritance is not possible in C++03 but you can use argument forwarding. = more verbose.
 
I just read that, yes.
 
11:22 PM
> If it is performance (inlining) you want or you simply never want to override, it is typically better not to define a function to be virtual in the first place. This is not Java.
@Insilico QFE
 
above link is to the code with explanation
 
@FredOverflow: Quick Fix Engineering?
 
Oh wait, I actually meant QFT :)
Anyway, it means the quote gets my motor running :)
 
I like the quote.
 
11:33 PM
Lol.
 
I am back, nubbinses
 
How's your rendering coming?
 
I got a odd question
 
pretty good, actually
 
11:37 PM
@HarryBeasant So odd you don't dare ask?
 
Not really c++, but will anyone care to answer me? =)
 
I prefer even questions.
 
@HarryBeasant How can we know unless you ask?
 
Well
I am allowing people to download files from my remote server
 
@HarryBeasant The thing where water comes from?
 
11:38 PM
Obviously, ZIP etc type files download
straight from the URL
 
I fixed my depth buffering
 
however, an image will just display
 
@DeadMG What caused the error?
 
@FredOverflow My dorfs call it "the thing that keeps flooding the dining hall over and over again"
 
How can i set it to force download the content
 
11:38 PM
and I implemented some nice zoom-on-point depth buffering
 
I can't do headers, because it uses bandwidth of both the web server and remote file server
 
@HarryBeasant What image?
 
@FredOverflow You have to use a small part of the fixed function pipeline for no apparent reason and give D3D your projection matrix.
 
2 many threads here
almost like irc
 
@HarryBeasant Then you're out of the luck. The way to do that is with headers.
 
11:39 PM
i'm too old for this, i will read a book
 
@CheersandhthAlf That's like the Internet on paper, right?
 
But, companies like mediafire do it
they download direct from source
and images still force download
 
I'm pretty sure they have the proper HTTP headers.
 
What image do you get when you download a ZIP? I still don't understand the question.
 
now I'm trying to figure out if I can do hardware instancing from more than one buffer
 
I mean, if the download is an image
it will go straight to source and show it
ZIPs and stuff like that force download fine, as they would
But media is shown
 
Is bandwidth so limited that a few bytes for the header hurt? How big are the files anyway?
 
bandwidth is doubled
using headers
downloading a 100mb file will use 200mb bandwidth
can't be done
 
@CheersandhthAlf That's brilliant :)
 
11:45 PM
@HarryBeasant Wait, what?
That sounds horribly wrong.
 
thats what it does using headers
 
Damn it I must be setting up my matrix wrong
 
for example
 
What.
 
That is a mediafire hot link
on my server, it would just display it
However, on mediafire servers, it downloads it
the whole thing is force downlaoded
 
11:48 PM
Can anyone verify that this

x0 = 1+(1/24)*[4, 12, 0, 8, 0] = 0
x1 = 1+(1/24)*[2, 8, 2, 8, 4]
x2 = 1+(1/24)*[0, 4, 4, 8, 8]
x3 = 1+(1/24)*[1, 6, 3, 8, 6]
x4 = 1+(1/24)*[0, 4, 4, 8, 8]

In matrix form is [[4, 12, 0, 8, 0], [2, -16, 2, 8, 4], [0, 4, -20, 8, 8], [1, 6, 3, -16, 6], [0, 4, 4, 8, -16]] with the RHS equal to [-24 -24 -24 -24 -24]
 
What.
 
^ according to the text, it's meat from an old cow
 
Hmmm, meat.
 
"lomo de vaca vieja"
 
11:55 PM
@JohnSmith: Why are you adding one to each row in the matrix?
 
What's more important, how on Earth you arrive at scalar 0 when adding one to a vector multiplied by scalar, which doesn't really make sense on its own.
 
@CatPlusPlus It's an uppercase 0.
 
No, it's not.
 
In silico: Has to do with a problem I am working on - that is the system of equations
 
11:57 PM
0O
 
What are the system of equations you're dealing with?
 
The ones I just posted
the x0 through x4
 
@CatPlusPlus 0 may be used to represent the null matrices or vectors.
 
where the numbers inside [] represent x0 through x4 as well
 
Ah, that kind of 0.
It still doesn't make sense.
 
11:58 PM
Usually subscripted with the dimensions, but optional if they can be inferred from context.
 
@JohnSmith: Which one? (Can you provide a link?)
 
I thought I have a font problem or something.
 
sorry?
 
My linear algebra teacher called it an "uppercase zero".
 
what I mean is:

x0 = 1+(1/24)*[4, 12, 0, 8, 0] = 0
x1 = 1+(1/24)*[2, 8, 2, 8, 4]
x2 = 1+(1/24)*[0, 4, 4, 8, 8]
x3 = 1+(1/24)*[1, 6, 3, 8, 6]
x4 = 1+(1/24)*[0, 4, 4, 8, 8]
 
11:58 PM
(Yes, he was crazy)
 
It's not a null vector, though.
And you can't add a scalar to a vector.
 
[4, 12, 0, 8, 0] = 4*x0 + 12*x1 + 0*x2 + 8*x3 + 0*x4
 
So you have: x0 = 1 + (1/24)*(4*x0 + 12*x1 + 0*x2 + 8*x3 + 0*x4) = 0?
 
Oh, invented notation.
 

« first day (512 days earlier)      last day (4438 days later) »